summaryrefslogtreecommitdiffstats
path: root/extract-gcov.c
diff options
context:
space:
mode:
authorAnju T Sudhakar <anju@linux.vnet.ibm.com>2019-03-22 12:13:51 +0530
committerStewart Smith <stewart@linux.ibm.com>2019-03-28 15:24:13 +1100
commitdf2a1e579aaa4c6ac8831e4a24b16b11a7e2588d (patch)
tree8f738da476c328283c23126cf24f5759fcdab072 /extract-gcov.c
parentfa8f3f3fceadcf33212d0449e0c8e787e893401a (diff)
downloadtalos-skiboot-df2a1e579aaa4c6ac8831e4a24b16b11a7e2588d.tar.gz
talos-skiboot-df2a1e579aaa4c6ac8831e4a24b16b11a7e2588d.zip
hw/imc: Enable opal calls to init/start/stop IMC Trace mode
Patch to enhance the imc opal call to support and handle trace_imc mode. To initialize the trace-mode, TRACE_IMC_SCOM value is written to TRACE_IMC_ADDR of the respective core. TRACE_IMC_SCOM is a 64bit value, and each bit represent the following: 0:1 : SAMPSEL 2:33 : CPMC_LOAD 34:40 : CPMC1SEL 41:47 : CPMC2SEL 48:50 : BUFFERSIZE 51:63 : RESERVED Currently the value for TRACE_IMC_SCOM is hard coded. During initialization htm_mode is disabled, and enabled only at start. The opal calls to start/stop the counters, will write CORE_IMC_HTM_MODE_ENABLE/ CORE_IMC_HTM_MODE_DISABLE respectively to the htm_scom_index of the desired cores. Additional switch cases are added to the current opal calls to start/stop the counters for trace-mode. Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'extract-gcov.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud