]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: move kfd post_reset out of reset_sriov function
authorshaoyunl <shaoyun.liu@amd.com>
Thu, 18 Nov 2021 16:43:16 +0000 (11:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 20:08:58 +0000 (15:08 -0500)
commitb280b5bf85bb95a2ec8588d913d8460c383e90c5
treebb652f34dad9ec61f9bfb13f72e58b256ce1d1cc
parent4049b91af1e43182be52b20f521f28df1edbffdc
drm/amdgpu: move kfd post_reset out of reset_sriov function

Fixes: bb7c5225816f ("drm/amd/amdgpu: fix the kfd pre_reset sequence in sriov")
For sriov XGMI  configuration, the host driver will handle the hive reset,
so in guest side, the reset_sriov only be called once on one device. This will
make kfd post_reset unblanced with kfd pre_reset since kfd pre_reset already
been moved out of reset_sriov function. Move kfd post_reset out of reset_sriov
function to make them balance .

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c