mirror_ubuntu-kernels/drivers/gpu/drm/hisilicon/hibmc
Randy Dunlap d8a79c0305
drm/hisilicon: Add depends on MMU
The Kconfig symbol depended on MMU but was dropped by the commit
acad3fe650 ("drm/hisilicon: Removed the dependency on the mmu")
because it already had as a dependency ARM64 that already selects MMU.

But later, commit a0f25a6bb3 ("drm/hisilicon/hibmc: Allow to be built
if COMPILE_TEST is enabled") allowed the driver to be built for non-ARM64
when COMPILE_TEST is set but that could lead to unmet direct dependencies
and linking errors.

Prevent a kconfig warning when MMU is not enabled by making
DRM_HISI_HIBMC depend on MMU.

WARNING: unmet direct dependencies detected for DRM_TTM
  Depends on [n]: HAS_IOMEM [=y] && DRM [=m] && MMU [=n]
  Selected by [m]:
  - DRM_TTM_HELPER [=m] && HAS_IOMEM [=y] && DRM [=m]
  - DRM_HISI_HIBMC [=m] && HAS_IOMEM [=y] && DRM [=m] && PCI [=y] && (ARM64 || COMPILE_TEST [=y])

Fixes: acad3fe650 ("drm/hisilicon: Removed the dependency on the mmu")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Tian Tao  <tiantao6@hisilicon.com>
Cc: John Stultz <jstultz@google.com>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Chen Feng <puck.chen@hisilicon.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Huang Rui <ray.huang@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220531025557.29593-1-rdunlap@infradead.org
2022-09-20 11:15:09 +02:00
..
hibmc_drm_de.c drm/vram-helpers: Create DRM_GEM_VRAM_PLANE_HELPER_FUNCS 2021-06-24 15:37:08 +02:00
hibmc_drm_drv.c drm/hisilicon/hibmc: Replace module initialization with DRM helpers 2022-01-19 18:40:13 +01:00
hibmc_drm_drv.h drm/hisilicon: Use managed mode-config init 2020-12-08 19:33:31 -05:00
hibmc_drm_i2c.c drm/hibmc: Remove references to struct drm_device.pdev 2021-01-13 09:03:18 +01:00
hibmc_drm_regs.h drm/hisilicon: Add new clock/resolution configurations 2020-02-27 04:34:31 +00:00
hibmc_drm_vdac.c drm/hisilicon: Use drm_crtc_mask() 2021-01-11 19:53:05 -05:00
Kconfig drm/hisilicon: Add depends on MMU 2022-09-20 11:15:09 +02:00
Makefile drm/hisilicon: Delete the entire file hibmc_ttm.c 2020-12-04 06:02:22 -05:00