On Wed, 1 Jul 2026, Imre Deak wrote:
Add KUnit configuration for i915 and a local .kunitconfig to run the
tests.
Signed-off-by: Imre Deak <[email protected]>
---
drivers/gpu/drm/i915/.kunitconfig | 12 ++++++++++++
Shouldn't .gitignore be updated with .kunitconfig, similar to PATCH
28/34 ("drm/xe/kunit: Add display test config")?
Otherwise:
Reviewed-by: Michał Grzelak <[email protected]>
BR,
Michał
drivers/gpu/drm/i915/Kconfig.debug | 12 ++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 drivers/gpu/drm/i915/.kunitconfig
diff --git a/drivers/gpu/drm/i915/.kunitconfig
b/drivers/gpu/drm/i915/.kunitconfig
new file mode 100644
index 0000000000000..70e55432bad64
--- /dev/null
+++ b/drivers/gpu/drm/i915/.kunitconfig
@@ -0,0 +1,12 @@
+CONFIG_EXPERT=y
+CONFIG_MODULES=y
+CONFIG_KUNIT=y
+CONFIG_PCI=y
+CONFIG_DEBUG_FS=y
+CONFIG_MAGIC_SYSRQ=y
+CONFIG_DEBUG_KERNEL=y
+CONFIG_DEBUG_INFO=y
+CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
+CONFIG_DRM=y
+CONFIG_DRM_I915=y
+CONFIG_DRM_I915_KUNIT_TEST=y
diff --git a/drivers/gpu/drm/i915/Kconfig.debug
b/drivers/gpu/drm/i915/Kconfig.debug
index 52a3a59b4ba2c..dc43dcfbadb6e 100644
--- a/drivers/gpu/drm/i915/Kconfig.debug
+++ b/drivers/gpu/drm/i915/Kconfig.debug
@@ -220,6 +220,18 @@ config DRM_I915_SELFTEST_BROKEN
If in doubt, say "N".
+config DRM_I915_KUNIT_TEST
+ tristate "KUnit tests for the drm i915 driver" if !KUNIT_ALL_TESTS
+ depends on DRM_I915 && KUNIT && DEBUG_FS
+ default KUNIT_ALL_TESTS
+ help
+ Choose this option to allow the driver to perform selftests under
+ the kunit framework
+
+ Recommended for driver developers only.
+
+ If in doubt, say "N".
+
config DRM_I915_LOW_LEVEL_TRACEPOINTS
bool "Enable low level request tracing events"
depends on DRM_I915
--
2.49.1