drm/amdgpu/cgs: add refresh rate checking to non-DC display code
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Feb 2018 19:33:51 +0000 (14:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:20:22 +0000 (14:20 -0500)
commit7a572b1eda235052b9e0a41954938fa29f4b0f20
tree85a77b24281d4582cb373500323d68d04f96cb08
parenta9b3c001650984993dc96e09e1c59f57b905fd2d
drm/amdgpu/cgs: add refresh rate checking to non-DC display code

Clamp the vblank period to 0 if the refresh rate is larger than
120 hz for non-DC.  This allows us to remove the refresh rate
checks from powerplay for mclk switching.

Reviewed-by: Eric Huang <JinhuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c