]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe: Print module init abort code
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 31 Jul 2025 19:33:30 +0000 (21:33 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 5 Aug 2025 18:53:17 +0000 (11:53 -0700)
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>
drivers/gpu/drm/xe/xe_module.c

index cfed36361613733ba3861603e3d89348b6c96845..d08338fc3bc1e7d787d79c76e2549036c3ed1cb2 100644 (file)
@@ -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;