Patch "IB/hfi1: Check for QSFP presence before attempting reads" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
IB/hfi1: Check for QSFP presence before attempting reads
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ib-hfi1-check-for-qsfp-presence-before-attempting-reads.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Sun Mar 18 16:55:33 CET 2018
From: Easwar Hariharan <[email protected]>
Date: Mon, 20 Mar 2017 17:25:42 -0700
Subject: IB/hfi1: Check for QSFP presence before attempting reads
From: Easwar Hariharan <[email protected]>
[ Upstream commit fb897ad315643e5dc1092a115b3cec914b66df9d ]
Attempting to read the status of a QSFP cable creates noise in the logs and misses out on setting an appropriate Offline/Disabled Reason if the cable is not plugged in. Check for this prior to attempting the read and attendant retries.
--- drivers/infiniband/hw/hfi1/chip.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/infiniband/hw/hfi1/chip.c +5 -2
@@ -9489,8 +9489,11 @@ static int test_qsfp_read(struct hfi1_ppint ret;u8 status; -/* report success if not a QSFP */ -if (ppd->port_type !=PORT_TYPE_QSFP ) +/* +* Report success if not a QSFP or, if it is a QSFP, but the cable is +* not present +*/ +if (ppd->port_type !=PORT_TYPE_QSFP || !qsfp_mod_present (ppd))return 0 ;/* read byte 2, the status byte */
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/ib-hfi1-check-for-qsfp-presence-before-attempting-reads.patch