]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: adjust the kfd reset sequence in reset sriov function
authorshaoyunl <shaoyun.liu@amd.com>
Tue, 30 Nov 2021 02:29:05 +0000 (21:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 21:07:33 +0000 (16:07 -0500)
commit4dccb3e20573442af90cefd80a1ea1bf58786a45
treecc6b94c88a21599b39fecbacaee07a2d5a3358e9
parentf7fcda9f2793f780e30fe36973f8799d89a641ca
drm/amdgpu: adjust the kfd reset sequence in reset sriov function

This change revert previous commits:
54af4d05497e ("drm/amd/amdgpu: fix the kfd pre_reset sequence in sriov")
a1584b09f7ec ("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: 54af4d05497e ("drm/amd/amdgpu: fix the kfd pre_reset sequence in sriov")
Fixes: a1584b09f7ec ("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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c