aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorLeslie Shi <[email protected]>2021-12-16 06:03:41 +0000
committerAlex Deucher <[email protected]>2021-12-30 13:54:24 +0000
commit87172e89dcc7b09b32a4eb5f21e35d310e3cb024 (patch)
tree5ded5cc55a61fd148d713bd671f03ee7696a8888 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdgpu: fixup bad vram size on gmc v8 (diff)
downloadkernel-87172e89dcc7b09b32a4eb5f21e35d310e3cb024.tar.gz
kernel-87172e89dcc7b09b32a4eb5f21e35d310e3cb024.zip
drm/amdgpu: Call amdgpu_device_unmap_mmio() if device is unplugged to prevent crash in GPU initialization failure
[Why] In amdgpu_driver_load_kms, when amdgpu_device_init returns error during driver modprobe, it will start the error handle path immediately and call into amdgpu_device_unmap_mmio as well to release mapped VRAM. However, in the following release callback, driver stills visits the unmapped memory like vcn.inst[i].fw_shared_cpu_addr in vcn_v3_0_sw_fini. So a kernel crash occurs. [How] call amdgpu_device_unmap_mmio() if device is unplugged to prevent invalid memory address in vcn_v3_0_sw_fini() when GPU initialization failure. Signed-off-by: Leslie Shi <[email protected]> Reviewed-by: Andrey Grodzovsky <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions