Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: John.C.Harrison@Intel.com
To: Intel-Xe@Lists.FreeDesktop.Org
Cc: John Harrison <John.C.Harrison@Intel.com>
Subject: [PATCH 1/8] drm/xe/guc: Enable w/a 16026508708
Date: Thu,  3 Apr 2025 11:56:11 -0700	[thread overview]
Message-ID: <20250403185619.1555853-2-John.C.Harrison@Intel.com> (raw)
In-Reply-To: <20250403185619.1555853-1-John.C.Harrison@Intel.com>

From: John Harrison <John.C.Harrison@Intel.com>

The workaround is only relevant to SRIOV but does affect all platforms.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
---
 drivers/gpu/drm/xe/abi/guc_klvs_abi.h | 1 +
 drivers/gpu/drm/xe/xe_guc_ads.c       | 5 +++++
 drivers/gpu/drm/xe/xe_wa_oob.rules    | 2 ++
 3 files changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
index d633f1c739e4..7de8f827281f 100644
--- a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
+++ b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
@@ -367,6 +367,7 @@ enum xe_guc_klv_ids {
 	GUC_WA_KLV_NP_RD_WRITE_TO_CLEAR_RCSM_AT_CGP_LATE_RESTORE			= 0x9008,
 	GUC_WORKAROUND_KLV_ID_BACK_TO_BACK_RCS_ENGINE_RESET				= 0x9009,
 	GUC_WA_KLV_WAKE_POWER_DOMAINS_FOR_OUTBOUND_MMIO					= 0x900a,
+	GUC_WA_KLV_RESET_BB_STACK_PTR_ON_VF_SWITCH					= 0x900b,
 };
 
 #endif
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
index bee4e0cfe7b8..9de8c2b81f0d 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.c
+++ b/drivers/gpu/drm/xe/xe_guc_ads.c
@@ -376,6 +376,11 @@ static void guc_waklv_init(struct xe_guc_ads *ads)
 					GUC_WORKAROUND_KLV_ID_BACK_TO_BACK_RCS_ENGINE_RESET,
 					&offset, &remain);
 
+	if (GUC_FIRMWARE_VER(&gt->uc.guc) >= MAKE_GUC_VER(70, 44, 0) && XE_WA(gt, 16026508708))
+		guc_waklv_enable_simple(ads,
+					GUC_WA_KLV_RESET_BB_STACK_PTR_ON_VF_SWITCH,
+					&offset, &remain);
+
 	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 9b9e176992a8..9efc5accd43d 100644
--- a/drivers/gpu/drm/xe/xe_wa_oob.rules
+++ b/drivers/gpu/drm/xe/xe_wa_oob.rules
@@ -57,3 +57,5 @@ no_media_l3	MEDIA_VERSION(3000)
 		GRAPHICS_VERSION(1260), GRAPHICS_STEP(A0, B0)
 16023105232	GRAPHICS_VERSION_RANGE(2001, 3001)
 		MEDIA_VERSION_RANGE(1301, 3000)
+16026508708	GRAPHICS_VERSION_RANGE(1200, 3001)
+		MEDIA_VERSION_RANGE(1300, 3000)
-- 
2.49.0


  reply	other threads:[~2025-04-03 18:56 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-03 18:56 [PATCH 0/8] Enable w/a 16026508708 John.C.Harrison
2025-04-03 18:56 ` John.C.Harrison [this message]
2025-04-08 22:08   ` [PATCH 1/8] drm/xe/guc: " Daniele Ceraolo Spurio
2025-04-03 18:56 ` [PATCH 2/8] Revert "drm/xe/ptl: Define HuC FW version for PTL" John.C.Harrison
2025-04-03 18:56 ` [PATCH 3/8] Revert "drm/xe/ptl: Add GuC firmware definition" John.C.Harrison
2025-04-03 18:56 ` [PATCH 4/8] Revert "drm/xe/pvc: " John.C.Harrison
2025-04-03 18:56 ` [PATCH 5/8] drm/xe/guc: Bump the recommended GuC version to 70.44.1 John.C.Harrison
2025-04-08 22:15   ` Daniele Ceraolo Spurio
2025-04-08 23:54     ` John Harrison
2025-04-10 19:22       ` Daniele Ceraolo Spurio
2025-04-03 18:56 ` [PATCH 6/8] drm/xe/pvc: Add GuC firmware definition John.C.Harrison
2025-04-03 18:56 ` [PATCH 7/8] drm/xe/ptl: " John.C.Harrison
2025-04-03 18:56 ` [PATCH 8/8] drm/xe/ptl: Define HuC FW version for PTL John.C.Harrison
2025-04-04  1:34 ` ✓ CI.Patch_applied: success for Enable w/a 16026508708 Patchwork
2025-04-04  1:34 ` ✗ CI.checkpatch: warning " Patchwork
2025-04-04  1:35 ` ✓ CI.KUnit: success " Patchwork
2025-04-04  1:52 ` ✓ CI.Build: " Patchwork
2025-04-04  1:54 ` ✓ CI.Hooks: " Patchwork
2025-04-04  1:56 ` ✓ CI.checksparse: " Patchwork
2025-04-04  2:14 ` ✓ Xe.CI.BAT: " Patchwork
2025-04-04 11:07 ` ✗ Xe.CI.Full: failure " Patchwork
2025-04-08 19:35 ` ✓ CI.Patch_applied: success for Enable w/a 16026508708 (rev2) Patchwork
2025-04-08 19:35 ` ✗ CI.checkpatch: warning " Patchwork
2025-04-08 19:36 ` ✓ CI.KUnit: success " Patchwork
2025-04-08 19:52 ` ✓ CI.Build: " Patchwork
2025-04-08 19:55 ` ✓ CI.Hooks: " Patchwork
2025-04-08 19:56 ` ✓ CI.checksparse: " Patchwork
2025-04-08 20:18 ` ✓ Xe.CI.BAT: " Patchwork
2025-04-08 21:52 ` ✗ Xe.CI.Full: failure " Patchwork
2025-04-10 21:25 ` [PATCH 0/8] Enable w/a 16026508708 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=20250403185619.1555853-2-John.C.Harrison@Intel.com \
    --to=john.c.harrison@intel.com \
    --cc=Intel-Xe@Lists.FreeDesktop.Org \
    /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