]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: ipd: Fix incorrect calculation of ipd from static rate
authorWei Lin Guay <wei.lin.guay@oracle.com>
Tue, 30 Aug 2016 20:17:01 +0000 (22:17 +0200)
committerKnut Omang <knut.omang@oracle.com>
Fri, 9 Sep 2016 10:32:00 +0000 (12:32 +0200)
commit08d6dcf1b65a8846968dec297dcbee1a29eced16
treea72977685890677a119287a212ca60bfae5c4743
parent9a7a45c4dbc773c6b051399544ec3c7b199ceebb
sif: ipd: Fix incorrect calculation of ipd from static rate

Orabug: 24449061

The ipd is calculated wrongly because it compares the active speed enum
with the value return from ib_rate_to_mult. Thus, this patch converts the
PSIF Active speed enum to a multiple of the base rate of SDR (2.5 Gbps).

Signed-off-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
drivers/infiniband/hw/sif/sif_defs.c
drivers/infiniband/hw/sif/sif_defs.h
drivers/infiniband/hw/sif/sif_query.c