Skip to content

Commit

Permalink
HCode Error Logs - Final structure change for PGPE-OCC API
Browse files Browse the repository at this point in the history
Changes to clean unwanted symbols
Changes to support only unrecoverable error (1) in HCode error logs
Changes to remove reserved member, such that errlog_idx match the spec.

Change-Id: I2b56905e5ea2f7d3b4c879be9b4563d9ccbb983b
RTC: 207368
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80598
Reviewed-by: Christopher J Cain <cjcain@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com>
Reviewed-by: Gregory S Still <stillgs@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Jennifer A Stofer <stofer@us.ibm.com>
  • Loading branch information
am10dolkar authored and op-jenkins committed Jul 24, 2019
1 parent faebbb8 commit 7b72e51
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h
Expand Up @@ -410,17 +410,9 @@ typedef struct
// -----------------------------------------------------------------------------
// Start Error Log Table

/// Maximum number of error log entries available
#define MAX_HCODE_ELOG_ENTRIES 4

/// Index into the array of error log entries
enum elog_entry_index
{
ELOG_PGPE_CRITICAL = 0,
ELOG_PGPE_INFO = 1,
ELOG_SGPE_CRITICAL = 2,
ELOG_SGPE_INFO = 3,
};
/// Maximum number of error log entries available, 1 UE per SPGE & PGPE
#define MAX_HCODE_ELOG_ENTRIES 2
#define HCODE_ELOG_TABLE_MAGIC_WORD 0x454C5443 // "ELTC"

/// Structure of an individual error log entry
typedef struct
Expand Down Expand Up @@ -462,7 +454,7 @@ typedef struct hcode_error_table
} fields;
} dw0;

/// Array of error log entries (index with enum elog_entry_index)
/// Array of error log entries
hcode_elog_entry_t elog[MAX_HCODE_ELOG_ENTRIES];
} hcode_error_table_t;

Expand Down Expand Up @@ -492,9 +484,6 @@ typedef struct
//PGPE WOF Values
pgpe_wof_values_t pgpe_wof_values;

//Reserved
uint64_t reserved1;

/// Hcode Error Log Index
hcode_error_table_t errlog_idx;

Expand Down

0 comments on commit 7b72e51

Please sign in to comment.