drm/amdgpu: Match against exact bootloader status
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 25 Jul 2023 13:41:54 +0000 (19:11 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Aug 2023 14:36:34 +0000 (10:36 -0400)
commitd3de41ee5febe5c2d9989fe9810bce2bb54a3a8e
tree7dc421f1814f688b324cf0eaee04ab0ff782a603
parent730d44e1fa306a20746ad4a85da550662aed9daa
drm/amdgpu: Match against exact bootloader status

On PSP v13.x ASICs, boot loader will set only the MSB to 1 and clear the
least significant bits for any command submission. Hence match against
the exact register value, otherwise a register value of all 0xFFs also
could falsely indicate that boot loader is ready. Also, from PSP v13.0.6
and newer, bits[7:0] will be used to indicate command error status.

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>
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c