summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2026-09-04 20:28:46 -0600
committerAlex Deucher <alexander.deucher@amd.com>2026-09-23 13:19:08 -0400
commit7c23fe74a152ea0fa0791e134d27c4a13cd8636c (patch)
tree6ce6bf3d159982f1f56ea3f91a4feb396329813a /drivers/gpu/drm/amd/display
parent7b464181c288dd750270c4da3e4ebbde9b221400 (diff)
downloadlinux-next-7c23fe74a152ea0fa0791e134d27c4a13cd8636c.tar.gz
linux-next-7c23fe74a152ea0fa0791e134d27c4a13cd8636c.zip
drm/amd/display: Select KUnit helpers
[WHAT] DRM_KUNIT_TEST_HELPERS has no prompt, so it can only be turned on by a select. DRM_AMD_DC_KUNIT_TEST merely depended on it, which forced the amdgpu_dm KUnit config to enable CONFIG_DRM_KUNIT_TEST as well and drag in the entire core DRM test suite. [HOW] Select DRM_KUNIT_TEST_HELPERS from DRM_AMD_DC_KUNIT_TEST, matching what DRM_KUNIT_TEST and DRM_TTM_KUNIT_TEST already do, and drop CONFIG_DRM_KUNIT_TEST from the amdgpu_dm kunitconfig. The amdgpu_dm tests now build standalone and a run executes only the amdgpu_dm suites. Assisted-by: Copilot:Claude-Opus-5 Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: George Zhang <george.zhang@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r--drivers/gpu/drm/amd/display/Kconfig3
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/tests/.kunitconfig1
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig
index 617bc1932524..a319680c329b 100644
--- a/drivers/gpu/drm/amd/display/Kconfig
+++ b/drivers/gpu/drm/amd/display/Kconfig
@@ -67,7 +67,8 @@ config DRM_AMD_SECURE_DISPLAY
config DRM_AMD_DC_KUNIT_TEST
tristate "KUnit tests for the AMD DC display driver" if !KUNIT_ALL_TESTS
- depends on DRM_AMD_DC && KUNIT && DEBUG_FS && DRM_KUNIT_TEST_HELPERS
+ depends on DRM_AMD_DC && KUNIT && DEBUG_FS
+ select DRM_KUNIT_TEST_HELPERS
default KUNIT_ALL_TESTS
help
This option enables KUnit tests for the AMD Display Core driver.
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/tests/.kunitconfig b/drivers/gpu/drm/amd/display/amdgpu_dm/tests/.kunitconfig
index c7c8527dbb10..0c26c510f7a5 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/tests/.kunitconfig
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/tests/.kunitconfig
@@ -6,7 +6,6 @@ CONFIG_DRM_AMD_DC=y
CONFIG_DEBUG_FS=y
CONFIG_DRM_AMD_DC_KUNIT_TEST=y
CONFIG_FW_LOADER=y
-CONFIG_DRM_KUNIT_TEST=y
CONFIG_DRM_KUNIT_TEST_HELPERS=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_TTM=y