]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amdgpu: fix the nullptr issue when reenter GPU recovery
authorDennis Li <Dennis.Li@amd.com>
Thu, 20 Aug 2020 02:17:39 +0000 (10:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Aug 2020 16:23:54 +0000 (12:23 -0400)
commitcbfd17f7ba405d143c0db5ebcddc978cb4153762
tree6c393fb04c0c7b7766ce35f9aea767bbf440dd79
parent6049db43d6dd9cbb9d7f897839d15b0bc600e23c
drm/amdgpu: fix the nullptr issue when reenter GPU recovery

in single gpu system, if driver reenter gpu recovery,
amdgpu_device_lock_adev will return false, but hive is
nullptr now.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c