]> git.baikalelectronics.ru Git - kernel.git/commit
drm: add more MMU dependencies
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Jan 2017 13:33:35 +0000 (14:33 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Jan 2017 16:24:58 +0000 (17:24 +0100)
commit0203cafb19029b155918fcb2565d6e6ae00311a3
treedb7533fd323d4e459307254ccb253cb7c41a7934
parent091f1af73cc5f116cd7dd35114d2ae4faca86c3b
drm: add more MMU dependencies

Many DRM drivers only work with an MMU, and after the patch to enable
core DRM support without MMU, we already had one fixup for many of them.
The etnaviv, armada and msm drivers were missed and have the same problem:

warning: (DRM_ETNAVIV) selects IOMMU_SUPPORT which has unmet direct dependencies (MMU)
warning: (DRM_I915 && DRM_MSM && DRM_ETNAVIV) selects SHMEM which has unmet direct dependencies (MMU)
drivers/gpu/drm/armada/armada_gem.o: In function `armada_gem_vm_fault':
armada_gem.c:(.text.armada_gem_vm_fault+0x14): undefined reference to `vm_insert_pfn'
arch/arm/mm/dma-mapping.c: In function '__iommu_alloc_remap':
arch/arm/mm/dma-mapping.c:1390:4: error: 'VM_ARM_DMA_CONSISTENT' undeclared (first use in this function)
arch/arm/mm/dma-mapping.c:1456:31: error: 'atomic_pool' undeclared (first use in this function); did you mean 'atomic_xor'?

Fixes: 23a6695deebd ("drm: fix compilations issues introduced by "drm: allow to use mmuless SoC"")
Fixes: ec053ab75d24 ("drm: allow to use mmuless SoC")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111133357.3664191-2-arnd@arndb.de
drivers/gpu/drm/armada/Kconfig
drivers/gpu/drm/etnaviv/Kconfig
drivers/gpu/drm/msm/Kconfig