summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2026-07-07 15:48:46 +0300
committerImre Deak <imre.deak@intel.com>2026-07-09 10:38:03 +0300
commit3d5fc70709520f14da98ca54f27841dfc8fdcd2e (patch)
treec4a6ec2cbec119f7dd374bcc528a9a11afadc657 /drivers
parent55b131b3d00913cc809981cf1c7301956bf757ee (diff)
downloadlinux-3d5fc70709520f14da98ca54f27841dfc8fdcd2e.tar.gz
linux-3d5fc70709520f14da98ca54f27841dfc8fdcd2e.zip
drm/i915/kunit: Enable KUnit tests
Add KUnit configuration for i915 and a local .kunitconfig to run the tests. v2: Unchanged. v3: Remove kconfig options for kernel debug. Reviewed-by: MichaƂ Grzelak <michal.grzelak@intel.com> # v2 Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20260707124849.135319-1-imre.deak@intel.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/.kunitconfig9
-rw-r--r--drivers/gpu/drm/i915/Kconfig.debug12
2 files changed, 21 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/.kunitconfig b/drivers/gpu/drm/i915/.kunitconfig
new file mode 100644
index 000000000000..1b47fe62b285
--- /dev/null
+++ b/drivers/gpu/drm/i915/.kunitconfig
@@ -0,0 +1,9 @@
+CONFIG_EXPERT=y
+CONFIG_MODULES=y
+CONFIG_KUNIT=y
+CONFIG_PCI=y
+CONFIG_DEBUG_FS=y
+CONFIG_MAGIC_SYSRQ=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 52a3a59b4ba2..dc43dcfbadb6 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