Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, Matthew Auld <matthew.auld@intel.com>
Subject: Re: [PATCH] drm/xe/pat: Use XE_WA in xe_pat_init_early
Date: Tue, 08 Jul 2025 07:26:45 -0700	[thread overview]
Message-ID: <87wm8i21y2.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <3ab27we7l3262ltktojmwxt6m35iv2qx7k52cnfsjidqts6h6m@qxmnk52eaeg2>

On Mon, 07 Jul 2025 20:48:38 -0700, Lucas De Marchi wrote:
>
> On Mon, Jul 07, 2025 at 03:21:11PM -0700, Ashutosh Dixit wrote:
> > 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_device_probe()
>	xe_pat_init_early() // -> OOB WAs are not initialized at this point
>	...
>	for_each_gt()
>		xe_gt_init_early()
>			xe_wa_init()
>			xe_wa_process_oob()
>
> you should see this assert triggered:
>	xe_gt_assert(gt__, (gt__)->wa_active.oob_initialized);

Yikes, got it. Thanks.

>
> >			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-08 14:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-07 22:21 [PATCH] drm/xe/pat: Use XE_WA in xe_pat_init_early Ashutosh Dixit
2025-07-07 23:01 ` ✓ CI.KUnit: success for " 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 [this message]

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=87wm8i21y2.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --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