]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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)
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: 011cda589938 ("drm: fix compilations issues introduced by "drm: allow to use mmuless SoC"")
Fixes: 62a0d98a188c ("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

index 15f3ecfb16f1f794caca89e282811b2083e84e80..eafaeeb7b5b1194938a7ee835d2abb32855f25ef 100644 (file)
@@ -1,6 +1,6 @@
 config DRM_ARMADA
        tristate "DRM support for Marvell Armada SoCs"
-       depends on DRM && HAVE_CLK && ARM
+       depends on DRM && HAVE_CLK && ARM && MMU
        select DRM_KMS_HELPER
        help
          Support the "LCD" controllers found on the Marvell Armada 510
index 2cde7a5442fb3f10e1aa02634aa61de41c30fc71..656c061b439d314751ca614514fcb4fd85648daa 100644 (file)
@@ -3,6 +3,7 @@ config DRM_ETNAVIV
        tristate "ETNAVIV (DRM support for Vivante GPU IP cores)"
        depends on DRM
        depends on ARCH_MXC || ARCH_DOVE
+       depends on MMU
        select SHMEM
        select TMPFS
        select IOMMU_API
index d96b2b6898a3739b220633b4a711955f2a385e76..7f78da695dff5f931a82b0d22baca41bb0ca9d9c 100644 (file)
@@ -4,6 +4,7 @@ config DRM_MSM
        depends on DRM
        depends on ARCH_QCOM || (ARM && COMPILE_TEST)
        depends on OF && COMMON_CLK
+       depends on MMU
        select REGULATOR
        select DRM_KMS_HELPER
        select DRM_PANEL