From: Xiangliang Yu Date: Fri, 14 Apr 2017 09:43:02 +0000 (+0800) Subject: drm/amdgpu/gfx9: bypass clockgating setting X-Git-Tag: v4.12-rc1~9^2~2^2~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb82afab134ab71b3b52224b6da12daea8662c28;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu/gfx9: bypass clockgating setting For SRIOV doesn't need clockgating, bypass it. Signed-off-by: Xiangliang Yu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 87596e48f65d2..cc60dafb7d94a 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -2740,6 +2740,9 @@ static int gfx_v9_0_set_clockgating_state(void *handle, { struct amdgpu_device *adev = (struct amdgpu_device *)handle; + if (amdgpu_sriov_vf(adev)) + return 0; + switch (adev->asic_type) { case CHIP_VEGA10: gfx_v9_0_update_gfx_clock_gating(adev,