]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix configuration of BB credit recovery in service parameters
authorJames Smart <jsmart2021@gmail.com>
Tue, 5 Nov 2019 00:56:59 +0000 (16:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:24 +0000 (10:50 +0200)
commitaf449de7211a73928ceb6b246b72eb7568401894
treec40e2435931e57bcffb721072186e7849af34cb3
parent8a32c9eff5e249350ae67ed683f542ae73584bf1
scsi: lpfc: Fix configuration of BB credit recovery in service parameters

[ Upstream commit 6e714b344391ad38a0f3e421c56754b2ddbb76e9 ]

The driver today is reading service parameters from the firmware and then
overwriting the firmware-provided values with values of its own.  There are
some switch features that require preliminary FLOGI's that are
switch-specific and done prior to the actual fabric FLOGI for traffic.  The
fw will perform those FLOGIs and will revise the service parameters for the
features configured. As the driver later overwrites those values with its
own values, it misconfigures things like BBSCN use by doing so.

Correct by eliminating the driver-overwrite of firmware values. The driver
correctly re-reads the service parameters after each link up to obtain the
latest values from firmware.

Link: https://lore.kernel.org/r/20191105005708.7399-3-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc_hbadisc.c