diff options
author | 2023-08-16 15:28:17 -0400 | |
---|---|---|
committer | 2023-08-31 17:54:18 -0400 | |
commit | bae44a8fcb6e7e244a524b7f3da35b69aa7bb4b3 (patch) | |
tree | 92e1402c0032a8fa7a8049c0817eedd93fa14d8d /drivers/gpu/drm/amd/amdgpu | |
parent | drm/amd/pm: Add critical temp for GC v9.4.3 (diff) | |
download | linux-bae44a8fcb6e7e244a524b7f3da35b69aa7bb4b3.tar.gz linux-bae44a8fcb6e7e244a524b7f3da35b69aa7bb4b3.tar.bz2 linux-bae44a8fcb6e7e244a524b7f3da35b69aa7bb4b3.zip |
drm/amdgpu/jpeg - skip change of power-gating state for sriov
Powergating is handled in the host driver.
Reviewed-by: Zhigang Luo <zhigang.luo@amd.com>
Signed-off-by: Samir Dhume <samir.dhume@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c index 15612915bb6c..1de79d660285 100644 --- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c +++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c @@ -360,8 +360,10 @@ static int jpeg_v4_0_3_hw_fini(void *handle) cancel_delayed_work_sync(&adev->jpeg.idle_work); - if (adev->jpeg.cur_state != AMD_PG_STATE_GATE) - ret = jpeg_v4_0_3_set_powergating_state(adev, AMD_PG_STATE_GATE); + if (!amdgpu_sriov_vf(adev)) { + if (adev->jpeg.cur_state != AMD_PG_STATE_GATE) + ret = jpeg_v4_0_3_set_powergating_state(adev, AMD_PG_STATE_GATE); + } return ret; } |