diff options
author | Matthew Auld <matthew.auld@intel.com> | 2024-06-19 15:35:41 +0100 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2024-07-05 10:34:03 +0100 |
commit | 95c1b90101478a8dc9571cc429aae1967113984d (patch) | |
tree | b4f58e854c3ad00d05551e266d61e575da231fd7 | |
parent | 971cfc9d6afc8242db25d1eabd4ae00890d9144a (diff) |
lib/intel_pat: account for Wa_16023588340
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>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
-rw-r--r-- | lib/intel_pat.c | 4 |
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; |