]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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 479e2c1a13018615d66003916767a7ebcae098f6..379729b02847480afb93a5e7cfe1c8a9b4ae46da 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 4e45c6d9ecdce267f25867b4a2cf95ce0908ed3d..ec351c8418cbbdca70eb8e977c3d885a5c079faa 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 41f0b4c1c72f7436041f5382efad87f951534b3a..950669f2c10d77c5906f72f07f6fd6a488f33815 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],