I tried to see what happened with xe_module_unload --r reload on a fully running system, and came across these bugs in the kernel. Even after these fixes I still see a hang when reloading, related to cgroups, so likely some more fixes are needed to address those.
Should this patch have a fixes tag or cc stable patch? Test-with: https://patchwork.freedesktop.org/series/162133/ Maarten Lankhorst (1): drm: Fix use-after-free on framebuffers and property blobs when calling drm_dev_unplug drivers/gpu/drm/drm_file.c | 5 ++++- drivers/gpu/drm/drm_mode_config.c | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) -- 2.51.0
