]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: use real device for DMA-mapping operations
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 29 Feb 2016 08:50:53 +0000 (17:50 +0900)
committerInki Dae <daeinki@gmail.com>
Tue, 1 Mar 2016 14:53:47 +0000 (23:53 +0900)
commitc7f0a7fa5409ee90889b96521e4ca4a900ae4980
treef03d2943e7d3e527dbd6ad67a7274bb7aaf86c17
parentc61fa629d9bf810c331c35f9e0bdb1a28b4b1b84
drm/exynos: use real device for DMA-mapping operations

This patch changes device pointer provided to all calls to DMA-mapping
subsystem from the virtual exynos-drm 'device' to the real device pointer
of one of the CRTC devices (decon, fimd or mixer). This way no more hacks
will be needed to configure proper DMA-mapping address space on the common
virtual exynos-drm device. This change also removes the need for some
hacks in IOMMU related code. It also finally solves the problem of Exynos
DRM driver not working on ARM64 architecture, which provides noop-based
DMA-mapping operations for virtual platform devices.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c
drivers/gpu/drm/exynos/exynos_drm_drv.h
drivers/gpu/drm/exynos/exynos_drm_fbdev.c
drivers/gpu/drm/exynos/exynos_drm_g2d.c
drivers/gpu/drm/exynos/exynos_drm_gem.c
drivers/gpu/drm/exynos/exynos_drm_iommu.c
drivers/gpu/drm/exynos/exynos_drm_iommu.h