diff options
author | Michael Neuling <mikey@neuling.org> | 2017-11-16 12:50:22 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-11-15 21:11:15 -0600 |
commit | b2d6679804b5e71ac5af545e517ae755f5c779b0 (patch) | |
tree | dda1d8db0bc5c87cde67cfd404bbfd0d492fe735 | |
parent | bb58eed0de1f310830361b0b54be1df125e66b8d (diff) | |
download | skiboot-b2d6679804b5e71ac5af545e517ae755f5c779b0.zip skiboot-b2d6679804b5e71ac5af545e517ae755f5c779b0.tar.gz skiboot-b2d6679804b5e71ac5af545e517ae755f5c779b0.tar.bz2 |
hdata: Fix copying GEN4 lane equalisation settings
These aren't copied currently but should be.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
(cherry picked from commit 4e74625dc9f1e1d080128203dc410ff0027c4fcf)
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hdata/iohub.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hdata/iohub.c b/hdata/iohub.c index 134fa04..a5f12fd 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 |