|
@@ -258,6 +258,8 @@ int amdgpu_vce_suspend(struct amdgpu_device *adev)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
|
|
|
|
|
|
+ cancel_delayed_work_sync(&adev->vce.idle_work);
|
|
|
|
+
|
|
if (adev->vce.vcpu_bo == NULL)
|
|
if (adev->vce.vcpu_bo == NULL)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
@@ -268,7 +270,6 @@ int amdgpu_vce_suspend(struct amdgpu_device *adev)
|
|
if (i == AMDGPU_MAX_VCE_HANDLES)
|
|
if (i == AMDGPU_MAX_VCE_HANDLES)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
- cancel_delayed_work_sync(&adev->vce.idle_work);
|
|
|
|
/* TODO: suspending running encoding sessions isn't supported */
|
|
/* TODO: suspending running encoding sessions isn't supported */
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|