]> www.infradead.org Git - users/dwmw2/linux.git/commit
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>
Wed, 30 Aug 2023 19:01:44 +0000 (15:01 -0400)
commit2c0f880abcca0f3514a65b90639bce570aeded75
tree451aca24a041854b142b8cd6cca1e90a7a4b24d1
parentc234cd5f08666210d34be311b04d9413ac61d073
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