shaoyunl 428890a3fe drm/amdgpu: adjust the kfd reset sequence in reset sriov function
This change revert previous commits:
9f4f2c1a3524 ("drm/amd/amdgpu: fix the kfd pre_reset sequence in sriov")
271fd38ce56d ("drm/amdgpu: move kfd post_reset out of reset_sriov function")

This change moves the amdgpu_amdkfd_pre_reset to an earlier place
in amdgpu_device_reset_sriov, presumably to address the sequence issue
that the first patch was originally meant to fix.

Some register access(GRBM_GFX_CNTL) only be allowed on full access
mode. Move kfd_pre_reset and  kfd_post_reset back inside reset_sriov
function.

Fixes: 9f4f2c1a3524 ("drm/amd/amdgpu: fix the kfd pre_reset sequence in sriov")
Fixes: 271fd38ce56d ("drm/amdgpu: move kfd post_reset out of reset_sriov function")
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>
2021-12-01 17:09:30 -05:00
..
2020-10-15 10:46:16 -07:00
2020-10-15 10:46:16 -07:00
2021-07-21 11:58:28 +10:00
2021-11-02 16:47:49 -07:00
2021-06-10 11:28:09 +10:00
2021-09-01 11:26:46 -07:00
2021-04-09 16:46:32 -04:00
2021-07-03 11:13:22 -07:00
2021-05-19 23:50:27 -04:00
2021-06-30 00:18:23 -04:00
2021-10-20 11:43:57 -04:00
2021-05-19 23:50:27 -04:00
2020-07-02 12:02:50 -04:00
2021-10-20 11:43:57 -04:00
2020-08-14 16:22:39 -04:00
2020-07-01 01:59:24 -04:00
2020-07-02 12:02:50 -04:00