Skip to content

Commit f10e629

Browse files
Vasant Hegdeoohal
authored andcommitted
mem-map: Setup memory for MDDT table
Each entry in MDST and MDDT takes 16 bytes. With 1K we can have upto 64 entries. This is sufficient to support OPAL MPIPL (memory preserving IPL). Presently OPAL reserves 2K memory for MDST table. Lets split this into two region of 1K for MDST and MDDT table. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> [oliver: rebased] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
1 parent 0b66781 commit f10e629

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

include/mem-map.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,16 @@
3636
*/
3737
#define PROCIN_OFF (SPIRA_OFF + 0x800)
3838

39-
/* Initial MDST table like PROCIN, we need fixed addresses,
39+
/* Initial MDST and MDDT tables like PROCIN, we need fixed addresses,
4040
* we leave a 2k gap for PROCIN
4141
*/
4242
#define MDST_TABLE_OFF (SPIRA_OFF + 0x1000)
43+
#define MDST_TABLE_SIZE 0x400
4344

44-
/* Like MDST, we need fixed address for CPU control header.
45+
#define MDDT_TABLE_OFF (SPIRA_OFF + 0x1400)
46+
#define MDDT_TABLE_SIZE 0x400
47+
48+
/* Like MDST and MDDT, we need fixed address for CPU control header.
4549
* We leave a 2k gap for MDST. CPU_CTL table is of size ~4k
4650
*/
4751
#define CPU_CTL_OFF (SPIRA_OFF + 0x1800)

skiboot.lds.S

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// SPDX-License-Identifier: Apache-2.0
22
/*
3-
* Skiboot linker script
4-
*
53
* Copyright 2013-2019 IBM Corp.
64
*/
75

@@ -81,6 +79,11 @@ SECTIONS
8179
KEEP(*(.mdst.data))
8280
}
8381

82+
. = MDDT_TABLE_OFF;
83+
.mddt : {
84+
KEEP(*(.mddt.data))
85+
}
86+
8487
. = CPU_CTL_OFF;
8588
.cpuctrl : {
8689
KEEP(*(.cpuctrl.data))

0 commit comments

Comments
 (0)