drm/amd/display: Correct DML calculation to follow HW SPEC
authorjsg <jsg@openbsd.org>
Thu, 15 Jun 2023 02:58:49 +0000 (02:58 +0000)
committerjsg <jsg@openbsd.org>
Thu, 15 Jun 2023 02:58:49 +0000 (02:58 +0000)
From Paul Hsieh
ec5f00a59aade7e2575fed8b703e2281da444c56 in linux-6.1.y/6.1.30
385c3e4c29e1d4ce8f68687a8c84621e4c0e0416 in mainline linux

sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
sys/dev/pci/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c
sys/dev/pci/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c

index 1e9b157..65fb783 100644 (file)
@@ -4868,7 +4868,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 7709403..cf8f3d6 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 69516cf..4998b21 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 e02e9d4..2bb7684 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]);
                                }