projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe87b7d
)
drm/xe/device: fix XE_MAX_GT_PER_TILE check
author
Matthew Auld
<matthew.auld@intel.com>
Mon, 18 Mar 2024 18:05:34 +0000
(18:05 +0000)
committer
Matthew Auld
<matthew.auld@intel.com>
Tue, 19 Mar 2024 08:47:49 +0000
(08:47 +0000)
Here XE_MAX_GT_PER_TILE is the total, therefore the gt index should
always be less than.
Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240318180532.57522-5-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_device.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_device.h
b/drivers/gpu/drm/xe/xe_device.h
index 14be34d9f5434be0dbb9186b6ae55ac19f7bf7b8..5c254ec9c602e4c230040a73567679fcc627f6ef 100644
(file)
--- a/
drivers/gpu/drm/xe/xe_device.h
+++ b/
drivers/gpu/drm/xe/xe_device.h
@@
-58,7
+58,7
@@
static inline struct xe_tile *xe_device_get_root_tile(struct xe_device *xe)
static inline struct xe_gt *xe_tile_get_gt(struct xe_tile *tile, u8 gt_id)
{
- if (drm_WARN_ON(&tile_to_xe(tile)->drm, gt_id > XE_MAX_GT_PER_TILE))
+ if (drm_WARN_ON(&tile_to_xe(tile)->drm, gt_id >
=
XE_MAX_GT_PER_TILE))
gt_id = 0;
return gt_id ? tile->media_gt : tile->primary_gt;