Skip to content

Commit bae44a8

Browse files
Samir Dhumealexdeucher
authored andcommitted
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>
1 parent 1836bb0 commit bae44a8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,10 @@ static int jpeg_v4_0_3_hw_fini(void *handle)
360360

361361
cancel_delayed_work_sync(&adev->jpeg.idle_work);
362362

363-
if (adev->jpeg.cur_state != AMD_PG_STATE_GATE)
364-
ret = jpeg_v4_0_3_set_powergating_state(adev, AMD_PG_STATE_GATE);
363+
if (!amdgpu_sriov_vf(adev)) {
364+
if (adev->jpeg.cur_state != AMD_PG_STATE_GATE)
365+
ret = jpeg_v4_0_3_set_powergating_state(adev, AMD_PG_STATE_GATE);
366+
}
365367

366368
return ret;
367369
}

0 commit comments

Comments
 (0)