From: Matt Atwood <matthew.s.atwood@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
<badal.nilawar@intel.com>, <prashanth.kumar@intel.com>,
<dnyaneshwar.bhadane@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <prashanth.kumar@intel.com>,
<dnyaneshwar.bhadane@intel.com>,
Badal Nilawar <badal.nilawar@intel.com>
Subject: Re: [PATCH v4 04/13] drm/xe/psmi: Add Wa_14020001231
Date: Wed, 20 Aug 2025 13:31:01 -0700 [thread overview]
Message-ID: <aKYwhfWLEjkAJqsW@msatwood-mobl> (raw)
In-Reply-To: <20250818-psmi-v4-4-a330783ce1c0@intel.com>
On Mon, Aug 18, 2025 at 10:37:29AM -0700, Lucas De Marchi wrote:
> From: Badal Nilawar <badal.nilawar@intel.com>
>
> Enable Wa 14020001231 to block psmi interrupts during C6 entry exit
> flow. It's only enabled if PSMI is enabled in runtime.
>
> Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
> ---
> v2:
> - Enable only when PSMI is enabled
> v3:
> - s/XE_WA/XE_GT_WA/ to follow rename
> ---
> drivers/gpu/drm/xe/abi/guc_klvs_abi.h | 1 +
> drivers/gpu/drm/xe/xe_guc_ads.c | 4 ++++
> drivers/gpu/drm/xe/xe_wa_oob.rules | 4 ++++
> 3 files changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
> index 31dbfeee289e7..0e78351c6ef5a 100644
> --- a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
> +++ b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
> @@ -390,6 +390,7 @@ enum {
> */
> enum xe_guc_klv_ids {
> GUC_WORKAROUND_KLV_BLOCK_INTERRUPTS_WHEN_MGSR_BLOCKED = 0x9002,
> + GUC_WORKAROUND_KLV_DISABLE_PSMI_INTERRUPTS_AT_C6_ENTRY_RESTORE_AT_EXIT = 0x9004,
> GUC_WORKAROUND_KLV_ID_GAM_PFQ_SHADOW_TAIL_POLLING = 0x9005,
> GUC_WORKAROUND_KLV_ID_DISABLE_MTP_DURING_ASYNC_COMPUTE = 0x9007,
> GUC_WA_KLV_NP_RD_WRITE_TO_CLEAR_RCSM_AT_CGP_LATE_RESTORE = 0x9008,
> diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
> index d7da676370792..5631722f34f53 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ads.c
> +++ b/drivers/gpu/drm/xe/xe_guc_ads.c
> @@ -359,6 +359,10 @@ static void guc_waklv_init(struct xe_guc_ads *ads)
> GUC_WA_KLV_RESTORE_UNSAVED_MEDIA_CONTROL_REG);
> }
>
> + if (XE_GT_WA(gt, 14020001231))
> + guc_waklv_enable(ads, NULL, 0, &offset, &remain,
> + GUC_WORKAROUND_KLV_DISABLE_PSMI_INTERRUPTS_AT_C6_ENTRY_RESTORE_AT_EXIT);
> +
> size = guc_ads_waklv_size(ads) - remain;
> if (!size)
> return;
> diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules b/drivers/gpu/drm/xe/xe_wa_oob.rules
> index 8d0aabab67773..303a5e05d9932 100644
> --- a/drivers/gpu/drm/xe/xe_wa_oob.rules
> +++ b/drivers/gpu/drm/xe/xe_wa_oob.rules
> @@ -68,6 +68,10 @@ no_media_l3 MEDIA_VERSION(3000)
> MEDIA_VERSION_RANGE(1300, 3000)
> MEDIA_VERSION(3002)
> GRAPHICS_VERSION(3003)
> +14020001231 GRAPHICS_VERSION_RANGE(2001,2004), FUNC(xe_rtp_match_psmi_enabled)
> + MEDIA_VERSION(2000), FUNC(xe_rtp_match_psmi_enabled)
> + MEDIA_VERSION(3000), FUNC(xe_rtp_match_psmi_enabled)
> + MEDIA_VERSION(3002), FUNC(xe_rtp_match_psmi_enabled)
>
> # SoC workaround - currently applies to all platforms with the following
> # primary GT GMDID
>
> --
> 2.50.1
>
next prev parent reply other threads:[~2025-08-20 20:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-18 17:37 [PATCH v4 00/13] drm/xe: Add psmi support Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 01/13] drm/xe/psmi: Add GuC flag to enable PSMI Lucas De Marchi
2025-08-21 14:47 ` Belgaumkar, Vinay
2025-08-18 17:37 ` [PATCH v4 02/13] drm/xe/psmi: Add debugfs interface for PSMI Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 03/13] drm/xe/rtp: Add match for psmi Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 04/13] drm/xe/psmi: Add Wa_14020001231 Lucas De Marchi
2025-08-20 20:31 ` Matt Atwood [this message]
2025-08-18 17:37 ` [PATCH v4 05/13] drm/xe/psmi: Add Wa_16023683509 Lucas De Marchi
2025-08-20 20:42 ` Matt Atwood
2025-08-18 17:37 ` [PATCH v4 06/13] drm/xe/configfs: Simplify kernel doc Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 07/13] drm/xe/configfs: Allow to enable PSMI Lucas De Marchi
2025-08-20 7:52 ` Riana Tauro
2025-08-18 17:37 ` [PATCH v4 08/13] drm/xe/configfs: Use guard() for dev->lock Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 09/13] drm/xe/configfs: Block runtime attribute changes Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 10/13] drm/xe/configfs: Use tree-like output in documentation Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 11/13] drm/xe/configfs: Improve documentation steps Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 12/13] drm/xe/configfs: Minor fixes to documentation Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 13/13] drm/xe/configfs: Dump custom settings when binding Lucas De Marchi
2025-08-18 19:50 ` ✗ CI.checkpatch: warning for drm/xe: Add psmi support (rev4) Patchwork
2025-08-18 19:51 ` ✓ CI.KUnit: success " Patchwork
2025-08-18 21:13 ` ✓ Xe.CI.BAT: " Patchwork
2025-08-19 16:04 ` ✗ Xe.CI.Full: failure " Patchwork
2025-08-19 16:51 ` Lucas De Marchi
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=aKYwhfWLEjkAJqsW@msatwood-mobl \
--to=matthew.s.atwood@intel.com \
--cc=badal.nilawar@intel.com \
--cc=dnyaneshwar.bhadane@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=prashanth.kumar@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