On 11/19/2026 11:27 AM, Wayne Lin wrote:
Store amd_vsdb_version for every DP and eDP sink after get_amd_vsdb(),
not only when Replay is advertised. Without this, a native DP sink
above 255 Hz with AMD VSDB v3 and no Replay keeps version 0.
amdgpu_dm_update_freesync_state_on_stream() then sends the v1
infopacket and truncates the rate to eight bits. A later EDID without
the VSDB still writes 0. Replay still sets replay_mode and the eDP
adaptive-sync type.

Cooper Morgan's patch already contained this hunk in
amdgpu_dm_connector.c. The hunk was left out when the patch was
applied. This follow-up puts that hunk back.

Fixes: ae60ec4dcfc4 ("drm/amd/display: Use FreeSync v3 infopacket for sinks above 
255 Hz")
Reported-by: Eren Özen <[email protected]>
Link: 
https://lore.kernel.org/amd-gfx/[email protected]/
Cc: Cooper Morgan <[email protected]>
Cc: Eren Özen <[email protected]>
Signed-off-by: Wayne Lin <[email protected]>

Reviewed-by: Tom Chung <[email protected]>


---
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c
index 1bc8547d5777..41fc641b1b60 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c
@@ -3928,10 +3928,10 @@ void amdgpu_dm_update_freesync_caps(struct 
drm_connector *connector,
                }
get_amd_vsdb(amdgpu_dm_connector, &vsdb_info);
+               amdgpu_dm_connector->vsdb_info.amd_vsdb_version = 
vsdb_info.amd_vsdb_version;
if (vsdb_info.replay_mode) {
                        amdgpu_dm_connector->vsdb_info.replay_mode = 
vsdb_info.replay_mode;
-                       amdgpu_dm_connector->vsdb_info.amd_vsdb_version = 
vsdb_info.amd_vsdb_version;
                        amdgpu_dm_connector->as_type = ADAPTIVE_SYNC_TYPE_EDP;
                }

Reply via email to