[igt-dev] [PATCH i-g-t 0/2] Unload mei_gsc before i915

Daniele Ceraolo Spurio daniele.ceraolospurio at intel.com
Wed Mar 30 18:32:57 UTC 2022


mei_gsc is a new module [1] that binds to an aux device exposed by i915,
so it depends on it and needs to be removed before we can unload i915.

Note that the module is automatically loaded by the kernel as a follow-up
to i915 loading, which means its probe might still be in progress by the
time a test attempt to unload again, which will make the unload fail. To
avoid this, we can stall the unload if the probe is still in progress.

[1] https://patchwork.freedesktop.org/series/98066/

Cc: Alexander Usyskin <alexander.usyskin at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>

Daniele Ceraolo Spurio (2):
  lib/igt_kmod: Wait for a kmod to finish its probe before unloding it.
  lib/igt_kmod: Unload mei modules before unloading i915

 lib/igt_kmod.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

-- 
2.25.1



More information about the igt-dev mailing list