提交 93fec4f8 编写于 作者: M Mario Limonciello 提交者: Alex Deucher

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: NAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: NLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: NMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 994a9744
...@@ -381,7 +381,7 @@ static int psp_init_sriov_microcode(struct psp_context *psp) ...@@ -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; adev->virt.autoload_ucode_id = AMDGPU_UCODE_ID_CP_MES1_DATA;
break; break;
default: default:
BUG(); ret = -EINVAL;
break; break;
} }
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册