diff options
| author | Matthew Auld <matthew.auld@intel.com> | 2026-06-26 12:15:25 +0100 |
|---|---|---|
| committer | Matthew Auld <matthew.auld@intel.com> | 2026-07-10 12:50:11 +0100 |
| commit | 08af1a0efd04301d094f9acc09ce0c1ba8ea26c5 (patch) | |
| tree | a78c042882656c2e2f5af99a40c43635553cfe0b | |
| parent | 0c9a7926bd8edbeb6e416afdf07cfd8a96d56e20 (diff) | |
| download | linux-next-08af1a0efd04301d094f9acc09ce0c1ba8ea26c5.tar.gz linux-next-08af1a0efd04301d094f9acc09ce0c1ba8ea26c5.zip | |
drm/xe/hw_engine: don't open code is_usm_hwe()
Prefer is_usm_hwe() here.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patch.msgid.link/20260626111520.487997-16-matthew.auld@intel.com
| -rw-r--r-- | drivers/gpu/drm/xe/xe_hw_engine.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_hw_engine.c b/drivers/gpu/drm/xe/xe_hw_engine.c index 87d60c4117bd..dd2d37e3d80c 100644 --- a/drivers/gpu/drm/xe/xe_hw_engine.c +++ b/drivers/gpu/drm/xe/xe_hw_engine.c @@ -1043,8 +1043,7 @@ bool xe_hw_engine_is_reserved(struct xe_hw_engine *hwe) hwe->logical_instance >= gt->ccs_mode) return true; - return xe->info.has_usm && hwe->class == XE_ENGINE_CLASS_COPY && - hwe->instance == gt->usm.reserved_bcs_instance; + return xe_gt_is_usm_hwe(gt, hwe); } const char *xe_hw_engine_class_to_str(enum xe_engine_class class) |
