drivers: idc: let users know core boot failure reason.

Trace the result of any secondary core boot failures.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2021-01-27 10:30:33 +00:00 committed by Liam Girdwood
parent 9db16c146d
commit b9faef1cb6
1 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,11 @@ int idc_send_msg(struct idc_msg *msg, uint32_t mode)
case IDC_POWER_UP:
ret = idc_wait_in_blocking_mode(msg->core, idc_is_powered_up);
if (ret < 0) {
tr_err(&idc_tr, "idc_send_msg(), power up core %d failed, reason 0x%x",
msg->core,
mailbox_sw_reg_read(PLATFORM_TRACEP_SECONDARY_CORE(msg->core)));
}
break;
}