]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d8d216b146439ddc4efe39b7115a3e34311f71e
tree85a77b24281d4582cb373500323d68d04f96cb08
parent3af507f1007a47fc819a8be06f3cc13f9b71c6af
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