Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tejas Upadhyay <tejas.upadhyay@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Matt Roper <matthew.d.roper@intel.com>,
	Tejas Upadhyay <tejas.upadhyay@intel.com>
Subject: [PATCH] drm/xe/xe2: Use XE_WA() check
Date: Tue, 16 Jul 2024 15:16:35 +0530	[thread overview]
Message-ID: <20240716094635.3427833-1-tejas.upadhyay@intel.com> (raw)

Use XE_WA as used elsewhere.

Fixes: 86c5b70a9c0c ("drm/xe/xe2: Add Wa_15015404425")
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
---
 drivers/gpu/drm/xe/xe_mmio.c       | 5 ++++-
 drivers/gpu/drm/xe/xe_wa_oob.rules | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_mmio.c b/drivers/gpu/drm/xe/xe_mmio.c
index ea3c37d3e13f..1138934cf969 100644
--- a/drivers/gpu/drm/xe/xe_mmio.c
+++ b/drivers/gpu/drm/xe/xe_mmio.c
@@ -13,6 +13,8 @@
 #include <drm/drm_managed.h>
 #include <drm/drm_print.h>
 
+#include <generated/xe_wa_oob.h>
+
 #include "regs/xe_bars.h"
 #include "regs/xe_regs.h"
 #include "xe_device.h"
@@ -22,6 +24,7 @@
 #include "xe_macros.h"
 #include "xe_sriov.h"
 #include "xe_trace.h"
+#include "xe_wa.h"
 
 static void tiles_fini(void *arg)
 {
@@ -127,7 +130,7 @@ static void mmio_flush_pending_writes(struct xe_gt *gt)
 	struct xe_tile *tile = gt_to_tile(gt);
 	int i;
 
-	if (tile->xe->info.platform != XE_LUNARLAKE)
+	if (!XE_WA(gt, 15015404425))
 		return;
 
 	/* 4 dummy writes */
diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules b/drivers/gpu/drm/xe/xe_wa_oob.rules
index 08f7336881e3..3d0e0779a833 100644
--- a/drivers/gpu/drm/xe/xe_wa_oob.rules
+++ b/drivers/gpu/drm/xe/xe_wa_oob.rules
@@ -30,3 +30,4 @@
 22019338487	MEDIA_VERSION(2000)
 		GRAPHICS_VERSION(2001)
 16023588340	GRAPHICS_VERSION(2001)
+15015404425	GRAPHICS_VERSION(2004)
-- 
2.25.1


             reply	other threads:[~2024-07-16  9:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-16  9:46 Tejas Upadhyay [this message]
2024-07-16  9:51 ` ✓ CI.Patch_applied: success for drm/xe/xe2: Use XE_WA() check Patchwork
2024-07-16  9:51 ` ✓ CI.checkpatch: " Patchwork
2024-07-16  9:52 ` ✓ CI.KUnit: " Patchwork
2024-07-16 10:04 ` ✓ CI.Build: " Patchwork
2024-07-16 10:07 ` ✓ CI.Hooks: " Patchwork
2024-07-16 10:08 ` ✓ CI.checksparse: " Patchwork
2024-07-16 10:38 ` ✗ CI.BAT: failure " Patchwork
2024-07-16 11:55 ` ✗ CI.FULL: " Patchwork
2024-07-16 15:21 ` [PATCH] " Lucas De Marchi
2024-07-17  8:11   ` Upadhyay, Tejas
2024-07-17 16:39     ` Lucas De Marchi
2024-07-22  8:55       ` Upadhyay, Tejas

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=20240716094635.3427833-1-tejas.upadhyay@intel.com \
    --to=tejas.upadhyay@intel.com \
    --cc=intel-xe@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