NVIDIA: SAUCE: hsierrrptinj: Update supported IPs
BugLink: https://bugs.launchpad.net/bugs/2072591 Add support to inject errors to error collator from guestOS Add support to inject sc7 entry from guestOS http://nvbugs/3908495 Signed-off-by: Prasun Kumar <prasunk@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Abhilash G <abhilashg@nvidia.com> Reviewed-by: Abhilash G <abhilashg@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Jacob Martin <jacob.martin@canonical.com> Acked-by: Noah Wager <noah.wager@canonical.com> Signed-off-by: Noah Wager <noah.wager@canonical.com>
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
/* Error code for reporting errors to FSI */
|
||||
#define HSM_ERROR 0x55
|
||||
#define FSI_SW_ERROR 0xAA
|
||||
#define SC7_ENTRY_ERROR 0xBB
|
||||
|
||||
/* EC Index for reporting errors to FSI */
|
||||
#define EC_INDEX 0xFFFFFFFF
|
||||
@@ -176,16 +177,26 @@ static int hsierrrpt_report_to_fsi(struct epl_error_report_frame err_rpt_frame,
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (ip_id == IP_HSM)
|
||||
error_report.type = HSM_ERROR;
|
||||
else if (ip_id == IP_FSI)
|
||||
error_report.type = FSI_SW_ERROR;
|
||||
else
|
||||
return -EINVAL;
|
||||
|
||||
error_report.error_code = err_rpt_frame.error_code;
|
||||
error_report.reporter_id = err_rpt_frame.reporter_id;
|
||||
error_report.ec_index = EC_INDEX;
|
||||
|
||||
if (ip_id == IP_HSM || ip_id == IP_EC)
|
||||
error_report.type = HSM_ERROR;
|
||||
else if (ip_id == IP_FSI)
|
||||
error_report.type = FSI_SW_ERROR;
|
||||
else if (ip_id == IP_SC7)
|
||||
error_report.type = SC7_ENTRY_ERROR;
|
||||
else
|
||||
return -EINVAL;
|
||||
|
||||
/* Special case where ec_index other than 0xFFFFFFFF,
|
||||
* then FSI SW ignore reporter_id and only uses error_code.
|
||||
*/
|
||||
if (ip_id == IP_EC)
|
||||
error_report.ec_index = error_report.reporter_id;
|
||||
|
||||
ret = mbox_send_message(hsierrrptinj_tx.chan, (void *)&error_report);
|
||||
|
||||
return ret < 0 ? ret : 0;
|
||||
|
||||
@@ -39,6 +39,8 @@ IP_TSEC = 0x0009,
|
||||
IP_THERM = 0x000A,
|
||||
IP_SMMU = 0x000B,
|
||||
|
||||
IP_EC = 0x00FC,
|
||||
IP_SC7 = 0x00FD,
|
||||
IP_FSI = 0x00FE,
|
||||
IP_HSM = 0x00FF
|
||||
} hsierrrpt_ipid_t;
|
||||
|
||||
Reference in New Issue
Block a user