]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: g2d: use autosuspend mode for PM runtime
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Tue, 27 Sep 2016 15:59:56 +0000 (17:59 +0200)
committerInki Dae <daeinki@gmail.com>
Fri, 30 Sep 2016 15:39:41 +0000 (00:39 +0900)
commit2618c0044e147f08f86d44b0e5347d0d9f625dd3
treeb89c925019ddede78201dedc81eb30346d31c219
parent8c26019249e66d6808da2398ef5fd9dfd6aaf8b0
drm/exynos: g2d: use autosuspend mode for PM runtime

The runqueue worker currently issues a get() when a new
node is processed, and a put() once a node is completed.

The corresponding suspend and resume calls currently only
do clock gating, but with the upcoming introduction of
IOMMU runpm also the corresponding IOMMU domain gets
enabled (for get()) and disabled (for put()). This
introduces performance regressions with we mitigate here.

Switch PM runtime to autosuspend, such that clock gating
and IOMMU control only happens when the engine is idle for
a 'long' time.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_g2d.c