diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-03-30 19:44:45 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-03-31 16:57:06 +1100 |
commit | 0a7449cd1ca17ab2e5553917e521394ab2dd71e8 (patch) | |
tree | a53e0509e1d70809e067b553380dce4bc3072c51 /hdata | |
parent | d38b15fe973676f71673e227d8190d72da5cd774 (diff) | |
download | skiboot-0a7449cd1ca17ab2e5553917e521394ab2dd71e8.zip skiboot-0a7449cd1ca17ab2e5553917e521394ab2dd71e8.tar.gz skiboot-0a7449cd1ca17ab2e5553917e521394ab2dd71e8.tar.bz2 |
hdata/memory: ignore homer and occ reserved ranges
We populate these from the HOMER BARs in the PBA directly. There's no
need to take the hostboot supplied values so just ignore the
corresponding reserved ranges.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/memory.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hdata/memory.c b/hdata/memory.c index b0cfec9..9b0c766 100644 --- a/hdata/memory.c +++ b/hdata/memory.c @@ -457,6 +457,12 @@ static void get_hb_reserved_mem(struct HDIF_common_hdr *ms_vpd) if (label_size > 64) label_size = 64; + /* these are broken, just ignore them */ + if (!strncmp(hb_resv_mem->label, "ibm,homer-image", label_size)) + continue; + if (!strncmp(hb_resv_mem->label, "ibm,occ-common-area", label_size)) + continue; + label = malloc(label_size+1); assert(label); |