From: Ralph Campbell Date: Wed, 23 Jun 2010 15:58:31 +0000 (+0000) Subject: IB/qib: Turn off IB latency mode X-Git-Tag: firefly_0821_release~9833^2~1227^2^7~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2d978a953b874bac418e0b9475edd1b9125281f6;p=firefly-linux-kernel-4.4.55.git IB/qib: Turn off IB latency mode Turn off IB latency mode. This improves link quality for slower process chips. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/qib/qib_iba7322.c b/drivers/infiniband/hw/qib/qib_iba7322.c index 5eedf83e2c3b..fc14ef8e5597 100644 --- a/drivers/infiniband/hw/qib/qib_iba7322.c +++ b/drivers/infiniband/hw/qib/qib_iba7322.c @@ -7271,6 +7271,8 @@ static int serdes_7322_init(struct qib_pportdata *ppd) ibsd_wr_allchans(ppd, 20, (4 << 13), BMASK(15, 13)); /* SDR */ data = qib_read_kreg_port(ppd, krp_serdesctrl); + /* Turn off IB latency mode */ + data &= ~SYM_MASK(IBSerdesCtrl_0, IB_LAT_MODE); qib_write_kreg_port(ppd, krp_serdesctrl, data | SYM_MASK(IBSerdesCtrl_0, RXLOSEN));