aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiangliang Yu <[email protected]>2017-04-14 17:43:02 +0800
committerAlex Deucher <[email protected]>2017-04-28 17:32:42 -0400
commitfb82afab134ab71b3b52224b6da12daea8662c28 (patch)
tree23aeba9fb9e46fb626cf5439f63558ffc7bad3c0
parent98c24b24dfef209eb8bb164550e1567c7ba82c52 (diff)
drm/amdgpu/gfx9: bypass clockgating setting
For SRIOV doesn't need clockgating, bypass it. Signed-off-by: Xiangliang Yu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index 87596e48f65d..cc60dafb7d94 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,