From ffc262f7a11de769b4b8fb21288a301dee0de756 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Wed, 9 Aug 2017 08:42:45 +1000 Subject: HDAT/device-tree: only add lid-type on pre-POWER9 systems Largely a relic of back when we had multiple entry points into OPAL depending on which mechanism on an FSP we were using to get loaded, this isn't needed on modern P9 as we only have one entry point (we don't do the PHYP LID hack). Fixes: https://github.com/open-power/skiboot/issues/82 Reported-by: Pavaman Subramaniyam Reported-by: Pridhiviraj Paidipeddi Signed-off-by: Stewart Smith --- hdata/spira.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hdata') diff --git a/hdata/spira.c b/hdata/spira.c index d5e6984..59ea5cb 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1,4 +1,4 @@ -/* Copyright 2013-2014 IBM Corp. +/* Copyright 2013-2017 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1270,7 +1270,9 @@ int parse_hdat(bool is_opal) */ dt_add_property_cells(dt_root, "#address-cells", 2); dt_add_property_cells(dt_root, "#size-cells", 2); - dt_add_property_string(dt_root, "lid-type", is_opal ? "opal" : "phyp"); + + if (proc_gen < proc_gen_p9) + dt_add_property_string(dt_root, "lid-type", is_opal ? "opal" : "phyp"); /* Add any BMCs and enable the LPC UART */ bmc_parse(); -- cgit v1.1