Skip to content

Commit

Permalink
drm/xe: Stop ignoring errors from xe_ttm_sys_mgr_init()
Browse files Browse the repository at this point in the history
xe_ttm_sys_mgr_init() already cleans up after itself, just return error
if that failed.

Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250222001051.3012936-12-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
  • Loading branch information
Lucas De Marchi committed Feb 25, 2025
1 parent 1671c96 commit 35359c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpu/drm/xe/xe_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ int xe_device_probe(struct xe_device *xe)
return err;

xe->info.mem_region_mask = 1;

err = xe_set_dma_info(xe);
if (err)
return err;
Expand All @@ -756,7 +757,9 @@ int xe_device_probe(struct xe_device *xe)
if (err)
return err;

xe_ttm_sys_mgr_init(xe);
err = xe_ttm_sys_mgr_init(xe);
if (err)
return err;

for_each_gt(gt, xe, id) {
err = xe_gt_init_early(gt);
Expand Down

0 comments on commit 35359c3

Please sign in to comment.