OSDN Git Service

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 19:06:52 +0000 (14:06 -0500)
commit4f30d920d123c58b6e55e6ccd061673751aab5f8
tree9671ea07440d80dc7989995a0575d85455ab3a5c
parent8ab1d0923c2bdd708e041a765c6e7ca57e6121d8
drm/amdgpu: move kfd post_reset out of reset_sriov function

Fixes: 9f4f2c1a3524 ("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