]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: fix pending update handling
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 26 Sep 2016 07:50:21 +0000 (16:50 +0900)
committerInki Dae <daeinki@gmail.com>
Fri, 30 Sep 2016 15:39:35 +0000 (00:39 +0900)
commitea2999bfbf4638fa6ee5f6b1ed2bc3f860feb648
tree31ae4026254263a97c3dafb3f5acce921a11368f
parent0f66f2e9f8e5672effe3144df5553f006d7504c5
drm/exynos: fix pending update handling

Exynos DRM devices update their registers at vblank time. Exynos-DRM uses
custom mechanism to wait for vblank. This mechanism is error prone -
variables are not updated atomically. As a result in certain circumstances
user space can try to free buffers which are still in use by hardware,
in such cases IOMMU can throw OOPS.
The patch instead of fixing the mechanism replaces it with drm core helper.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_crtc.c
drivers/gpu/drm/exynos/exynos_drm_drv.c
drivers/gpu/drm/exynos/exynos_drm_drv.h