From: Matt Atwood <matthew.s.atwood@intel.com>
To: Matt Roper <matthew.d.roper@intel.com>, <intel-xe@lists.freedesktop.org>
Cc: <intel-xe@lists.freedesktop.org>, <lucas.demarchi@intel.com>,
<rodrigo.vivi@intel.com>
Subject: Re: [PATCH v3 3/5] drm/xe: Move Wa_15015404425 to use the new EX_DEVICE_WA macro
Date: Wed, 25 Jun 2025 13:08:56 -0700 [thread overview]
Message-ID: <aFxXWMZfp-_KpmoS@msatwood-mobl> (raw)
In-Reply-To: <20250625195716.GG4868@mdroper-desk1.amr.corp.intel.com>
On Wed, Jun 25, 2025 at 12:57:16PM -0700, Matt Roper wrote:
> On Wed, Jun 25, 2025 at 12:33:38PM -0700, Matt Atwood wrote:
> > Move Wa_15015404425 to use the new implemented OOB macro XE_DEVICE_WA()
> >
> > v2: rename from SoC to Device
> >
> > Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
> > ---
> > drivers/gpu/drm/xe/xe_device_wa_oob.rules | 1 +
> > drivers/gpu/drm/xe/xe_mmio.c | 10 +++++-----
> > 2 files changed, 6 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/xe/xe_device_wa_oob.rules b/drivers/gpu/drm/xe/xe_device_wa_oob.rules
> > index e69de29bb2d1..b7d12ea4d65c 100644
> > --- a/drivers/gpu/drm/xe/xe_device_wa_oob.rules
> > +++ b/drivers/gpu/drm/xe/xe_device_wa_oob.rules
> > @@ -0,0 +1 @@
> > +15015404425 PLATFORM(LUNARLAKE)
> > diff --git a/drivers/gpu/drm/xe/xe_mmio.c b/drivers/gpu/drm/xe/xe_mmio.c
> > index 7357458bc0d2..4990b3a47afd 100644
> > --- a/drivers/gpu/drm/xe/xe_mmio.c
> > +++ b/drivers/gpu/drm/xe/xe_mmio.c
> > @@ -22,6 +22,9 @@
> > #include "xe_macros.h"
> > #include "xe_sriov.h"
> > #include "xe_trace.h"
> > +#include "xe_wa.h"
> > +
> > +#include "generated/xe_soc_wa_oob.h"
>
> Isn't this the wrong header name?
Yes
>
> >
> > static void tiles_fini(void *arg)
> > {
> > @@ -163,9 +166,6 @@ static void mmio_flush_pending_writes(struct xe_mmio *mmio)
> > #define DUMMY_REG_OFFSET 0x130030
> > int i;
> >
> > - if (mmio->tile->xe->info.platform != XE_LUNARLAKE)
> > - return;
> > -
> > /* 4 dummy writes */
> > for (i = 0; i < 4; i++)
> > writel(0, mmio->regs + DUMMY_REG_OFFSET);
> > @@ -176,8 +176,8 @@ u8 xe_mmio_read8(struct xe_mmio *mmio, struct xe_reg reg)
> > u32 addr = xe_mmio_adjusted_addr(mmio, reg.addr);
> > u8 val;
> >
> > - /* Wa_15015404425 */
> > - mmio_flush_pending_writes(mmio);
> > + if (XE_DEVICE_WA(mmio->tile->xe, 15015404425))
> > + mmio_flush_pending_writes(mmio);
>
> Moving the check out of the function to the callsite seems fine to me,
> but we need to do it at all the callsites, not just read8.
>
> Also, you have a typo in the patch subject line (s/EX/XE/).
>
>
> Matt
>
> >
> > val = readb(mmio->regs + addr);
> > trace_xe_reg_rw(mmio, false, addr, val, sizeof(val));
> > --
> > 2.49.0
> >
>
> --
> Matt Roper
> Graphics Software Engineer
> Linux GPU Platform Enablement
> Intel Corporation
next prev parent reply other threads:[~2025-06-25 20:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-25 19:33 [PATCH v2 0/5] drm/xe: Create and use XE_DEVICE_WA infrastructure Matt Atwood
2025-06-25 19:33 ` [PATCH v3 1/5] drm/xe: add xe_device_wa infrastructure Matt Atwood
2025-06-25 19:33 ` [PATCH v3 2/5] drm/xe: Add infrastructure for Device OOB workarounds Matt Atwood
2025-06-25 19:51 ` Matt Roper
2025-06-25 20:39 ` Matt Roper
2025-06-25 19:33 ` [PATCH v3 3/5] drm/xe: Move Wa_15015404425 to use the new EX_DEVICE_WA macro Matt Atwood
2025-06-25 19:57 ` Matt Roper
2025-06-25 20:08 ` Matt Atwood [this message]
2025-06-25 19:33 ` [PATCH v3 4/5] drm/xe: extend Wa_15015404425 to apply to PTL Matt Atwood
2025-06-25 19:33 ` [PATCH v3 5/5] drm/xe: disable wa_15015404425 for PTL B0 Matt Atwood
2025-06-25 20:33 ` Matt Roper
2025-06-25 19:39 ` ✗ CI.checkpatch: warning for drm/xe: Create and use XE_DEVICE_WA infrastructure (rev2) Patchwork
2025-06-25 19:39 ` ✗ CI.KUnit: failure " Patchwork
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=aFxXWMZfp-_KpmoS@msatwood-mobl \
--to=matthew.s.atwood@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=matthew.d.roper@intel.com \
--cc=rodrigo.vivi@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