]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit641e483b07681f1f3d3d16db8e36470680edca7f
tree1e49cf8f15ea642a0d108e963e9457a4386f1680
parent0ab2452df2b351ce59549660e0943354ad8a780d
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