diff options
author | 2022-10-26 11:48:50 +0800 | |
---|---|---|
committer | 2022-11-04 16:05:53 -0400 | |
commit | ec4927d463cbf385be212af1ade9f5a6f1474d4f (patch) | |
tree | a16a3bedc6d928786264faf2d1ecdbc940681766 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | drm/amd/amdgpu: temporary workaround to skip ras error for gc_v11_0_3 (diff) | |
download | linux-rng-ec4927d463cbf385be212af1ade9f5a6f1474d4f.tar.xz linux-rng-ec4927d463cbf385be212af1ade9f5a6f1474d4f.zip |
drm/amdgpu: fix for suspend/resume sequence under sriov
- clear kiq ring after suspend/resume under sriov to aviod kiq ring
test failure
- update irq after resume to fix kiq interrput loss
Signed-off-by: Victor Zhao <Victor.Zhao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 522820eeaa59..5b9f992e4607 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4197,6 +4197,8 @@ int amdgpu_device_resume(struct drm_device *dev, bool fbcon) } /* Make sure IB tests flushed */ + if (amdgpu_sriov_vf(adev)) + amdgpu_irq_gpu_reset_resume_helper(adev); flush_delayed_work(&adev->delayed_init_work); if (adev->in_s0ix) { |