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

Daniele Ceraolo Spurio daniele.ceraolospurio at intel.com
Fri Apr 1 18:22:27 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.

v2: move the wait to the recursive function, so it gets called for all
dependent modules as well (Ashutosh)

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

Cc: Alexander Usyskin <alexander.usyskin at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit 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 | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

-- 
2.25.1



More information about the igt-dev mailing list