]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Correct DML calculation to follow HW SPEC
authorPaul Hsieh <Paul.Hsieh@amd.com>
Wed, 22 Mar 2023 09:46:31 +0000 (17:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:36 +0000 (17:32 +0100)
[ Upstream commit 385c3e4c29e1d4ce8f68687a8c84621e4c0e0416 ]

[Why]
In 2560x1600@240p eDP panel, driver use lowest voltage level
to play 1080p video cause underflow. According to HW SPEC,
the senario should use high voltage level.

[How]
ChromaPre value is zero when bandwidth validation.
Correct ChromaPre calculation.

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Paul Hsieh <Paul.Hsieh@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c

index 49da8119b28e9c95d18b01c62ce478dacd3d8f29..861f32b3248e746db2da1463696fadeabb2b9caf 100644 (file)
@@ -4866,7 +4866,7 @@ void dml30_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
                                                        v->DETBufferSizeCThisState[k],
                                                        &v->UrgentBurstFactorCursorPre[k],
                                                        &v->UrgentBurstFactorLumaPre[k],
-                                                       &v->UrgentBurstFactorChroma[k],
+                                                       &v->UrgentBurstFactorChromaPre[k],
                                                        &v->NoUrgentLatencyHidingPre[k]);
                                }
 
index 77094035a26af8b01ec77693bcf102b5e6679514..cf8f3d690fa66520f7172d7b1034accc33e362ba 100644 (file)
@@ -5189,7 +5189,7 @@ void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
                                                        v->DETBufferSizeCThisState[k],
                                                        &v->UrgentBurstFactorCursorPre[k],
                                                        &v->UrgentBurstFactorLumaPre[k],
-                                                       &v->UrgentBurstFactorChroma[k],
+                                                       &v->UrgentBurstFactorChromaPre[k],
                                                        &v->NotUrgentLatencyHidingPre[k]);
                                }
 
index 69516cfdbc64a57619dcdf064f2aec2060c20aa0..4998b211ccac7488e6115a374792e68deb18325f 100644 (file)
@@ -5286,7 +5286,7 @@ void dml314_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_
                                                        v->DETBufferSizeCThisState[k],
                                                        &v->UrgentBurstFactorCursorPre[k],
                                                        &v->UrgentBurstFactorLumaPre[k],
-                                                       &v->UrgentBurstFactorChroma[k],
+                                                       &v->UrgentBurstFactorChromaPre[k],
                                                        &v->NotUrgentLatencyHidingPre[k]);
                                }
 
index e02e9d4b04a9582536e4d3aa00c28705397c23b8..2bb768413c92aec662d680790b97f2bbe17986e8 100644 (file)
@@ -3333,7 +3333,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
                                                        /* Output */
                                                        &mode_lib->vba.UrgentBurstFactorCursorPre[k],
                                                        &mode_lib->vba.UrgentBurstFactorLumaPre[k],
-                                                       &mode_lib->vba.UrgentBurstFactorChroma[k],
+                                                       &mode_lib->vba.UrgentBurstFactorChromaPre[k],
                                                        &mode_lib->vba.NotUrgentLatencyHidingPre[k]);
                                }