From: Monk Liu Date: Wed, 22 Mar 2017 10:02:40 +0000 (+0800) Subject: drm/amdgpu:no cg for soc15 of SRIOV X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e9dc861219b8f8966f5a91984dbfaa6de57fb8b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu:no cg for soc15 of SRIOV no CG for SRIOV on SOC15 Signed-off-by: Monk Liu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index f41c1f24af9d..06664ee44498 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -773,6 +773,9 @@ static int soc15_common_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: nbio_v6_1_update_medium_grain_clock_gating(adev,