Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Auld <matthew.auld@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Matt Roper <matthew.d.roper@intel.com>
Subject: [PATCH i-g-t 1/2] lib/intel_pat: account for Wa_16023588340
Date: Wed, 19 Jun 2024 15:35:41 +0100	[thread overview]
Message-ID: <20240619143542.110461-1-matthew.auld@intel.com> (raw)

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


             reply	other threads:[~2024-06-19 14:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-19 14:35 Matthew Auld [this message]
2024-06-19 14:35 ` [PATCH i-g-t 2/2] tests/intel/xe_pat: account for Wa_16023588340 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240619143542.110461-1-matthew.auld@intel.com \
    --to=matthew.auld@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=matthew.d.roper@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox