aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-07-12 16:48:00 +0530
committerOliver O'Halloran <oohall@gmail.com>2019-08-15 17:54:24 +1000
commitfa5cb0067d06a30db01f2c34df917d39df822d86 (patch)
tree6f5a7244d4c6906a54ede3d148cd58517b6a2a74 /hdata
parent7fa3c1ec5c3694dac8d690efe6463f68dd3421f3 (diff)
downloadskiboot-fa5cb0067d06a30db01f2c34df917d39df822d86.zip
skiboot-fa5cb0067d06a30db01f2c34df917d39df822d86.tar.gz
skiboot-fa5cb0067d06a30db01f2c34df917d39df822d86.tar.bz2
MPIPL: Reserve memory to capture architected registers data
- Split SPIRAH memory to accommodate architected register ntuple. Today we have 1K memory for SPIRAH and it uses 288 bytes. Lets split this into two parts : SPIRAH (756 bytes) architected register memory (256 bytes) - Update SPIRAH architected register ntuple - Calculate memory required to capture architected registers data Ideally we should use HDAT provided data (proc_dump_area->thread_size). But we are not getting this data during boot. Hence lets reserve fixed memory for architected registers data collection. - Add architected registers destination memory to reserve-memory DT node. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> [oliver: rebased] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/spira.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hdata/spira.c b/hdata/spira.c
index 0c44a66..e118e22 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -207,6 +207,13 @@ __section(".spirah.data") struct spirah spirah = {
.alloc_len = CPU_TO_BE32(sizeof(struct mdrt_table)),
.act_len = CPU_TO_BE32(sizeof(struct mdrt_table)),
},
+ .proc_dump_area = {
+ .addr = CPU_TO_BE64(PROC_DUMP_AREA_OFF),
+ .alloc_cnt = CPU_TO_BE16(1),
+ .act_cnt = CPU_TO_BE16(1),
+ .alloc_len = CPU_TO_BE32(sizeof(struct proc_dump_area)),
+ .act_len = CPU_TO_BE32(sizeof(struct proc_dump_area)),
+ },
},
};