]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit271fd38ce56d6f143ddbd7bb999ad337d151b561
treebb652f34dad9ec61f9bfb13f72e58b256ce1d1cc
parent2da8f0beece08a5c3c2e20c0e38e1a4bbc153f9e
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