]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: Add more checks to PSP mailbox
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 2 Jun 2025 07:25:14 +0000 (12:55 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jun 2025 14:04:19 +0000 (10:04 -0400)
commit8345a71fc54b28e4d13a759c45ce2664d8540d28
tree90fad9173e8273b4fbf006953af3196f4f775dd2
parent5562b669928af29d44cc0471632641f7b88c6c88
drm/amdgpu: Add more checks to PSP mailbox

Instead of checking the response flag, use status mask also to check
against any unexpected failures like a device drop. Also, log error if
waiting on a psp response fails/times out.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
drivers/gpu/drm/amd/amdgpu/psp_v10_0.c
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
drivers/gpu/drm/amd/amdgpu/psp_v11_0_8.c
drivers/gpu/drm/amd/amdgpu/psp_v12_0.c
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c
drivers/gpu/drm/amd/amdgpu/psp_v13_0_4.c
drivers/gpu/drm/amd/amdgpu/psp_v14_0.c