[igt-dev] [PATCH] lib/igt_kmod: Make sure the mei modules are loaded when i915 is

Daniele Ceraolo Spurio daniele.ceraolospurio at intel.com
Mon Oct 10 19:01:07 UTC 2022


The mei modules are required on DG2 to use the GSC child device, which
is in turn responsible for loading HuC. We're observing a sporadic
failure in CI (see ref below) where it looks like the mei modules are
not automatically loaded by the kernel the fist time i915 exposes the
child device while being loaded by IGT, but are then loaded fine when
i915 is reloaded by another test later on.

To make sure that the modules get loaded, explicitly modprobe them after
i915 is loaded.

References: https://gitlab.freedesktop.org/drm/intel/-/issues/7029
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
Cc: John Harrison <john.c.harrison at intel.com>
Cc: Alan Previn <alan.previn.teres.alexis at intel.com>
---
 lib/igt_kmod.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
index bcf7dfeb..c9a9c2db 100644
--- a/lib/igt_kmod.c
+++ b/lib/igt_kmod.c
@@ -394,6 +394,9 @@ igt_i915_driver_load(const char *opts)
 	}
 
 	bind_fbcon(true);
+	igt_kmod_load("mei_gsc", NULL);
+	igt_kmod_load("mei_hdcp", NULL);
+	igt_kmod_load("mei_pxp", NULL);
 	igt_kmod_load("snd_hda_intel", NULL);
 
 	return 0;
-- 
2.37.3



More information about the igt-dev mailing list