From: Michal Wajdeczko Date: Thu, 31 Jul 2025 19:33:30 +0000 (+0200) Subject: drm/xe: Print module init abort code X-Git-Tag: v6.18-rc1~134^2~18^2~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=823301c847bd9c57dd8f7c684046778281744c77;p=thirdparty%2Flinux.git drm/xe: Print module init abort code We should provide a hint to the user why the module refused to load. This will also allow us to drop individual error messages from init steps. Signed-off-by: Michal Wajdeczko Reviewed-by: Rodrigo Vivi Reviewed-by: Lucas De Marchi Link: https://lore.kernel.org/r/20250731193339.179829-3-michal.wajdeczko@intel.com Signed-off-by: Lucas De Marchi --- diff --git a/drivers/gpu/drm/xe/xe_module.c b/drivers/gpu/drm/xe/xe_module.c index cfed363616137..d08338fc3bc1e 100644 --- a/drivers/gpu/drm/xe/xe_module.c +++ b/drivers/gpu/drm/xe/xe_module.c @@ -155,6 +155,8 @@ static int __init xe_init(void) for (i = 0; i < ARRAY_SIZE(init_funcs); i++) { err = xe_call_init_func(init_funcs + i); if (err) { + pr_info("%s: module_init aborted at %ps %pe\n", + DRIVER_NAME, init_funcs[i].init, ERR_PTR(err)); while (i--) xe_call_exit_func(init_funcs + i); return err;