Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/query: Only advertise NO_COMPRESSION hint on devices with flat CCS
@ 2026-02-05  8:20 Sanjay Yadav
  2026-02-05  8:31 ` ✓ CI.KUnit: success for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Sanjay Yadav @ 2026-02-05  8:20 UTC (permalink / raw)
  To: intel-xe; +Cc: matthew.auld, José Roberto de Souza, Stuart Summers

Devices like CRI have GRAPHICS_VER >= 20 but don't have compression
support their PAT table (xe3p_xpc_pat_table) has no compression-enabled
entries.

Only advertise HAS_NO_COMPRESSION_HINT flag when the device actually has
flat CCS and thus compression capability.

Fixes: 78d91ba6bd796 ("drm/xe/uapi: Add NO_COMPRESSION BO flag and query capability")
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Sanjay Yadav <sanjay.kumar.yadav@intel.com>
---
 drivers/gpu/drm/xe/xe_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
index 34db266b723f..c152ebfbd7d8 100644
--- a/drivers/gpu/drm/xe/xe_query.c
+++ b/drivers/gpu/drm/xe/xe_query.c
@@ -335,7 +335,7 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
 	if (xe->info.has_usm && IS_ENABLED(CONFIG_DRM_XE_GPUSVM))
 		config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
 			DRM_XE_QUERY_CONFIG_FLAG_HAS_CPU_ADDR_MIRROR;
-	if (GRAPHICS_VER(xe) >= 20)
+	if (GRAPHICS_VER(xe) >= 20 && xe_device_has_flat_ccs(xe))
 		config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
 			DRM_XE_QUERY_CONFIG_FLAG_HAS_NO_COMPRESSION_HINT;
 	config->info[DRM_XE_QUERY_CONFIG_FLAGS] |=
-- 
2.52.0


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

end of thread, other threads:[~2026-02-06 13:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05  8:20 [PATCH] drm/xe/query: Only advertise NO_COMPRESSION hint on devices with flat CCS Sanjay Yadav
2026-02-05  8:31 ` ✓ CI.KUnit: success for " Patchwork
2026-02-05  9:29 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-05  9:39 ` [PATCH] " Vivekanandan, Balasubramani
2026-02-05  9:49   ` Matthew Auld
2026-02-05  9:56 ` Matthew Auld
2026-02-05 13:43 ` Souza, Jose
2026-02-05 14:17   ` Matthew Auld
2026-02-06 13:28     ` Souza, Jose
2026-02-06  4:33 ` ✓ Xe.CI.FULL: success for " Patchwork

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