Skip to content

Commit 2680bea

Browse files
zehortigozamattrope
authored andcommitted
drm/i915/display/adl_p: Implement Wa_22011320316
Implementation details are in the HSD 22011320316, requiring CD clock to be at least 307MHz to make DC states to work. Cc: Matt Roper <[email protected]> Cc: Anusha Srivatsa <[email protected]> Signed-off-by: José Roberto de Souza <[email protected]> Signed-off-by: Clinton Taylor <[email protected]> Signed-off-by: Matt Roper <[email protected]> Reviewed-by: Mika Kahola <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a8a56da commit 2680bea

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,21 @@ static const struct intel_cdclk_vals rkl_cdclk_table[] = {
12531253
{}
12541254
};
12551255

1256+
static const struct intel_cdclk_vals adlp_a_step_cdclk_table[] = {
1257+
{ .refclk = 19200, .cdclk = 307200, .divider = 2, .ratio = 32 },
1258+
{ .refclk = 19200, .cdclk = 556800, .divider = 2, .ratio = 58 },
1259+
{ .refclk = 19200, .cdclk = 652800, .divider = 2, .ratio = 68 },
1260+
1261+
{ .refclk = 24000, .cdclk = 312000, .divider = 2, .ratio = 26 },
1262+
{ .refclk = 24000, .cdclk = 552000, .divider = 2, .ratio = 46 },
1263+
{ .refclk = 24400, .cdclk = 648000, .divider = 2, .ratio = 54 },
1264+
1265+
{ .refclk = 38400, .cdclk = 307200, .divider = 2, .ratio = 16 },
1266+
{ .refclk = 38400, .cdclk = 556800, .divider = 2, .ratio = 29 },
1267+
{ .refclk = 38400, .cdclk = 652800, .divider = 2, .ratio = 34 },
1268+
{}
1269+
};
1270+
12561271
static const struct intel_cdclk_vals adlp_cdclk_table[] = {
12571272
{ .refclk = 19200, .cdclk = 172800, .divider = 3, .ratio = 27 },
12581273
{ .refclk = 19200, .cdclk = 192000, .divider = 2, .ratio = 20 },
@@ -2801,7 +2816,11 @@ void intel_init_cdclk_hooks(struct drm_i915_private *dev_priv)
28012816
dev_priv->display.bw_calc_min_cdclk = skl_bw_calc_min_cdclk;
28022817
dev_priv->display.modeset_calc_cdclk = bxt_modeset_calc_cdclk;
28032818
dev_priv->display.calc_voltage_level = tgl_calc_voltage_level;
2804-
dev_priv->cdclk.table = adlp_cdclk_table;
2819+
/* Wa_22011320316:adlp[a0] */
2820+
if (IS_ADLP_DISPLAY_STEP(dev_priv, STEP_A0, STEP_A0))
2821+
dev_priv->cdclk.table = adlp_a_step_cdclk_table;
2822+
else
2823+
dev_priv->cdclk.table = adlp_cdclk_table;
28052824
} else if (IS_ROCKETLAKE(dev_priv)) {
28062825
dev_priv->display.set_cdclk = bxt_set_cdclk;
28072826
dev_priv->display.bw_calc_min_cdclk = skl_bw_calc_min_cdclk;

0 commit comments

Comments
 (0)