]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amdgpu: Add msix restore for pass-through mode
authorChengzhe Liu <ChengZhe.Liu@amd.com>
Thu, 22 Jul 2021 03:31:10 +0000 (11:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jul 2021 14:09:40 +0000 (10:09 -0400)
In pass-through mode, after mode 1 reset, msix enablement status would
lost and never receives interrupt again. So, we should restore msix
status after mode 1 reset.

Signed-off-by: Chengzhe Liu <ChengZhe.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c

index 83af307e97cdf2f0f81310ac14e7325e649ebc89..e1aa4a5e6a98132ae0731f341b6fe911f6ab34bf 100644 (file)
@@ -584,7 +584,7 @@ void amdgpu_irq_gpu_reset_resume_helper(struct amdgpu_device *adev)
 {
        int i, j, k;
 
-       if (amdgpu_sriov_vf(adev))
+       if (amdgpu_sriov_vf(adev) || amdgpu_passthrough(adev))
                amdgpu_restore_msix(adev);
 
        for (i = 0; i < AMDGPU_IRQ_CLIENTID_MAX; ++i) {