drm/amd/amdgpu: fix the kfd pre_reset sequence in sriov
authorshaoyunl <shaoyun.liu@amd.com>
Fri, 5 Nov 2021 16:34:14 +0000 (12:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Nov 2021 22:08:00 +0000 (17:08 -0500)
commit9f4f2c1a35248f56b2a9c1c004e0aaff3609b15d
treead1fd0576c9d13eef386382ddbe5d6392337c70a
parent4fc30ea780e0a5c1c019bc2e44f8523e1eed9051
drm/amd/amdgpu: fix the kfd pre_reset sequence in sriov

The KFD pre_reset should be called before reset been executed, it will
hold the lock to prevent other rocm process to sent the packlage to hiq
during host execute the real reset on the HW

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