drm/exynos: gem: Drop NONCONTIG flag for buffers allocated without IOMMU
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 22 Nov 2017 13:14:47 +0000 (14:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:52:59 +0000 (09:52 +0100)
commit4b929631c110645b46115d67172d590b210fa8c1
tree4ad933a390857074cdff5820d8355d3a58428e78
parent25df8b009734b241ce581ac7505efc587cf0402e
drm/exynos: gem: Drop NONCONTIG flag for buffers allocated without IOMMU

commit 120a264f9c2782682027d931d83dcbd22e01da80 upstream.

When no IOMMU is available, all GEM buffers allocated by Exynos DRM driver
are contiguous, because of the underlying dma_alloc_attrs() function
provides only such buffers. In such case it makes no sense to keep
BO_NONCONTIG flag for the allocated GEM buffers. This allows to avoid
failures for buffer contiguity checks in the subsequent operations on GEM
objects.

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