diff options
author | Mitko Haralanov <mitko@qlogic.com> | 2011-02-28 13:39:49 +0000 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-03-14 12:10:34 -0700 |
commit | 4634b7945cf0d6a66036ad10c3d658ae4eb39fa0 (patch) | |
tree | 55e10d1d51b6c40d5dff669bde13832c55e8a977 /drivers/infiniband/hw/qib/qib_iba7322.c | |
parent | cc7fb05946fb1cd2fd0582f9e39f759e20dfeefa (diff) | |
download | blackbird-op-linux-4634b7945cf0d6a66036ad10c3d658ae4eb39fa0.tar.gz blackbird-op-linux-4634b7945cf0d6a66036ad10c3d658ae4eb39fa0.zip |
IB/qib: Set default LE2 value for active cables to 0
For active and far-EQ cables use an LE2 value of 0 for improved SI.
Signed-off-by: Mitko Haralanov <mitko@qlogic.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_iba7322.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_iba7322.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/qib/qib_iba7322.c b/drivers/infiniband/hw/qib/qib_iba7322.c index b01809a82cb0..4a2d21e15a70 100644 --- a/drivers/infiniband/hw/qib/qib_iba7322.c +++ b/drivers/infiniband/hw/qib/qib_iba7322.c @@ -5582,9 +5582,16 @@ static void qsfp_7322_event(struct work_struct *work) * even on failure to read cable information. We don't * get here for QME, so IS_QME check not needed here. */ - le2 = (!ret && qd->cache.atten[1] >= qib_long_atten && - !ppd->dd->cspec->r1 && QSFP_IS_CU(qd->cache.tech)) ? - LE2_5m : LE2_DEFAULT; + if (!ret && !ppd->dd->cspec->r1) { + if (QSFP_IS_ACTIVE_FAR(qd->cache.tech)) + le2 = LE2_QME; + else if (qd->cache.atten[1] >= qib_long_atten && + QSFP_IS_CU(qd->cache.tech)) + le2 = LE2_5m; + else + le2 = LE2_DEFAULT; + } else + le2 = LE2_DEFAULT; ibsd_wr_allchans(ppd, 13, (le2 << 7), BMASK(9, 7)); init_txdds_table(ppd, 0); } |