Skip to content

Commit d3e8349

Browse files
johnharr-intelLucas De Marchi
authored andcommitted
drm/xe/guc: Enable w/a 16026508708
The workaround is only relevant to SRIOV but does affect all platforms. Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Link: https://lore.kernel.org/r/20250403185619.1555853-2-John.C.Harrison@Intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
1 parent 29582e0 commit d3e8349

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/xe/abi/guc_klvs_abi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ enum xe_guc_klv_ids {
367367
GUC_WA_KLV_NP_RD_WRITE_TO_CLEAR_RCSM_AT_CGP_LATE_RESTORE = 0x9008,
368368
GUC_WORKAROUND_KLV_ID_BACK_TO_BACK_RCS_ENGINE_RESET = 0x9009,
369369
GUC_WA_KLV_WAKE_POWER_DOMAINS_FOR_OUTBOUND_MMIO = 0x900a,
370+
GUC_WA_KLV_RESET_BB_STACK_PTR_ON_VF_SWITCH = 0x900b,
370371
};
371372

372373
#endif

drivers/gpu/drm/xe/xe_guc_ads.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@ static void guc_waklv_init(struct xe_guc_ads *ads)
376376
GUC_WORKAROUND_KLV_ID_BACK_TO_BACK_RCS_ENGINE_RESET,
377377
&offset, &remain);
378378

379+
if (GUC_FIRMWARE_VER(&gt->uc.guc) >= MAKE_GUC_VER(70, 44, 0) && XE_WA(gt, 16026508708))
380+
guc_waklv_enable_simple(ads,
381+
GUC_WA_KLV_RESET_BB_STACK_PTR_ON_VF_SWITCH,
382+
&offset, &remain);
383+
379384
size = guc_ads_waklv_size(ads) - remain;
380385
if (!size)
381386
return;

drivers/gpu/drm/xe/xe_wa_oob.rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ no_media_l3 MEDIA_VERSION(3000)
5757
GRAPHICS_VERSION(1260), GRAPHICS_STEP(A0, B0)
5858
16023105232 GRAPHICS_VERSION_RANGE(2001, 3001)
5959
MEDIA_VERSION_RANGE(1301, 3000)
60+
16026508708 GRAPHICS_VERSION_RANGE(1200, 3001)
61+
MEDIA_VERSION_RANGE(1300, 3000)

0 commit comments

Comments
 (0)