Commit 2f5a0a91 authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher

drm/amdgpu: skip cg/pg set for SRIOV

Signed-off-by: default avatarMonk Liu <Monk.Liu@amd.com>
Acked-by: default avatarYintian Tao <yttao@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1a0f3667
...@@ -7095,6 +7095,10 @@ static int gfx_v10_0_set_powergating_state(void *handle, ...@@ -7095,6 +7095,10 @@ static int gfx_v10_0_set_powergating_state(void *handle,
{ {
struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_device *adev = (struct amdgpu_device *)handle;
bool enable = (state == AMD_PG_STATE_GATE); bool enable = (state == AMD_PG_STATE_GATE);
if (amdgpu_sriov_vf(adev))
return 0;
switch (adev->asic_type) { switch (adev->asic_type) {
case CHIP_NAVI10: case CHIP_NAVI10:
case CHIP_NAVI14: case CHIP_NAVI14:
...@@ -7115,6 +7119,9 @@ static int gfx_v10_0_set_clockgating_state(void *handle, ...@@ -7115,6 +7119,9 @@ static int gfx_v10_0_set_clockgating_state(void *handle,
{ {
struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_device *adev = (struct amdgpu_device *)handle;
if (amdgpu_sriov_vf(adev))
return 0;
switch (adev->asic_type) { switch (adev->asic_type) {
case CHIP_NAVI10: case CHIP_NAVI10:
case CHIP_NAVI14: case CHIP_NAVI14:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment