OSDN Git Service

drm/amdgpu: Fix the return for gpu mode1_reset
authorHawking Zhang <Hawking.Zhang@amd.com>
Sat, 19 Aug 2023 06:15:08 +0000 (14:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 Aug 2023 22:02:10 +0000 (18:02 -0400)
commit7d4424373daacf3b0938d6278136678060690096
tree0350a7911f6aeb6d0913c39596b72a9243948c36
parenta9366b944bfdca3c60e463869c8bdb7136b5b6ec
drm/amdgpu: Fix the return for gpu mode1_reset

amdgpu_device_mode1_reset will return gpu mode1_reset
succeed (ret = 0) as long as wait_for_bootloader call
succeed, regardless of the status reported by smu or
psp firmware. This results to driver continue executing
recovery even smu or psp fail to perform mode1 reset.

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