drm/amd/display: Clean up FreeSync capability detection

Many duplicate codes can be extracted to common code, fill
amdgpu_dm_connector fields outside of the DP/eDP, HDMI branches,
pull the VSDB data once using get_amd_vsdb() and then derive the refresh
rate ranges.

When a monitor advertises support for FreeSync, the refresh rate from
the AMD VSDB is used, otherwise, falls back on the monitor_range, either
EDID refresh rate range field or DisplayID VRR data.

Signed-off-by: Alex Huang <Alex.Huang2@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Link: https://patch.msgid.link/20260804143339.714548-4-Alex.Huang2@amd.com
(Adjust for movement to amdgpu_dm_connector.c)
Signed-off-by: Mario Limonciello <superm1@kernel.org>
This commit is contained in:
Alex Huang 2026-08-04 10:33:38 -04:00 • committed by Mario Limonciello
commit ee28f3446d