linux_dsm_epyc7002/drivers/scsi/qla2xxx
Joe Carnuccio 07553b1e83 scsi: qla2xxx: Add beacon LED config sysfs interface
This patch provides an interface to do the following (using MBC 0x3B):

 - Displays (in hex) the LED config words for all three LEDs.

 - Programs the config words for one LED or for all three LEDs.

The sysfs node defined is named beacon_config.

First, to allow driver to gain LED control, do this:
 # echo 1 > /sys/class/scsi_host/host#/beacon

Then, to display config words for all three LEDs do this:
 # cat /sys/class/scsi_host/host#/beacon_config

To set config words for all three LEDs do this:
 # echo 3 xxxx yyyy zzzz > /sys/class/scsi_host/host#/beacon_config

Or, to set config word for a specific single LED n do this:
 # echo n xxxx > /sys/class/scsi_host/host#/beacon_config
  where n is the LED number (0, 1, 2)

Finally, to restore LED control back to firmware, do this:
 # echo 0 > /sys/class/scsi_host/host#/beacon

Link: https://lore.kernel.org/r/20200212214436.25532-2-hmadhani@marvell.com
Signed-off-by: Joe Carnuccio <joe.carnuccio@cavium.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-02-21 18:30:59 -05:00
..
Kconfig
Makefile
qla_attr.c scsi: qla2xxx: Add beacon LED config sysfs interface 2020-02-21 18:30:59 -05:00
qla_bsg.c scsi: qla2xxx: Use get_unaligned_*() instead of open-coding these functions 2020-01-02 21:53:31 -05:00
qla_bsg.h
qla_dbg.c scsi: qla2xxx: Fix unbound NVME response length 2020-01-30 10:31:47 -05:00
qla_dbg.h scsi: qla2xxx: Fix unbound NVME response length 2020-01-30 10:31:47 -05:00
qla_def.h scsi: qla2xxx: Add beacon LED config sysfs interface 2020-02-21 18:30:59 -05:00
qla_devtbl.h
qla_dfs.c
qla_dsd.h
qla_fw.h scsi: qla2xxx: Improve readability of the code that handles qla_flt_header 2020-01-02 21:53:30 -05:00
qla_gbl.h scsi: qla2xxx: Add beacon LED config sysfs interface 2020-02-21 18:30:59 -05:00
qla_gs.c scsi: qla2xxx: Correct fcport flags handling 2019-12-21 13:42:41 -05:00
qla_init.c scsi: qla2xxx: Fix a NULL pointer dereference in an error path 2020-01-20 18:38:20 -05:00
qla_inline.h scsi: qla2xxx: Add a shadow variable to hold disc_state history of fcport 2019-12-19 22:42:44 -05:00
qla_iocb.c scsi: qla2xxx: Correct fcport flags handling 2019-12-21 13:42:41 -05:00
qla_isr.c scsi: qla2xxx: Fix unbound NVME response length 2020-01-30 10:31:47 -05:00
qla_mbx.c scsi: qla2xxx: Add beacon LED config sysfs interface 2020-02-21 18:30:59 -05:00
qla_mid.c scsi: qla2xxx: Remove defer flag to indicate immeadiate port loss 2019-12-19 22:42:44 -05:00
qla_mr.c SCSI misc on 20200129 2020-01-29 18:16:16 -08:00
qla_mr.h
qla_nvme.c for-linus-20191212 2019-12-13 14:27:19 -08:00
qla_nvme.h
qla_nx2.c
qla_nx2.h
qla_nx.c scsi: qla2xxx: Use get_unaligned_*() instead of open-coding these functions 2020-01-02 21:53:31 -05:00
qla_nx.h
qla_os.c scsi: qla2xxx: Check locking assumptions at runtime in qla2x00_abort_srb() 2020-02-10 22:46:55 -05:00
qla_settings.h
qla_sup.c scsi: qla2xxx: Improve readability of the code that handles qla_flt_header 2020-01-02 21:53:30 -05:00
qla_target.c scsi: tcm_qla2xxx: Make qlt_alloc_qfull_cmd() set cmd->se_cmd.map_tag 2020-02-10 22:46:54 -05:00
qla_target.h scsi: tcm_qla2xxx: Make qlt_alloc_qfull_cmd() set cmd->se_cmd.map_tag 2020-02-10 22:46:54 -05:00
qla_tmpl.c scsi: qla2xxx: Capture FW dump on MPI heartbeat stop event 2019-10-09 22:26:35 -04:00
qla_tmpl.h
qla_version.h scsi: qla2xxx: Update driver version to 10.01.00.22-k 2019-12-21 13:42:41 -05:00
tcm_qla2xxx.c scsi: tcm_qla2xxx: Make qlt_alloc_qfull_cmd() set cmd->se_cmd.map_tag 2020-02-10 22:46:54 -05:00
tcm_qla2xxx.h