[Skiboot] [PATCH 03/11] hdat: Add new fields to IPL params structure

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


Add new fields to sys params structure and update sys family for p9.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 hdata/spira.c |  3 +++
 hdata/spira.h | 17 ++++++++++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/hdata/spira.c b/hdata/spira.c
index 59ffc1d..61fb68a 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -788,6 +788,9 @@ static void add_iplparams_sys_params(const void *iplp, struct dt_node *node)
 	case 3:
 		sys_family = "ibm,firenze";
 		break;
+	case 4:
+		sys_family = "ibm,p9";
+		break;
 	default:
 		sys_family = NULL;
 		prerror("IPLPARAMS: Unknown system family\n");
diff --git a/hdata/spira.h b/hdata/spira.h
index 8777839..2bcff69 100644
--- a/hdata/spira.h
+++ b/hdata/spira.h
@@ -325,6 +325,17 @@ struct iplparams_sysparams {
 	uint8_t		hw_page_table_size;	/* >= 0x59 */
 	__be16		hv_disp_wheel;		/* >= 0x58 */
 	__be32		nest_freq_mhz;		/* >= 0x5b */
+	uint8_t		split_core_mode;	/* >= 0x5c */
+	uint8_t		reserved[3];
+	uint8_t		sys_vendor[64];		/* >= 0x5f */
+	/* >= 0x60 */
+	__be16		sys_sec_setting;
+	__be16		tpm_config_bit;
+	__be16		tpm_drawer;
+	__be16		reserved2;
+	uint8_t		hw_key_hash[64];
+	uint8_t		sys_family_desc[64];	/* vendor,name */
+	uint8_t		sys_type_desc[64];	/* vendor,type */
 } __packed;
 
 /* Idata index 1: IPL parameters */
@@ -353,7 +364,11 @@ struct iplparams_iplparams {
 	uint8_t		huge_page_size;
 #define IPLPARAMS_HUGE_PG_SIZE_16G	0
 	uint8_t		num_vlan_switches;
-	__be64		reserved2;
+	__be32		reserved2;
+	__be32		enlarge_io;	/* >= 0x5a */
+	uint8_t		core_config;
+#define IPLPARAMS_CORE_NORMAL	0x01
+#define IPLPARAMS_CORE_FUSE	0x01
 };
 
 /* Idata index 4: Platform Dump Descriptor */
-- 
2.5.5



More information about the Skiboot mailing list