diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-03-22 18:02:40 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:55:40 -0400 |
commit | 6e9dc861219b8f8966f5a91984dbfaa6de57fb8b (patch) | |
tree | 2125c03a9dcbbb1d28042c7f4c0c7773137921ed /drivers/gpu/drm/amd | |
parent | 32833fb732a80cd27f3756b2ead7aaf85ec1a780 (diff) | |
download | op-kernel-dev-6e9dc861219b8f8966f5a91984dbfaa6de57fb8b.zip op-kernel-dev-6e9dc861219b8f8966f5a91984dbfaa6de57fb8b.tar.gz |
drm/amdgpu:no cg for soc15 of SRIOV
no CG for SRIOV on SOC15
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index f41c1f2..06664ee 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, |