Skip to content

Commit baad97e

Browse files
committed
drm/i915/display: Adjust Added Wake Time with PKG_C_LATENCY
Increase the PKG_C_LATENCY Pkg C Latency field by the added wake time. v1: Initial version. v2: Rebase and cosmetic changes. v3: - Place latency adjustment early to accommodate round-up. [Suraj] - Modify commit description and cosmetic change. [Suraj] WA: 22020432604 Cc: Suraj Kandpal <[email protected]> Signed-off-by: Animesh Manna <[email protected]> Reviewed-by: Suraj Kandpal <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 939bc3e commit baad97e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

drivers/gpu/drm/i915/display/skl_watermark.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2939,17 +2939,24 @@ intel_program_dpkgc_latency(struct intel_atomic_state *state)
29392939
}
29402940

29412941
if (fixed_refresh_rate) {
2942+
added_wake_time = DSB_EXE_TIME +
2943+
display->sagv.block_time_us;
2944+
29422945
latency = skl_watermark_max_latency(i915, 1);
2946+
2947+
/* Wa_22020432604 */
2948+
if ((DISPLAY_VER(display) == 20 || DISPLAY_VER(display) == 30) && !latency) {
2949+
latency += added_wake_time;
2950+
added_wake_time = 0;
2951+
}
2952+
29432953
/* Wa_22020299601 */
29442954
if ((latency && max_linetime) &&
29452955
(DISPLAY_VER(display) == 20 || DISPLAY_VER(display) == 30)) {
29462956
latency = max_linetime * DIV_ROUND_UP(latency, max_linetime);
29472957
} else if (!latency) {
29482958
latency = LNL_PKG_C_LATENCY_MASK;
29492959
}
2950-
2951-
added_wake_time = DSB_EXE_TIME +
2952-
display->sagv.block_time_us;
29532960
}
29542961

29552962
clear = LNL_ADDED_WAKE_TIME_MASK | LNL_PKG_C_LATENCY_MASK;

0 commit comments

Comments
 (0)