diff options
author | Guchun Chen <guchun.chen@amd.com> | 2021-09-18 13:43:41 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-09-23 16:34:28 -0400 |
commit | 6effad8abe0ba4db3d9c58ed585127858a990f35 (patch) | |
tree | c9b58c86627f48c6d2fb9308aaab03e5fbec459d /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h | |
parent | 655c167edc8c260b6df08bdcfaca8afde0efbeb6 (diff) |
drm/amdgpu: move amdgpu_virt_release_full_gpu to fini_early stage
adev->rmmio is set to be NULL in amdgpu_device_unmap_mmio to prevent
access after pci_remove, however, in SRIOV case, amdgpu_virt_release_full_gpu
will still use adev->rmmio for access after amdgpu_device_unmap_mmio.
The patch is to move such SRIOV calling earlier to fini_early stage.
Fixes: 07775fc13878 ("drm/amdgpu: Unmap all MMIO mappings")
Cc: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Leslie Shi <Yuliang.Shi@amd.com>
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.h')
0 files changed, 0 insertions, 0 deletions