]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitf43c35966a5ac6accb197f68b05f14bb4e6d3913
treef03d2943e7d3e527dbd6ad67a7274bb7aaf86c17
parenta5fb26cdaa9721c7aaa646294832f2a4d8cbab40
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