Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 859161b

Browse files
committed
drm/i915/dg2: Bump up CDCLK for DG2
We seem to need this W/A same way as for TGL, in order to fix some of the underruns, which we currently have and those not related to PSR. Signed-off-by: Stanislav Lisovskiy <[email protected]> Reviewed-by: Uma Shankar <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 3d9c653 commit 859161b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,15 +2300,15 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state)
23002300
min_cdclk = max(min_cdclk, (int)crtc_state->pixel_rate);
23012301

23022302
/*
2303-
* HACK. Currently for TGL platforms we calculate
2303+
* HACK. Currently for TGL/DG2 platforms we calculate
23042304
* min_cdclk initially based on pixel_rate divided
23052305
* by 2, accounting for also plane requirements,
23062306
* however in some cases the lowest possible CDCLK
23072307
* doesn't work and causing the underruns.
23082308
* Explicitly stating here that this seems to be currently
23092309
* rather a Hack, than final solution.
23102310
*/
2311-
if (IS_TIGERLAKE(dev_priv)) {
2311+
if (IS_TIGERLAKE(dev_priv) || IS_DG2(dev_priv)) {
23122312
/*
23132313
* Clamp to max_cdclk_freq in case pixel rate is higher,
23142314
* in order not to break an 8K, but still leave W/A at place.

0 commit comments

Comments
 (0)