[Skiboot] [PATCH v3 4/4] hdat: Remove deprecated 'ibm, mem-interleave-scope' from DT

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Fri Jan 13 19:38:26 AEDT 2017


Memory interleaving scope under PCIA strcture is deprecated on P9.
Also I don't see anyone in OPAL/kernel using this property.
Hence remove this property from P9 DT.

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

diff --git a/hdata/spira.c b/hdata/spira.c
index fdb7661..7c4919a 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -364,8 +364,10 @@ static void add_xscom_add_pcia_assoc(struct dt_node *np, uint32_t pcid)
 		if (!dt_find_property(np, "ibm,dbob-id"))
 			dt_add_property_cells(np, "ibm,dbob-id",
 				  be32_to_cpu(id->drawer_book_octant_blade_id));
-		dt_add_property_cells(np, "ibm,mem-interleave-scope",
+		if (proc_gen < proc_gen_p9) {
+			dt_add_property_cells(np, "ibm,mem-interleave-scope",
 			          be32_to_cpu(id->memory_interleaving_scope));
+		}
 		return;
 	}
 }
-- 
2.5.5



More information about the Skiboot mailing list