drm/amdgpu: refactor amdgpu_device_gpu_recover
authorCe Sun <cesun102@amd.com>
Thu, 20 Mar 2025 10:12:40 +0000 (18:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 19:18:31 +0000 (15:18 -0400)
commit11bb33766f66d0cfe997601d6d974d0158a0e7b8
tree4e84dd8904f72d177350590cc6eada8a094655b1
parent921c040efeca35e21a836aa80fb2e3a1b8f64c97
drm/amdgpu: refactor amdgpu_device_gpu_recover

Split amdgpu_device_gpu_recover into the following stages:
halt activities,asic reset,schedule resume and amdgpu resume.
The reason is that the subsequent addition of dpc recover
code will have a high similarity with gpu reset

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