]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Disable GPU reset on SRIOV before remove pci.
authorGavin Wan <Gavin.Wan@amd.com>
Wed, 26 Oct 2022 17:45:25 +0000 (13:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Nov 2022 21:16:25 +0000 (17:16 -0400)
commit3ddad5f1543ed420f6454f712aaa61b4721ef87c
treebfdb43d1d9889a5ad473103c6d6bc44f61513a6a
parent019f53ba9d2a2a0eefc3ade546daf627103d177e
drm/amdgpu: Disable GPU reset on SRIOV before remove pci.

The recent change brought a bug on SRIOV envrionment. It caused
unloading amdgpu failed on Guest VM. The reason is that the VF
FLR was requested while unloading amdgpu driver, but the VF FLR
of SRIOV sequence is wrong while removing PCI device.

For SRIOV, the guest driver should not trigger the whole XGMI hive
to do the reset. Host driver control how the device been reset.

Fixes: 46b6c4e1906d ("drm/amdgpu: Adjust removal control flow for smu v13_0_2")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
Signed-off-by: Gavin Wan <Gavin.Wan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c