From 5d847a1b9d495a4b09f675677ffc75a02a8f210a Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Wed, 29 Nov 2017 18:41:18 +0530 Subject: prd: Enable error logging via firmware_request interface In P9 HBRT sends error logs to FSP via firmware_request interface. This patch adds support to parse error log and send it to FSP. CC: Jeremy Kerr CC: Daniel M Crowell Signed-off-by: Vasant Hegde Acked-by: Jeremy Kerr Signed-off-by: Stewart Smith --- include/hostservices.h | 1 + include/prd-fw-msg.h | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'include') diff --git a/include/hostservices.h b/include/hostservices.h index d6bb3e3..62ef04b 100644 --- a/include/hostservices.h +++ b/include/hostservices.h @@ -38,5 +38,6 @@ void host_services_occ_base_setup(void); int find_master_and_slave_occ(uint64_t **master, uint64_t **slave, int *nr_masters, int *nr_slaves); +int hservice_send_error_log(uint32_t plid, uint32_t dsize, void *data); #endif /* __HOSTSERVICES_H */ diff --git a/include/prd-fw-msg.h b/include/prd-fw-msg.h index d68482c..333e594 100644 --- a/include/prd-fw-msg.h +++ b/include/prd-fw-msg.h @@ -39,6 +39,11 @@ struct prd_fw_msg { struct { __be64 status; } generic_resp; + struct { + __be32 plid; + __be32 size; + char data[]; + } __packed errorlog; }; }; -- cgit v1.1