diff mbox

hdata/memory: ignore homer and occ reserved ranges

Message ID 20170330084445.32231-1-oohall@gmail.com
State Accepted
Headers show

Commit Message

Oliver O'Halloran March 30, 2017, 8:44 a.m. UTC
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>
---
 hdata/memory.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Stewart Smith March 31, 2017, 7:02 a.m. UTC | #1
Oliver O'Halloran <oohall@gmail.com> writes:
> 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>

Merged to master as of 0a7449cd1ca17ab2e5553917e521394ab2dd71e8
diff mbox

Patch

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);