summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/cache
diff options
context:
space:
mode:
authorShakeeb <shakeebbk@in.ibm.com>2016-10-24 06:11:34 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-05-24 22:35:16 -0400
commit476ca53e499d8ebf00027376650dc0f76f49ee55 (patch)
tree0e6a6da0a91f19d7f7e2c9b4cf81f533350dac22 /src/import/chips/p9/procedures/hwp/cache
parent1e01cedcd39adb4d55ded2db4930d3fa6ec0fd82 (diff)
downloadtalos-hostboot-476ca53e499d8ebf00027376650dc0f76f49ee55.tar.gz
talos-hostboot-476ca53e499d8ebf00027376650dc0f76f49ee55.zip
L1 - trace array on SBE
Also adapt existing p9_proc_tracearray to share trace array defs with the new procedure. RTC:128332 Change-Id: I319ae7f33ad56eccb5821db74e52aa2d79af415d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31703 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Joachim Fenkes <fenkes@de.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40872 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/cache')
-rw-r--r--src/import/chips/p9/procedures/hwp/cache/p9_l2err_extract.C13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/import/chips/p9/procedures/hwp/cache/p9_l2err_extract.C b/src/import/chips/p9/procedures/hwp/cache/p9_l2err_extract.C
index 4d3d32bd6..65c36ac6c 100644
--- a/src/import/chips/p9/procedures/hwp/cache/p9_l2err_extract.C
+++ b/src/import/chips/p9/procedures/hwp/cache/p9_l2err_extract.C
@@ -81,11 +81,11 @@ extern "C"
//the index into the trace entry that is N cycles before the fail
uint32_t indexes[L2ERR_MAX_CYCLES_BACK];
- fapi2::variable_buffer trace_array[PROC_GETTRACEARRAY_NUM_ENTRIES];
+ fapi2::variable_buffer trace_array[P9_TRACEARRAY_NUM_ROWS];
uint8_t syndrome = 0;
uint8_t dw = 0;
uint32_t ta_length = i_ta_data.getBitLength();
- uint32_t exp_ta_length = PROC_GETTRACEARRAY_NUM_ENTRIES * PROC_GETTRACEARRAY_BITS_PER_ENTRY;
+ uint32_t exp_ta_length = P9_TRACEARRAY_NUM_ROWS * P9_TRACEARRAY_BITS_PER_ROW;
//bool back_of_2to1 = false;
bool back_of_2to1_nextcycle = false;
@@ -130,10 +130,10 @@ extern "C"
ta_length, exp_ta_length);
//build the indexable array and print out contents at the same time for debug
- for(uint8_t i = 0; i < PROC_GETTRACEARRAY_NUM_ENTRIES; i++)
+ for(uint8_t i = 0; i < P9_TRACEARRAY_NUM_ROWS; i++)
{
- trace_array[i].resize(PROC_GETTRACEARRAY_BITS_PER_ENTRY);
- rc_ecmd |= i_ta_data.extract(trace_array[i], PROC_GETTRACEARRAY_BITS_PER_ENTRY * i, PROC_GETTRACEARRAY_BITS_PER_ENTRY);
+ trace_array[i].resize(P9_TRACEARRAY_BITS_PER_ROW);
+ rc_ecmd |= i_ta_data.extract(trace_array[i], P9_TRACEARRAY_BITS_PER_ROW * i, P9_TRACEARRAY_BITS_PER_ROW);
FAPI_DBG("%2X: 0x%016llX%016llX", i, trace_array[i].get<uint64_t>( 0 ), trace_array[i].get<uint64_t>( 1 ));
}
@@ -197,7 +197,7 @@ extern "C"
//look for CE/UE
error_found = false;
- trace_index = PROC_GETTRACEARRAY_NUM_ENTRIES; //the last entry in the array is the newest
+ trace_index = P9_TRACEARRAY_NUM_ROWS; //the last entry in the array is the newest
FAPI_DBG("trace_index = %X", trace_index);
while( !error_found && (trace_index > 0) )
@@ -531,4 +531,3 @@ extern "C"
} // p9_l2err_extract
} // extern "C"
-
OpenPOWER on IntegriCloud