]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Unmap MMIO mappings when device is not unplugged
authorLeslie Shi <Yuliang.Shi@amd.com>
Wed, 5 Jan 2022 02:57:20 +0000 (10:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jan 2022 20:44:26 +0000 (15:44 -0500)
commit15358a3184867318d2df9b5c7cf7bb310c899c40
treeabf5a5281628893894dd0a8bf4ecc6790fe43ffc
parent7208f4de23ccdf8ec55d6362cafa99cdce068126
drm/amdgpu: Unmap MMIO mappings when device is not unplugged

Patch: 3efb17ae7e92 ("drm/amdgpu: Call amdgpu_device_unmap_mmio() if device
is unplugged to prevent crash in GPU initialization failure") makes call to
amdgpu_device_unmap_mmio() conditioned on device unplugged. This patch unmaps
MMIO mappings even when device is not unplugged.

v2: Add condition of drm_dev_enter() to deleted unmaps in patch
"drm/amdgpu: Unmap all MMIO mappings"

Signed-off-by: Leslie Shi <Yuliang.Shi@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c