Skip to content

Commit a5c7dcd

Browse files
vsbelgaumlucasdemarchi
authored andcommitted
drm/xe/bmg: Update Wa_14022085890
Set GT min frequency to 1200Mhz once driver load is complete. v2: Review comments (Rodrigo) v3: Apply Wa earlier so user_req_min is not clobbered. v4: Apply to all GTs (Lucas) Cc: Matt Roper <[email protected]> Cc: Rodrigo Vivi <[email protected]> Signed-off-by: Vinay Belgaumkar <[email protected]> Reviewed-by: Stuart Summers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lucas De Marchi <[email protected]> (cherry picked from commit bdde16c) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent a1eec6c commit a5c7dcd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

drivers/gpu/drm/xe/xe_guc_pc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252

5353
#define LNL_MERT_FREQ_CAP 800
5454
#define BMG_MERT_FREQ_CAP 2133
55+
#define BMG_MIN_FREQ 1200
5556

5657
#define SLPC_RESET_TIMEOUT_MS 5 /* roughly 5ms, but no need for precision */
5758
#define SLPC_RESET_EXTENDED_TIMEOUT_MS 1000 /* To be used only at pc_start */
@@ -832,6 +833,7 @@ void xe_guc_pc_init_early(struct xe_guc_pc *pc)
832833

833834
static int pc_adjust_freq_bounds(struct xe_guc_pc *pc)
834835
{
836+
struct xe_tile *tile = gt_to_tile(pc_to_gt(pc));
835837
int ret;
836838

837839
lockdep_assert_held(&pc->freq_lock);
@@ -858,6 +860,9 @@ static int pc_adjust_freq_bounds(struct xe_guc_pc *pc)
858860
if (pc_get_min_freq(pc) > pc->rp0_freq)
859861
ret = pc_set_min_freq(pc, pc->rp0_freq);
860862

863+
if (XE_WA(tile->primary_gt, 14022085890))
864+
ret = pc_set_min_freq(pc, max(BMG_MIN_FREQ, pc_get_min_freq(pc)));
865+
861866
out:
862867
return ret;
863868
}

drivers/gpu/drm/xe/xe_wa_oob.rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,7 @@ no_media_l3 MEDIA_VERSION(3000)
5959
MEDIA_VERSION_RANGE(1301, 3000)
6060
16026508708 GRAPHICS_VERSION_RANGE(1200, 3001)
6161
MEDIA_VERSION_RANGE(1300, 3000)
62+
63+
# SoC workaround - currently applies to all platforms with the following
64+
# primary GT GMDID
65+
14022085890 GRAPHICS_VERSION(2001)

0 commit comments

Comments
 (0)