drm/amd/display: correct DML calc error of UrgentLatency
authorZhongwei <Zhongwei.Zhang@amd.com>
Tue, 22 Nov 2022 06:28:41 +0000 (14:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Dec 2022 15:16:49 +0000 (10:16 -0500)
[Why]
The input UrgentLatency in CalculateUrgentBurstFactor
of prefect check is wrong.

[How]
Correct to the correct one to keep same as HW formula

Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Zhongwei <Zhongwei.Zhang@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/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

index 479e2c1..379729b 100644 (file)
@@ -4851,7 +4851,7 @@ void dml30_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
                                                        v->SwathHeightYThisState[k],
                                                        v->SwathHeightCThisState[k],
                                                        v->HTotal[k] / v->PixelClock[k],
-                                                       v->UrgentLatency,
+                                                       v->UrgLatency[i],
                                                        v->CursorBufferSize,
                                                        v->CursorWidth[k][0],
                                                        v->CursorBPP[k][0],
index 4e45c6d..ec351c8 100644 (file)
@@ -5082,7 +5082,7 @@ void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
                                                        v->SwathHeightYThisState[k],
                                                        v->SwathHeightCThisState[k],
                                                        v->HTotal[k] / v->PixelClock[k],
-                                                       v->UrgentLatency,
+                                                       v->UrgLatency[i],
                                                        v->CursorBufferSize,
                                                        v->CursorWidth[k][0],
                                                        v->CursorBPP[k][0],
index 41f0b4c..950669f 100644 (file)
@@ -5179,7 +5179,7 @@ void dml314_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_
                                                        v->SwathHeightYThisState[k],
                                                        v->SwathHeightCThisState[k],
                                                        v->HTotal[k] / v->PixelClock[k],
-                                                       v->UrgentLatency,
+                                                       v->UrgLatency[i],
                                                        v->CursorBufferSize,
                                                        v->CursorWidth[k][0],
                                                        v->CursorBPP[k][0],