FAILED: patch "[PATCH] drm/amdgpu/ci: disable mclk switching for high refresh rates" failed to apply to 4.12-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
7121316b6dd7afe039630f0966aaebfb1742c0e5Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Thu, 11 May 2017 13:10:02 -0400
Subject: [PATCH] drm/amdgpu/ci: disable mclk switching for high refresh rates
(v2)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Even if the vblank period would allow it, it still seems to be problematic on some cards.
v2: fix logic inversion (Nils)
Acked-by Christian König <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/ci_dpm.c +6 -0
@@ -906,6 +906,12 @@ static bool ci_dpm_vblank_too_short(struct amdgpu_device *adev)u32 vblank_time =amdgpu_dpm_get_vblank_time (adev);u32 switch_limit = adev->mc.vram_type ==AMDGPU_VRAM_TYPE_GDDR5 ?450 :300 ; +/* disable mclk switching if the refresh is >120Hz, even if the +* blanking period would allow it +*/ +if (amdgpu_dpm_get_vrefresh (adev) >120 ) +return true; +if (vblank_time < switch_limit)return true;else