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>
Mon, 7 Aug 2023 20:34:55 +0000 (16:34 -0400)
commit161c908d6a443c35d3fc61a924d968415ca81cad
treee0ab6db269b48a28b0275dfb0d7c3db057fac4ba
parentd68a1145dcf156e83a3f3278bed7e420c0fbe850
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