]> 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)
commit75d1368a9e315c35fbbb8f07020caca3170031c5
tree1e49cf8f15ea642a0d108e963e9457a4386f1680
parent79bbb047f6bdab76d39659939ff4cdd88b0869f6
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