Skip to contentSkip to conversation

drm/xe: fix CONFIGFS_FS dependency

PATCH New Jude Gyimah 2 participants 2 messages Nov 4

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/xe: fix CONFIGFS_FS dependency

xe_configfs.o is pulled into the xe module only when configfs is enabled:

  xe-$(CONFIG_CONFIGFS_FS) += xe_configfs.o

With CONFIG_DRM_XE=y and CONFIG_CONFIGFS_FS=m that line becomes xe-m, which Kbuild ignores for a built-in module, so the object is left out while the rest of xe still calls into it:

xe_guc.c:(.text+0x217e): undefined reference to
`xe_configfs_get_psmi_enabled'
xe_guc_ads.c:(.text+0x1a28): undefined reference to
`xe_configfs_get_enable_multi_queue'

Eleven xe_configfs_* symbols are undefined in all, referenced from xe_module.o, xe_guc.o and xe_guc_ads.o.

Require configfs to be at least as available as xe, which is what the stanza already does for KUNIT, INTEL_VSEC and X86_PLATFORM_DEVICES.

Reproduced on v7.3, x86_64, with:

CONFIG_DRM_XE=y
CONFIG_CONFIGFS_FS=m
CONFIG_DRM=y
CONFIG_PCI=y
CONFIG_MODULES=y

Found with kreach, a static check that compares what Kconfig allows against the symbols the compiled objects actually reference.

Fixes 16280ded45fb ("drm/xe: Add configfs to enable survivability mode")

---
The checker is at https://github.com/JGyimah/kreach, and the reproducer configuration for each finding is published with it under results/.

 drivers/gpu/drm/xe/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/xe/Kconfig +1 -0
index 4d7dcaff2b91..fe3061f3b4ec 100644
@@ -4,6 +4,7 @@ config DRM_XE
 	depends on DRM && PCI
 	depends on KUNIT || !KUNIT
 	depends on INTEL_VSEC || !INTEL_VSEC
+	depends on CONFIGFS_FS || !CONFIGFS_FS
 	depends on X86_PLATFORM_DEVICES || !(X86 && ACPI)
 	depends on PAGE_SIZE_4KB || COMPILE_TEST || BROKEN
 	select INTERVAL_TREE
Signature · 1 line
2.43.0
#1 lore raw

✗ LGCI.VerificationFailed: failure for drm/xe: fix CONFIGFS_FS dependency

== Series Details ==

== Series Details ==

Series: drm/xe: fix CONFIGFS_FS dependency
URL : https://patchwork.freedesktop.org/series/177736/
State : failure

== Summary ==

Series author address '[email protected]' is not on the allowlist, which prevents CI from being automatically triggered. If you want CI to run for this series, ask Patchwork project owners to click 'retest' on the series in Patchwork. Exception occurred during validation, bailing out!
Build URL: http://intel-gfx-ci-public.igk.intel.com:8080/job/xe_pw_trigger/1332528/ (on master)