mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 13:11:14 +00:00
drm/amd/pp: Return error immediately if load firmware failed
this can avoid hard hang and be useful for debug. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
0fb5da0a9b
commit
19a86c0851
1 changed files with 6 additions and 4 deletions
|
@ -724,11 +724,13 @@ static int smu8_start_smu(struct pp_hwmgr *hwmgr)
|
||||||
if (hwmgr->chip_id == CHIP_STONEY)
|
if (hwmgr->chip_id == CHIP_STONEY)
|
||||||
fw_to_check &= ~(UCODE_ID_SDMA1_MASK | UCODE_ID_CP_MEC_JT2_MASK);
|
fw_to_check &= ~(UCODE_ID_SDMA1_MASK | UCODE_ID_CP_MEC_JT2_MASK);
|
||||||
|
|
||||||
ret = smu8_request_smu_load_fw(hwmgr);
|
smu8_request_smu_load_fw(hwmgr);
|
||||||
if (ret)
|
|
||||||
pr_err("SMU firmware load failed\n");
|
|
||||||
|
|
||||||
smu8_check_fw_load_finish(hwmgr, fw_to_check);
|
ret = smu8_check_fw_load_finish(hwmgr, fw_to_check);
|
||||||
|
if (ret) {
|
||||||
|
pr_err("SMU firmware load failed\n");
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
ret = smu8_load_mec_firmware(hwmgr);
|
ret = smu8_load_mec_firmware(hwmgr);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue