]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:39 +0000 (19:51 +0100)
commit53b03a43a881b0ab2ec0f980c4462b43ea92e264
tree60683899cd76d2a8c48ef39bc80644074cb6abdf
parenta3d408870bc19b794646871bc4c3a5daa66f91c5
drm/amdgpu: skip amdgpu_device_cache_pci_state under sriov

[ Upstream commit afe260df55ac280cd56306248cb6d8a6b0db095c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c