]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: skip amdgpu_device_cache_pci_state under sriov
authorVictor Zhao <Victor.Zhao@amd.com>
Thu, 24 Oct 2024 05:40:39 +0000 (13:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Nov 2024 17:05:30 +0000 (12:05 -0500)
commitafe260df55ac280cd56306248cb6d8a6b0db095c
tree1999afe08dfba871a33802127d5b44239e72ae44
parent922f0e00017b09d9d47e3efac008c8b20ed546a0
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 <Victor.Zhao@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c