]> 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)
commite93b0acb0f8d265aa224df466bf90d11ea8b2be1
treef03d2943e7d3e527dbd6ad67a7274bb7aaf86c17
parent0b77bc162b65dbc92b82795405af192c551e50f1
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