Vasant Hegde | e96d544 | 2020-05-18 10:16:54 +0530 | [diff] [blame^] | 1 | From a10ebae5b09549de6b575989b7bd8a971f765edd Mon Sep 17 00:00:00 2001 |
| 2 | From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> |
| 3 | Date: Fri, 15 May 2020 14:13:40 +0530 |
| 4 | Subject: [PATCH] hdata: Workaround to hostboot reserved range issue |
| 5 | |
| 6 | Workaround until we get below hostboot patch merges to upstream. |
| 7 | https://rchgit01.rchland.ibm.com/gerrit1/#/c/96121/ |
| 8 | |
| 9 | With 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 |
| 11 | time. But we need above fix for MPIPL to work. |
| 12 | |
| 13 | Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> |
| 14 | --- |
| 15 | hdata/memory.c | 5 +++++ |
| 16 | 1 file changed, 5 insertions(+) |
| 17 | |
| 18 | diff --git a/hdata/memory.c b/hdata/memory.c |
| 19 | index 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 | -- |
| 35 | 2.21.1 |
| 36 | |