diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-01-03 16:03:41 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-01-10 14:32:56 -0500 |
commit | 93fec4f8c158584065134b4d45e875499bf517c8 (patch) | |
tree | 26d5d9d2c282f6b00a2fffd2409d00a9f3505c92 /drivers | |
parent | 994a97447e38182f530f246117a882c074d02af7 (diff) | |
download | linux-93fec4f8c158584065134b4d45e875499bf517c8.tar.gz linux-93fec4f8c158584065134b4d45e875499bf517c8.tar.bz2 linux-93fec4f8c158584065134b4d45e875499bf517c8.zip |
drm/amd: Avoid BUG() for case of SRIOV missing IP version
No need to crash the kernel. AMDGPU will now fail to probe.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 8b53d76dfab9..c21aa8df5aae 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -381,7 +381,7 @@ static int psp_init_sriov_microcode(struct psp_context *psp) adev->virt.autoload_ucode_id = AMDGPU_UCODE_ID_CP_MES1_DATA; break; default: - BUG(); + ret = -EINVAL; break; } return ret; |