drm/amdgpu: Fix wait after reset sequence in S3
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 3 Nov 2025 10:51:50 +0000 (16:21 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Nov 2025 16:58:32 +0000 (11:58 -0500)
commit570a66b48c22214851949fcd71816fee280aa096
tree44202953bdc02094ad4419330c9946cb75e32a1f
parentb09cb2996cdf50cd1ab4020e002c95d742c81313
drm/amdgpu: Fix wait after reset sequence in S3

For a mode-1 reset done at the end of S3 on PSPv11 dGPUs, only check if
TOS is unloaded.

Fixes: 32f73741d6ee ("drm/amdgpu: Wait for bootloader after PSPv11 reset")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4649
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 1ad25fd272753db14c5d1cc8c68e20ce01f3f888)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c