drm/amd/display: add missing code change init pix_per_cycle
authorCharlene Liu <Charlene.Liu@amd.com>
Fri, 10 Mar 2023 19:32:26 +0000 (14:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Mar 2023 04:59:57 +0000 (00:59 -0400)
[why]
missing change when port to these two dcn version.

Reviewed-by: Chris Park <Chris.Park@amd.com>
Reviewed-by: Leo Ma <hanghong.ma@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_stream_encoder.c

index 89de64f..d05e765 100644 (file)
@@ -294,6 +294,7 @@ static void enc32_stream_encoder_dp_unblank(
                        || is_dp_dig_pixel_rate_div_policy(dc, &param->timing)) {
                        /*this logic should be the same in get_pixel_clock_parameters() */
                        n_multiply = 1;
+                       pix_per_cycle = 1;
                }
                /* M / N = Fstream / Flink
                 * m_vid / n_vid = pixel rate / link rate