drm/exynos: gem: rework scatter-list contiguity check on prime import
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 22 Apr 2020 11:40:59 +0000 (13:40 +0200)
committerInki Dae <inki.dae@samsung.com>
Mon, 18 May 2020 02:36:00 +0000 (11:36 +0900)
commit24f6fe796a964f1cba75030dbea297d7fb2f30cb
tree799077a34aba05dc3eac5ff6a6d2095c530df3d0
parent3a2fe5662c5634b7b975fefd0b9c45bd35f72de8
drm/exynos: gem: rework scatter-list contiguity check on prime import

Explicitly check if the imported buffer has been mapped as contiguous in
the DMA address space, what is required by all Exynos DRM CRTC drivers.
While touching this, set buffer flags depending on the availability of
the IOMMU.

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