]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/rockchip: Drop ROCKCHIP_IOMMU depend for DRM_ROCKCHIP
authorChaoyi Chen <chaoyi.chen@rock-chips.com>
Thu, 6 Nov 2025 02:06:31 +0000 (10:06 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 9 Jan 2026 10:49:19 +0000 (11:49 +0100)
On the RK3506 platform, there is no iommu hardware. And even on
platform that have iommu hardware, it should be possible to use
VOP without enabling iommu. In this case, a contiguous memory
space like CMA should be used.

So this patch removes the dependency on ROCKCHIP_IOMMU
with an 'optional-dependency'.

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
[added reference to optional-dependies description]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20251106020632.92-9-kernel@airkyi.com
drivers/gpu/drm/rockchip/Kconfig

index 6f068ce1021d344e7ec6ff006592356f69b0ad9a..025bd770f499e6edc5a30a53c6ef54dcc174b836 100644 (file)
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config DRM_ROCKCHIP
        tristate "DRM Support for Rockchip"
-       depends on DRM && ROCKCHIP_IOMMU
+       depends on DRM
+       depends on ROCKCHIP_IOMMU || !ROCKCHIP_IOMMU
        depends on OF
        select DRM_CLIENT_SELECTION
        select DRM_GEM_DMA_HELPER