summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/intel_pat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/intel_pat.c b/lib/intel_pat.c
index 041952bd8..b72fbfadf 100644
--- a/lib/intel_pat.c
+++ b/lib/intel_pat.c
@@ -25,6 +25,10 @@ static void intel_get_pat_idx(int fd, struct intel_pat_cache *pat)
pat->wb = 2;
pat->uc_comp = 12; /* Compressed + UC, XE2 and later */
pat->max_index = 31;
+
+ /* Wa_16023588340: CLOS3 entries at end of table are unusable */
+ if (intel_graphics_ver(dev_id) == IP_VER(20, 1))
+ pat->max_index -= 4;
} else if (IS_METEORLAKE(dev_id)) {
pat->uc = 2;
pat->wt = 1;