blob: 0b17a848531625106fd4631e7c0b2fc656ae70c7 [file] [log] [blame]
Vasant Hegdee96d5442020-05-18 10:16:54 +05301From a10ebae5b09549de6b575989b7bd8a971f765edd Mon Sep 17 00:00:00 2001
2From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
3Date: Fri, 15 May 2020 14:13:40 +0530
4Subject: [PATCH] hdata: Workaround to hostboot reserved range issue
5
6Workaround until we get below hostboot patch merges to upstream.
7 https://rchgit01.rchland.ibm.com/gerrit1/#/c/96121/
8
9With this workaround we will not be able to reserved hostboot load area.
10.. which is fine for normal boot. As hostboot is loaded only during IPL
11time. But we need above fix for MPIPL to work.
12
13Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
14---
15 hdata/memory.c | 5 +++++
16 1 file changed, 5 insertions(+)
17
18diff --git a/hdata/memory.c b/hdata/memory.c
19index a7bbebbf..23c628d5 100755
20--- a/hdata/memory.c
21+++ b/hdata/memory.c
22@@ -795,6 +795,11 @@ static void get_hb_reserved_mem(struct HDIF_common_hdr *ms_vpd)
23 /* remove the HRMOR bypass bit */
24 start_addr &= ~HRMOR_BIT;
25 end_addr &= ~HRMOR_BIT;
26+
27+ /* Workaround for hostboot bug */
28+ if (start_addr == 0)
29+ continue;
30+
31 if (label_size > HB_RESERVE_MEM_LABEL_SIZE)
32 label_size = HB_RESERVE_MEM_LABEL_SIZE;
33
34--
352.21.1
36