Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/gt: Remove redundant num_engine check
@ 2024-03-08  7:03 Tejas Upadhyay
  2024-03-08  7:00 ` Ghimiray, Himal Prasad
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: Tejas Upadhyay @ 2024-03-08  7:03 UTC (permalink / raw)
  To: intel-xe; +Cc: Andi Shyti, Niranjana Vishwanathapura, Tejas Upadhyay

In __xe_gt_apply_ccs_mode num_engines will never be 0
as it is already checked by parent function.

Fixes: 0d97ecce16bd ("drm/xe: Enable Fixed CCS mode setting")
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
---
 drivers/gpu/drm/xe/xe_gt_ccs_mode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
index 529fc286cd06..2bbd7b203cc2 100644
--- a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
+++ b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
@@ -22,7 +22,7 @@ static void __xe_gt_apply_ccs_mode(struct xe_gt *gt, u32 num_engines)
 
 	xe_assert(xe, xe_gt_ccs_mode_enabled(gt));
 
-	xe_assert(xe, num_engines && num_engines <= num_slices);
+	xe_assert(xe, num_engines <= num_slices);
 	xe_assert(xe, !(num_slices % num_engines));
 
 	/*
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-03-08 14:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-08  7:03 [PATCH] drm/xe/gt: Remove redundant num_engine check Tejas Upadhyay
2024-03-08  7:00 ` Ghimiray, Himal Prasad
2024-03-08  7:28 ` ✓ CI.Patch_applied: success for " Patchwork
2024-03-08  7:28 ` ✓ CI.checkpatch: " Patchwork
2024-03-08  7:29 ` ✓ CI.KUnit: " Patchwork
2024-03-08  7:40 ` ✓ CI.Build: " Patchwork
2024-03-08  7:40 ` ✗ CI.Hooks: failure " Patchwork
2024-03-08  7:41 ` ✓ CI.checksparse: success " Patchwork
2024-03-08  8:09 ` ✓ CI.BAT: " Patchwork
2024-03-08  9:11 ` [PATCH] " Andi Shyti
2024-03-08  9:55 ` Michal Wajdeczko
2024-03-08 10:29   ` Upadhyay, Tejas
2024-03-08 11:32     ` Andi Shyti
2024-03-08 14:00       ` Upadhyay, Tejas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox