summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>2022-04-01 11:22:29 -0700
committerAshutosh Dixit <ashutosh.dixit@intel.com>2022-04-01 16:43:28 -0700
commiteb4044d0bded3b598c54d0230cd3620c6734489c (patch)
tree52adb2284f5c24e2e6770c44098886b35f4cc35c
parent63ab87b8d5fb51fd4a5d05815f6ab5c210fd2376 (diff)
lib/igt_kmod: Unload mei modules before unloading i915
mei_gsc binds to an aux device exposed by i915, so it depends on it and need to be removed before we can unload i915. On platforms with a GSC, the mei components (pxp, hdcp) depend on mei_gsc, so those need to be unloaded first. Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Alexander Usyskin <alexander.usyskin@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
-rw-r--r--lib/igt_kmod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
index 0e3ca9b3..f252535d 100644
--- a/lib/igt_kmod.c
+++ b/lib/igt_kmod.c
@@ -401,6 +401,10 @@ int __igt_i915_driver_unload(const char **who)
const char *aux[] = {
/* gen5: ips uses symbol_get() so only a soft module dependency */
"intel_ips",
+ /* mei_gsc uses an i915 aux dev and the other mei mods depend on it */
+ "mei_pxp",
+ "mei_hdcp",
+ "mei_gsc",
NULL,
};