[Skiboot] [PATCH] hdata/memory: ignore homer and occ reserved ranges

Oliver O'Halloran oohall at gmail.com
Thu Mar 30 19:44:45 AEDT 2017


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 at gmail.com>
---
 hdata/memory.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hdata/memory.c b/hdata/memory.c
index 45aca47967cf..ac5a6c9ce1c8 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);
 
-- 
2.9.3



More information about the Skiboot mailing list