Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ashutosh Dixit <ashutosh.dixit@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Matthew Auld <matthew.auld@intel.com>
Subject: [PATCH] drm/xe/pat: Use XE_WA in xe_pat_init_early
Date: Mon,  7 Jul 2025 15:21:11 -0700	[thread overview]
Message-ID: <20250707222111.3214505-1-ashutosh.dixit@intel.com> (raw)

Add the missing XE_WA in xe_pat_init_early.

Fixes: 01570b446939 ("drm/xe/bmg: implement Wa_16023588340")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 drivers/gpu/drm/xe/xe_pat.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c
index 2e7cb99ae87aa..d36da052f8a43 100644
--- a/drivers/gpu/drm/xe/xe_pat.c
+++ b/drivers/gpu/drm/xe/xe_pat.c
@@ -384,8 +384,7 @@ void xe_pat_init_early(struct xe_device *xe)
 		if (IS_DGFX(xe))
 			xe->pat.pat_pta = &xe2_pat_pta;
 
-		/* Wa_16023588340. XXX: Should use XE_WA */
-		if (GRAPHICS_VERx100(xe) == 2001)
+		if (XE_WA(xe_root_mmio_gt(xe), 16023588340))
 			xe->pat.n_entries = 28; /* Disable CLOS3 */
 		else
 			xe->pat.n_entries = ARRAY_SIZE(xe2_pat_table);
-- 
2.48.1


             reply	other threads:[~2025-07-07 22:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-07 22:21 Ashutosh Dixit [this message]
2025-07-07 23:01 ` ✓ CI.KUnit: success for drm/xe/pat: Use XE_WA in xe_pat_init_early Patchwork
2025-07-07 23:51 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-07-08  2:48 ` ✗ Xe.CI.Full: " Patchwork
2025-07-08  3:48 ` [PATCH] " Lucas De Marchi
2025-07-08 14:26   ` Dixit, Ashutosh

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=20250707222111.3214505-1-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.auld@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