]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
drm/amdgpu: Wait for bootloader after PSPv11 reset
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 18 Jul 2025 13:20:58 +0000 (18:50 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Sep 2025 15:05:53 +0000 (11:05 -0400)
commit440cec4ca1c242d72e309a801995584a55af25c6
treec754713db2c22ff13ffaf9e3106a4e812b06dd72
parent8b556ddeee8da9420699ce221b6267f395e7d72b
drm/amdgpu: Wait for bootloader after PSPv11 reset

Some PSPv11 SOCs take a longer time for PSP based mode-1 reset. Instead
of checking for C2PMSG_33 status, add the callback wait_for_bootloader.
Wait for bootloader to be back to steady state is already part of the
generic mode-1 reset flow. Increase the retry count for bootloader wait
and also fix the mask to prevent fake pass.

Fixes: 8345a71fc54b ("drm/amdgpu: Add more checks to PSP mailbox")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4531
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 32f73741d6ee41fd5db8791c1163931e313d0fdc)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c