diff options
-rw-r--r-- | hw/fsp/fsp-elog-write.c | 6 | ||||
-rw-r--r-- | include/opal.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/hw/fsp/fsp-elog-write.c b/hw/fsp/fsp-elog-write.c index 28d3824..6370c9c 100644 --- a/hw/fsp/fsp-elog-write.c +++ b/hw/fsp/fsp-elog-write.c @@ -230,7 +230,6 @@ static int opal_send_elog_to_fsp(void) { struct opal_errorlog *head; int rc = OPAL_SUCCESS; - int pel_offset = 0; /* Convert entry to PEL * and push it down to FSP. We wait for the ack from @@ -240,8 +239,9 @@ static int opal_send_elog_to_fsp(void) if (!list_empty(&elog_write_pending)) { head = list_top(&elog_write_pending, struct opal_errorlog, link); - pel_offset = create_opal_event(head, (char *)elog_write_buffer); - rc = fsp_opal_elog_write(pel_offset); + head->log_size = create_opal_event(head, + (char *)elog_write_buffer); + rc = fsp_opal_elog_write(head->log_size); unlock(&elog_write_lock); return rc; } diff --git a/include/opal.h b/include/opal.h index f219867..689ecaa 100644 --- a/include/opal.h +++ b/include/opal.h @@ -883,7 +883,9 @@ struct __attribute__((__packed__)) opal_errorlog { uint32_t user_section_size; uint32_t reason_code; uint32_t additional_info[4]; + uint32_t plid; + uint32_t log_size; char user_data_dump[OPAL_LOG_MAX_DUMP]; struct list_node link; |