Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/2] lib/intel_pat: account for Wa_16023588340
@ 2024-06-19 14:35 Matthew Auld
  2024-06-19 14:35 ` [PATCH i-g-t 2/2] tests/intel/xe_pat: " Matthew Auld
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Matthew Auld @ 2024-06-19 14:35 UTC (permalink / raw)
  To: igt-dev; +Cc: Matt Roper

We can't use the CLOS3 entries on BMG g21.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
---
 lib/intel_pat.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/intel_pat.c b/lib/intel_pat.c
index 041952bd8..9191b3577 100644
--- a/lib/intel_pat.c
+++ b/lib/intel_pat.c
@@ -24,7 +24,11 @@ static void intel_get_pat_idx(int fd, struct intel_pat_cache *pat)
 		pat->wt = 15; /* Compressed + WB-transient */
 		pat->wb = 2;
 		pat->uc_comp = 12; /* Compressed + UC, XE2 and later */
-		pat->max_index = 31;
+
+		if (intel_graphics_ver(dev_id) == IP_VER(20, 1))
+			pat->max_index = 27;
+		else
+			pat->max_index = 31;
 	} else if (IS_METEORLAKE(dev_id)) {
 		pat->uc = 2;
 		pat->wt = 1;
-- 
2.45.1


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

end of thread, other threads:[~2024-06-21 20:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 14:35 [PATCH i-g-t 1/2] lib/intel_pat: account for Wa_16023588340 Matthew Auld
2024-06-19 14:35 ` [PATCH i-g-t 2/2] tests/intel/xe_pat: " Matthew Auld
2024-06-21 20:40   ` Matt Roper
2024-06-19 19:51 ` ✓ CI.xeBAT: success for series starting with [i-g-t,1/2] lib/intel_pat: " Patchwork
2024-06-19 20:00 ` ✓ Fi.CI.BAT: " Patchwork
2024-06-20  0:08 ` ✓ Fi.CI.IGT: " Patchwork
2024-06-20  3:31 ` ✗ CI.xeFULL: failure " Patchwork
2024-06-21 20:40 ` [PATCH i-g-t 1/2] " Matt Roper

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