[Skiboot] [PATCH 1/2] hdata: Fix copying GEN4 lane equalisation settings

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


These aren't copied currently but should be.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 hdata/iohub.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hdata/iohub.c b/hdata/iohub.c
index 134fa04660..a5f12fd121 100644
--- a/hdata/iohub.c
+++ b/hdata/iohub.c
@@ -280,6 +280,8 @@ static struct dt_node *add_pec_stack(const struct cechub_io_hub *hub,
 
 	for (i = 0; i < 4; i++) /* gen 3 eq settings */
 		eq[i] = be64_to_cpu(hub->phb_lane_eq[phb_index][i]);
+	for (i = 0; i < 4; i++) /* gen 4 eq settings */
+		eq[i+4] = be64_to_cpu(hub->phb4_lane_eq[phb_index][i]);
 
 	/* Lane-eq settings are packed 2 bytes per lane for 16 lanes
 	 * On P9 DD1, 2 bytes per lane are used in the hardware
-- 
2.14.1



More information about the Skiboot mailing list