From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, Matt Roper <matthew.d.roper@intel.com>
Subject: Re: [PATCH 1/3] drm/xe/bmg: Update Wa_14022085890
Date: Fri, 30 May 2025 09:23:05 -0400 [thread overview]
Message-ID: <aDmxOehCEY2KMwgv@intel.com> (raw)
In-Reply-To: <20250530082047.742183-2-vinay.belgaumkar@intel.com>
On Fri, May 30, 2025 at 01:20:45AM -0700, Vinay Belgaumkar wrote:
> Set GT min frequency to 1200Mhz once driver load is
> complete.
>
> Cc: Matt Roper <matthew.d.roper@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc_pc.c | 9 +++++++--
> drivers/gpu/drm/xe/xe_wa_oob.rules | 1 +
> 2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_pc.c b/drivers/gpu/drm/xe/xe_guc_pc.c
> index 18c623992035..513657154dbe 100644
> --- a/drivers/gpu/drm/xe/xe_guc_pc.c
> +++ b/drivers/gpu/drm/xe/xe_guc_pc.c
> @@ -51,6 +51,7 @@
>
> #define LNL_MERT_FREQ_CAP 800
> #define BMG_MERT_FREQ_CAP 2133
> +#define MIN_FREQ_WA_14022085890 1200
Perhaps something more generic like BMG_MIN_FREQ is better.
Then make this the default and stashed instead of setting at that point below...
>
> #define SLPC_RESET_TIMEOUT_MS 5 /* roughly 5ms, but no need for precision */
> #define SLPC_RESET_EXTENDED_TIMEOUT_MS 1000 /* To be used only at pc_start */
> @@ -911,8 +912,12 @@ int xe_guc_pc_restore_stashed_freq(struct xe_guc_pc *pc)
>
> mutex_lock(&pc->freq_lock);
> ret = pc_set_max_freq(pc, pc->stashed_max_freq);
> - if (!ret)
> - ret = pc_set_min_freq(pc, pc->stashed_min_freq);
> + if (!ret) {
> + if (XE_WA(pc_to_gt(pc), 14022085890))
> + ret = pc_set_min_freq(pc, MIN_FREQ_WA_14022085890);
> + else
> + ret = pc_set_min_freq(pc, pc->stashed_min_freq);
shouldn't we make in a way that the stashed min freq is the 1200?
> + }
> mutex_unlock(&pc->freq_lock);
>
> return ret;
> diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules b/drivers/gpu/drm/xe/xe_wa_oob.rules
> index 9efc5accd43d..75fbdab68d44 100644
> --- a/drivers/gpu/drm/xe/xe_wa_oob.rules
> +++ b/drivers/gpu/drm/xe/xe_wa_oob.rules
> @@ -59,3 +59,4 @@ no_media_l3 MEDIA_VERSION(3000)
> MEDIA_VERSION_RANGE(1301, 3000)
> 16026508708 GRAPHICS_VERSION_RANGE(1200, 3001)
> MEDIA_VERSION_RANGE(1300, 3000)
> +14022085890 GRAPHICS_VERSION(2001)
> --
> 2.38.1
>
next prev parent reply other threads:[~2025-05-30 13:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-30 8:20 [PATCH 0/3] drm/xe/bmg: Update some WAs Vinay Belgaumkar
2025-05-30 8:20 ` [PATCH 1/3] drm/xe/bmg: Update Wa_14022085890 Vinay Belgaumkar
2025-05-30 13:23 ` Rodrigo Vivi [this message]
2025-05-30 8:20 ` [PATCH 2/3] drm/xe/bmg: Update Wa_22019338487 Vinay Belgaumkar
2025-05-30 13:19 ` Rodrigo Vivi
2025-05-30 8:20 ` [PATCH 3/3] drm/xe/bmg: Update Wa_16023588340 Vinay Belgaumkar
2025-05-30 8:49 ` Matthew Auld
2025-05-31 13:02 ` Lucas De Marchi
2025-05-30 8:51 ` ✓ CI.Patch_applied: success for drm/xe/bmg: Update some WAs Patchwork
2025-05-30 8:51 ` ✓ CI.checkpatch: " Patchwork
2025-05-30 8:52 ` ✓ CI.KUnit: " Patchwork
2025-05-30 9:03 ` ✓ CI.Build: " Patchwork
2025-05-30 9:06 ` ✓ CI.Hooks: " Patchwork
2025-05-30 9:07 ` ✓ CI.checksparse: " Patchwork
2025-05-30 9:35 ` ✓ Xe.CI.BAT: " Patchwork
2025-05-31 12:40 ` ✗ Xe.CI.Full: 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=aDmxOehCEY2KMwgv@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--cc=vinay.belgaumkar@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