From: Varun Gupta <varun.gupta@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: matthew.d.roper@intel.com, gustavo.sousa@intel.com,
tilak.tirumalesh.tangudu@intel.com, tejas.upadhyay@intel.com
Subject: [PATCH 2/2] drm/xe/guc: Enable the KLV for Wa_14028597154
Date: Tue, 24 Nov 2026 18:37:00 +0530 [thread overview]
Message-ID: <20261124130657.800225-6-varun.gupta@intel.com> (raw)
In-Reply-To: <20261124130657.800225-4-varun.gupta@intel.com>
From: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Wa_14028597154: the GuC can not rely on the semaphore wait information
that the HW provides for multi-queue contexts.
The workaround is implemented by the GuC, so we just need to enable it
via the dedicated KLV. Once enabled, the GuC no longer relies on that
information to track the contexts waiting on a semaphore. This is
supported starting from GuC 70.81.
Signed-off-by: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Signed-off-by: Varun Gupta <varun.gupta@intel.com>
---
drivers/gpu/drm/xe/abi/guc_klvs_abi.h | 1 +
drivers/gpu/drm/xe/xe_guc_ads.c | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
index 4103de0b1c97..37ae08849ccb 100644
--- a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
+++ b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
@@ -513,6 +513,7 @@ enum {
*/
enum xe_guc_klv_ids {
GUC_FEATURE_KLV_DISABLE_MULTI_QUEUE = 0x5001,
+ GUC_WA_KLV_DISABLE_PPHWSP_ACCESS_FOR_MULTIQ_SEM_TOKEN_64 = 0x5002,
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,
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
index f333480f94e5..4948281219f3 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.c
+++ b/drivers/gpu/drm/xe/xe_guc_ads.c
@@ -413,6 +413,18 @@ static void guc_waklv_init(struct xe_guc_ads *ads)
GUC_FEATURE_KLV_DISABLE_MULTI_QUEUE);
}
+ /* Wa_14028597154: implemented by the GuC, only needed if multi-queue can be used */
+ if (XE_GT_WA(gt, 14028597154) && xe_gt_has_multi_queue(gt)) {
+ if (GUC_FIRMWARE_VER_AT_LEAST(>->uc.guc, 70, 81)) {
+ u32 data = 1;
+
+ guc_waklv_enable(ads, &data, 1, &offset, &remain,
+ GUC_WA_KLV_DISABLE_PPHWSP_ACCESS_FOR_MULTIQ_SEM_TOKEN_64);
+ } else {
+ xe_gt_info(gt, "Wa_14028597154 needs GuC 70.81 or greater\n");
+ }
+ }
+
size = guc_ads_waklv_size(ads) - remain;
if (!size)
return;
--
2.43.0
next prev parent reply other threads:[~2026-11-24 13:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 13:06 [PATCH 0/2] drm/xe/xe3p_lpg: Implement Wa_14028597154 Varun Gupta
2026-11-24 13:06 ` [PATCH 1/2] " Varun Gupta
2026-11-25 21:19 ` Gustavo Sousa
2026-11-24 13:07 ` Varun Gupta [this message]
2026-11-24 13:35 ` ✗ CI.KUnit: 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=20261124130657.800225-6-varun.gupta@intel.com \
--to=varun.gupta@intel.com \
--cc=gustavo.sousa@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--cc=tejas.upadhyay@intel.com \
--cc=tilak.tirumalesh.tangudu@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