drm/amdgpu: skip reset other device in the same hive if it's SRIOV VF
authorZhigang Luo <zhigang.luo@amd.com>
Fri, 26 Nov 2021 17:16:45 +0000 (12:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Dec 2021 21:32:34 +0000 (16:32 -0500)
commit175ac6ec6bd8db6b7e08fed8fd189bd492015b28
tree1e49cf8f15ea642a0d108e963e9457a4386f1680
parent123202744955e62470174fc3ba666a4d98062ea6
drm/amdgpu: skip reset other device in the same hive if it's SRIOV VF

On SRIOV, host driver can support FLR(function level reset) on individual VF
within the hive which might bring the individual device back to normal without
the necessary to execute the hive reset. If the FLR failed , host driver will
trigger the hive reset, each guest VF will get reset notification before the
real hive reset been executed. The VF device can handle the reset request
individually in it's reset work handler.

This change updated gpu recover sequence to skip reset other device in
the same hive for SRIOV VF.

Signed-off-by: Zhigang Luo <zhigang.luo@amd.com>
Reviewed-by: Shaoyun Liu <shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c