OSDN Git Service

drm/amd/display: Add capability check for static ramp calc
authorJaehyun Chung <jaehyun.chung@amd.com>
Mon, 23 Sep 2019 14:00:57 +0000 (10:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Oct 2019 00:34:20 +0000 (19:34 -0500)
commit8396745da8f059048f6b01222c933e8ca4ea0597
tree0d3cec87b707e193b27a20c7a603730e8027e3fc
parentfc067805ac50f134c2be182dec8d6df12fd4218a
drm/amd/display: Add capability check for static ramp calc

[Why]
Static ramp to max refresh rate does not have capability check on
calculated v_total. Programming a lower v_total_min and max than the
total causes continuous spurious HPDs.

[How]
Add a capability check after v_total calculation similar to calculate
v_total helper functions.

Signed-off-by: Jaehyun Chung <jaehyun.chung@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c