From: Gustavo Sousa <gustavo.sousa@intel.com>
To: Nitin Gote <nitin.r.gote@intel.com>, <intel-xe@lists.freedesktop.org>
Cc: <nitin.r.gote@intel.com>, Matt Roper <matthew.d.roper@intel.com>
Subject: Re: [PATCH] drm/xe/xe3: Apply Wa_16029380221 to media
Date: Fri, 29 May 2026 09:45:03 -0300 [thread overview]
Message-ID: <87h5nqs7u8.fsf@intel.com> (raw)
In-Reply-To: <20260529095306.443350-2-nitin.r.gote@intel.com>
Nitin Gote <nitin.r.gote@intel.com> writes:
> Apply Wa_16029380221 to Xe3p_LPM.
>
> The Xe3p_LPM media page walker is hard-wired NonCoherent and cannot
> observe CPU:WB cached page table data. Force page tables to CPU:WC
> by clearing has_cached_pt when MEDIA_VERSION(3500) is detected.
>
> Cc: Matt Roper <matthew.d.roper@intel.com>
> Signed-off-by: Nitin Gote <nitin.r.gote@intel.com>
> ---
> drivers/gpu/drm/xe/xe_device.c | 9 +++++++++
> drivers/gpu/drm/xe/xe_wa_oob.rules | 1 +
> 2 files changed, 10 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index d224861b6f6f..8a6f494e11d5 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -948,6 +948,15 @@ int xe_device_probe(struct xe_device *xe)
> return err;
> }
>
> + /*
> + * Wa_16029380221: Xe3p_LPM media page walker is hard-wired
> + * NonCoherent, so page tables must use CPU:WC (uncached) to
> + * be visible to the media engine regardless of stepping.
> + */
> + for_each_gt(gt, xe, id)
> + if (XE_GT_WA(gt, 16029380221))
> + xe->info.has_cached_pt = false;
> +
This will also disable the feature for the primary GT. Do we really
want/need that?
I wonder if we should change this setting to be a per-GT one instead of
global to the device. Perhaps one problem would be page tables shared
between media and primary GT. Is that a possibility?
--
Gustavo Sousa
> for_each_tile(tile, xe, id) {
> err = xe_ggtt_init_early(tile->mem.ggtt);
> if (err)
> diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules b/drivers/gpu/drm/xe/xe_wa_oob.rules
> index f8a185103b80..9027365f0043 100644
> --- a/drivers/gpu/drm/xe/xe_wa_oob.rules
> +++ b/drivers/gpu/drm/xe/xe_wa_oob.rules
> @@ -65,3 +65,4 @@
>
> 14025883347 MEDIA_VERSION_RANGE(1301, 3503)
> GRAPHICS_VERSION_RANGE(2004, 3005)
> +16029380221 MEDIA_VERSION(3500)
> --
> 2.50.1
next prev parent reply other threads:[~2026-05-29 12:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 9:53 [PATCH] drm/xe/xe3: Apply Wa_16029380221 to media Nitin Gote
2026-05-29 9:24 ` ✓ CI.KUnit: success for " Patchwork
2026-05-29 10:05 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-29 12:45 ` Gustavo Sousa [this message]
2026-06-04 14:22 ` [PATCH] " Gote, Nitin R
2026-05-29 13:09 ` ✗ Xe.CI.FULL: failure for " 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=87h5nqs7u8.fsf@intel.com \
--to=gustavo.sousa@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--cc=nitin.r.gote@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