[Skiboot] [PATCH 2/2] phb4: Fix lane equalisation setting

Michael Neuling mikey at neuling.org
Thu Nov 16 12:50:23 AEDT 2017


Fix cut and paste from phb3. The sizes have changes now we have GEN4,
so the check here needs to change also

Without this we end up with the default settings (all '7') rather
than what's in HDAT.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 hw/phb4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/phb4.c b/hw/phb4.c
index ac474ce1cb..cbd64fb697 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -5183,7 +5183,7 @@ static void phb4_probe_stack(struct dt_node *stk_node, uint32_t pec_index,
 		size_t leq_size;
 		const void *leq = dt_prop_get_def_size(stk_node, "ibm,lane-eq",
 						       NULL, &leq_size);
-		if (leq != NULL && leq_size == 4 * 8)
+		if (leq != NULL && leq_size >= 6 * 8)
 			dt_add_property(np, "ibm,lane-eq", leq, leq_size);
 	}
 	if (dt_has_node_property(stk_node, "ibm,capp-ucode", NULL)) {
-- 
2.14.1



More information about the Skiboot mailing list