]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
scsi: lpfc: Make FW logging dynamically configurable
authorJames Smart <jsmart2021@gmail.com>
Fri, 18 Oct 2019 21:18:27 +0000 (14:18 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 7 Apr 2020 15:40:05 +0000 (10:40 -0500)
commit2c0bc5bbd84a83f9548d114639aedd81fd3c65bd
tree64fe3cd1306509a48cb1430409f7ad7eea7d2221
parent3965a40a4e75e819e57907ad5ecd093c07e60657
scsi: lpfc: Make FW logging dynamically configurable

BugLink: https://bugs.launchpad.net/bugs/1855303
Currently, the FW logging facility is a load/boot time parameter which
requires the driver to be unloaded/reloaded or the system rebooted in order
to change its configuration.

Convert the logging facility to allow dynamic enablement and configuration.
Specifically:

 - Convert the feature so that it can be enabled dynamically via an
   attribute.  Additionally, the size of the buffer can be configured
   dynamically.

 - Add locks around states that now may be changing.

 - Tie the feature into debugfs so that the logs can be read at any time.

Link: https://lore.kernel.org/r/20191018211832.7917-12-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>
(cherry picked from commit 95bfc6d8ad86a76c89f62bb466f740b0fc05a667)
Signed-off-by: Vignesh Gunasekaran <vignesh.gunasekaran@broadcom.com>
Signed-off-by: Jeff Lane <jeffrey.lane@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_attr.c
drivers/scsi/lpfc/lpfc_bsg.c
drivers/scsi/lpfc/lpfc_debugfs.c
drivers/scsi/lpfc/lpfc_sli.c