From 823301c847bd9c57dd8f7c684046778281744c77 Mon Sep 17 00:00:00 2001 From: Michal Wajdeczko Date: Thu, 31 Jul 2025 21:33:30 +0200 Subject: [PATCH] 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 --- drivers/gpu/drm/xe/xe_module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_module.c b/drivers/gpu/drm/xe/xe_module.c index cfed36361613..d08338fc3bc1 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; -- 2.47.3