[Skiboot] [PATCH 02/11] hdat: Add processor version check for hs service ntuple

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Wed Sep 28 22:05:24 AEST 2016


Host services ntuple is deprecated on P9.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 hdata/spira.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hdata/spira.c b/hdata/spira.c
index 592197e..59ffc1d 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -1023,6 +1023,10 @@ static void hostservices_parse(void)
 	unsigned int size;
 	unsigned int ntuples_size;
 
+	/* Deprecated on P9 */
+	if (proc_gen >= proc_gen_p9)
+		return;
+
 	ntuples_size = sizeof(struct HDIF_array_hdr) + 
 		be32_to_cpu(spira.ntuples.array_hdr.ecnt) *
 		sizeof(struct spira_ntuple);
-- 
2.5.5



More information about the Skiboot mailing list