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)
commit4bef1abe74ceab5bc647e6a04453d3772af802dd
tree4bf096c8ab84f51ee0e512f9b6f6552e27078129
parent3cc69021e5d4e4fe5322d425f4abf8128f0599b7
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