summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn30
diff options
context:
space:
mode:
authorAustin Zheng <austin.zheng@amd.com>2023-06-01 15:16:45 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-06-15 10:44:49 -0400
commitda55037afde24d74a1a3f26e4d314f897f3432b4 (patch)
tree338931186f45ed3d08804771b757ab663c4bf8f3 /drivers/gpu/drm/amd/display/dc/dcn30
parentec7282bd2688c6c741c79f8696a68c6c0403cf2d (diff)
downloadlinux-stable-da55037afde24d74a1a3f26e4d314f897f3432b4.tar.gz
linux-stable-da55037afde24d74a1a3f26e4d314f897f3432b4.tar.bz2
linux-stable-da55037afde24d74a1a3f26e4d314f897f3432b4.zip
drm/amd/display: Limit Minimum FreeSync Refresh Rate
Why: Some EDIDs report a minimum refresh rate lower than what HW can support How: Add a check to calculate minimum supported refresh rate with current timing and use that as the minimum if a lower one is passed in Acked-by: Stylon Wang <stylon.wang@amd.com> Signed-off-by: Austin Zheng <austin.zheng@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn30')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
index f4ee4b3df596..1a0284a068b2 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
@@ -2328,6 +2328,7 @@ static bool dcn30_resource_construct(
dc->caps.color.mpc.ocsc = 1;
dc->caps.dp_hdmi21_pcon_support = true;
+ dc->caps.max_v_total = (1 << 15) - 1;
/* read VBIOS LTTPR caps */
{