]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/psp: Return failure when firmware failed to load in SRIOV
authorAlice Wong <shiwei.wong@amd.com>
Tue, 10 May 2022 21:44:02 +0000 (17:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 May 2022 21:53:11 +0000 (17:53 -0400)
commita401fdf5c3f0b922b849cd8ece6dbbd5488d2252
tree4bf096c8ab84f51ee0e512f9b6f6552e27078129
parent7f654b3d60b28c782f61990840f44e45f270c33a
drm/amdgpu/psp: Return failure when firmware failed to load in SRIOV

In SRIOV, PSP will block incompatible firmware from loading. When this happens,
driver should be prevented from continue initialization and start cleanup.
Return failure in psp_cmd_submit_buf when firmware load failed in SRIOV.

Signed-off-by: Alice Wong <shiwei.wong@amd.com>
Reviewed-by: Sashank Saye <sashank.saye@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c