]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "drm/exynos: g2d: fix system and runtime pm integration"
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Tue, 27 Sep 2016 15:50:06 +0000 (17:50 +0200)
committerInki Dae <daeinki@gmail.com>
Fri, 30 Sep 2016 15:39:38 +0000 (00:39 +0900)
commit79bae3379bdbd9a8bda7cbf07f81784b6a2b1f25
tree2cb5265c6d09fadbd33df499959b1416f3ec0731
parentbf9379d37e506fec41f82af6d2101d3fd66c7008
Revert "drm/exynos: g2d: fix system and runtime pm integration"

This reverts commit 254c7dd6c1a73d8a2c21bb62d954cb5dc5878420.

The change, i.e. merging the sleep and runpm operations, produces
a deadlock situation:
(1) exynos_g2d_exec_ioctl() prepares a runqueue node and
    calls g2d_exec_runqueue()
(2) g2d_exec_runqueue() calls g2d_dma_start() which gets
    runtime PM sync
(3) runtime PM core calls g2d_runtime_resume()
(4) g2d_runtime_resume() calls g2d_exec_runqueue(), which
    loops back to (2)

Due to mutexes that are in place, a deadlock situation is created.

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