mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amdgpu/jpeg: skip set pg for sriov
Host handles PG. Signed-off-by: Vignesh Chander <Vignesh.Chander@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
b157df66d8
commit
8c95cda3e1
@@ -360,10 +360,8 @@ static int jpeg_v4_0_3_hw_fini(void *handle)
|
||||
|
||||
cancel_delayed_work_sync(&adev->jpeg.idle_work);
|
||||
|
||||
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);
|
||||
}
|
||||
if (adev->jpeg.cur_state != AMD_PG_STATE_GATE)
|
||||
ret = jpeg_v4_0_3_set_powergating_state(adev, AMD_PG_STATE_GATE);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -950,6 +948,11 @@ static int jpeg_v4_0_3_set_powergating_state(void *handle,
|
||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||
int ret;
|
||||
|
||||
if (amdgpu_sriov_vf(adev)) {
|
||||
adev->jpeg.cur_state = AMD_PG_STATE_UNGATE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (state == adev->jpeg.cur_state)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user