projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79f944e
)
drm/xe: Return immediately on tile_init failure
author
Rodrigo Vivi
<rodrigo.vivi@intel.com>
Wed, 6 Mar 2024 20:31:10 +0000
(15:31 -0500)
committer
Rodrigo Vivi
<rodrigo.vivi@intel.com>
Wed, 6 Mar 2024 21:35:44 +0000
(16:35 -0500)
There's no reason to proceed with applying workaround and initing
sysfs if we are going to abort the probe upon failure.
Fixes:
e5a845fd8fa4
("drm/xe: Add sysfs entry for tile")
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240306203110.146387-1-rodrigo.vivi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_tile.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/xe/xe_tile.c
b/drivers/gpu/drm/xe/xe_tile.c
index 044c20881de7ef0ede17f4dcfcdf34863817d8de..0650b2fa75efba85aea8d2a98e7d076ebabd607a 100644
(file)
--- a/
drivers/gpu/drm/xe/xe_tile.c
+++ b/
drivers/gpu/drm/xe/xe_tile.c
@@
-167,9
+167,10
@@
int xe_tile_init_noalloc(struct xe_tile *tile)
goto err_mem_access;
tile->mem.kernel_bb_pool = xe_sa_bo_manager_init(tile, SZ_1M, 16);
- if (IS_ERR(tile->mem.kernel_bb_pool))
+ if (IS_ERR(tile->mem.kernel_bb_pool))
{
err = PTR_ERR(tile->mem.kernel_bb_pool);
-
+ goto err_mem_access;
+ }
xe_wa_apply_tile_workarounds(tile);
xe_tile_sysfs_init(tile);