summaryrefslogtreecommitdiffstats
path: root/src/usr/dump
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2018-03-21 14:05:20 +0530
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-04-21 12:05:37 -0400
commita02dc537676283b4aa30bf9045530595e9af9648 (patch)
tree079c45053840cc7a8cad3e34ae51252393eeaf2a /src/usr/dump
parenta434252bb4dce5a580669a0220c285c447a58188 (diff)
downloadtalos-hostboot-a02dc537676283b4aa30bf9045530595e9af9648.tar.gz
talos-hostboot-a02dc537676283b4aa30bf9045530595e9af9648.zip
dump: Copy data type field from MDST table to MDRT table
In case of OPAL system MDST and MDDT contains entries from multiple sources (OPAL, kernel, etc,). Post MPIPL OPAL needs a way to differentiate between them. Hence copy type field from MDST table to MDRT table. Change-Id: I3f196cdc58e7376d7743188d0a6b76c99799b5ad Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55187 CI-Ready: RAJA DAS <rajadas2@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> CI-Ready: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/dump')
-rw-r--r--src/usr/dump/dumpCollect.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/dump/dumpCollect.C b/src/usr/dump/dumpCollect.C
index 0f31602cf..602ca72be 100644
--- a/src/usr/dump/dumpCollect.C
+++ b/src/usr/dump/dumpCollect.C
@@ -508,6 +508,15 @@ errlHndl_t copySrcToDest(dumpEntry *srcTableEntry,
resultsTableEntry->destAddr =
VmmManager::FORCE_PHYS_ADDR|curDestTableAddr;
resultsTableEntry->dataSize = sizeToCopy;
+ // Size field in source/destination table is of 4 bytes.
+ // So result table size field will never cross 4 bytes.
+ // Hence use top 2 bytes to copy data_type from source
+ // table to result table (see HDAT spec for details).
+ if (TARGETING::is_sapphire_load())
+ {
+ uint64_t data_type = srcTableEntry[curSourceIndex].data_type;
+ resultsTableEntry->dataSize |= (data_type << 48);
+ }
resultsTableEntry++;
l_resultCount++;
curResultIndex++;
OpenPOWER on IntegriCloud