Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/guc: Use xe_device_is_l2_flush_optimized()
@ 2026-05-13 19:07 Gustavo Sousa
  2026-05-13 20:18 ` ✓ CI.KUnit: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Gustavo Sousa @ 2026-05-13 19:07 UTC (permalink / raw)
  To: intel-xe; +Cc: Tejas Upadhyay, Gustavo Sousa

We encapsulate the logic to check if the platform has L2 flush
optimization feature in xe_device_is_l2_flush_optimized(), but
guc_ctl_feature_flags() is using an open-coded version of that same type
of check.  Fix that by replacing the open-coded check with
xe_device_is_l2_flush_optimized().

Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
---
 drivers/gpu/drm/xe/xe_guc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index e468b638271b..4023700ff2a9 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -98,7 +98,7 @@ static u32 guc_ctl_feature_flags(struct xe_guc *guc)
 	if (xe_guc_using_main_gamctrl_queues(guc))
 		flags |= GUC_CTL_MAIN_GAMCTRL_QUEUES;
 
-	if (GRAPHICS_VER(xe) >= 35 && !IS_DGFX(xe) && xe_gt_is_media_type(guc_to_gt(guc)))
+	if (xe_device_is_l2_flush_optimized(xe) && xe_gt_is_media_type(guc_to_gt(guc)))
 		flags |= GUC_CTL_ENABLE_L2FLUSH_OPT;
 
 	return flags;

---
base-commit: e54a14bbf920aa5eefc70aba9927482ebe630f8b
change-id: 20260513-guc-l2-flush-opt-use-xe_device_is_l2_flush_optimized-f94e54ef51cb

Best regards,
--  
Gustavo Sousa <gustavo.sousa@intel.com>


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

end of thread, other threads:[~2026-05-18 21:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-13 19:07 [PATCH] drm/xe/guc: Use xe_device_is_l2_flush_optimized() Gustavo Sousa
2026-05-13 20:18 ` ✓ CI.KUnit: success for " Patchwork
2026-05-13 21:32 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-14 11:59 ` [PATCH] " Girotra, Himanshu
2026-05-15  6:24   ` Upadhyay, Tejas
2026-05-18 21:33     ` Gustavo Sousa
2026-05-14 21:35 ` ✗ Xe.CI.FULL: failure for " Patchwork
2026-05-18 21:22   ` Gustavo Sousa

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