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>
This commit is contained in:
Michal Wajdeczko 2025-07-31 21:33:30 +02:00 committed by Lucas De Marchi
parent 90759cddac
commit 823301c847

View 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;