aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2025-07-31 21:33:30 +0200
committerLucas De Marchi <lucas.demarchi@intel.com>2025-08-05 11:53:17 -0700
commit823301c847bd9c57dd8f7c684046778281744c77 (patch)
treeac308b5fab43eaa04916c758faa6691e4fe6d24a /drivers/gpu
parentdrm/xe: Simplify module initialization code (diff)
downloadlinux-823301c847bd9c57dd8f7c684046778281744c77.tar.gz
linux-823301c847bd9c57dd8f7c684046778281744c77.zip
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 <michal.wajdeczko@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20250731193339.179829-3-michal.wajdeczko@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/xe/xe_module.c2
1 files changed, 2 insertions, 0 deletions
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;