Skip to content

Commit afe260d

Browse files
vizhaoalexdeucher
authored andcommitted
drm/amdgpu: skip amdgpu_device_cache_pci_state under sriov
Under sriov, host driver will save and restore vf pci cfg space during reset. And during device init, under sriov, pci_restore_state happens after fullaccess released, and it can have race condition with mmio protection enable from host side leading to missing interrupts. So skip amdgpu_device_cache_pci_state for sriov. Signed-off-by: Victor Zhao <[email protected]> Acked-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 922f0e0 commit afe260d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6451,6 +6451,9 @@ bool amdgpu_device_cache_pci_state(struct pci_dev *pdev)
64516451
struct amdgpu_device *adev = drm_to_adev(dev);
64526452
int r;
64536453

6454+
if (amdgpu_sriov_vf(adev))
6455+
return false;
6456+
64546457
r = pci_save_state(pdev);
64556458
if (!r) {
64566459
kfree(adev->pci_state);

0 commit comments

Comments
 (0)