Six qla2xxx and qla4xxx patches
Subsystems (3)
cover Six qla2xxx and qla4xxx patches
Hello Martin,
The patches in this series are what I came up with after having analyzed the source code of the qla[24]xxx drivers with several source code analysis tools (scripts/kernel-doc, gcc, sparse and smatch). None of the patches in this series have been tested. Yet I'm asking you to consider at least the first patch of this series for kernel v4.16 because it fixes a locking bug in one of the SCSI patches queued for kernel v4.16.
Thanks,
Bart.
Bart Van Assche (6):
qla2xxx: Fix a locking imbalance in qlt_24xx_handle_els()
qla2xxx: Use %p for printing pointers
qla2xxx: Remove unused symbols
qla4xxx: Remove unused symbols
qla4xxx: Move an array from a .h into a .c file
qla2xxx: Fix function argument descriptions
drivers/scsi/qla2xxx/qla_dbg.c | 4 +- drivers/scsi/qla2xxx/qla_gs.c | 78 +++++++++++++++++++-------------------- drivers/scsi/qla2xxx/qla_init.c | 37 ++++++++++--------- drivers/scsi/qla2xxx/qla_inline.h | 1 + drivers/scsi/qla2xxx/qla_iocb.c | 15 ++++++-- drivers/scsi/qla2xxx/qla_isr.c | 23 +++++++----- drivers/scsi/qla2xxx/qla_mbx.c | 5 ++- drivers/scsi/qla2xxx/qla_mr.c | 36 ++++++++++-------- drivers/scsi/qla2xxx/qla_nx.c | 7 ++-- drivers/scsi/qla2xxx/qla_nx2.c | 19 +++++----- drivers/scsi/qla2xxx/qla_nx2.h | 4 -- drivers/scsi/qla2xxx/qla_sup.c | 1 + drivers/scsi/qla2xxx/qla_target.c | 9 ++--- drivers/scsi/qla4xxx/ql4_nx.c | 2 + drivers/scsi/qla4xxx/ql4_nx.h | 7 ---- 15 files changed, 129 insertions(+), 119 deletions(-)
Signature · 1 line
2.15.1
PATCH 1/6 qla2xxx: Fix a locking imbalance in qlt_24xx_handle_els()
Ensure that upon return the tgt->ha->tgt.sess_lock spin lock is unlocked no matter which code path is taken through this function. This was detected by sparse.
--- drivers/scsi/qla2xxx/qla_target.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/qla2xxx/qla_target.c +0 -2
@@ -4871,8 +4871,6 @@ static int qlt_24xx_handle_els(struct scsi_qla_host *vha, sess);qlt_send_term_imm_notif (vha, iocb,1 ); res =0 ; -spin_lock_irqsave (&tgt->ha->tgt.sess_lock, - flags);break ; }
Signature · 1 line
2.15.1
Martin K. Petersen
AppliedRe: [PATCH 1/6] qla2xxx: Fix a locking imbalance in qlt_24xx_handle_els()
Bart,
Quoted 3 lines
Ensure that upon return the
tgt->ha->tgt.sess_lockspin lock is unlocked no matter which code path is taken through this function. This was detected by sparse.
Applied to 4.16/scsi-fixes. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
PATCH 2/6 qla2xxx: Use %p for printing pointers
In reply to Bart Van AsscheUsing %p instead of %lx to print a pointer allows to remove a cast.
--- drivers/scsi/qla2xxx/qla_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_init.c +2 -2
@@ -2688,8 +2688,8 @@ qla2x00_chip_diag(scsi_qla_host_t *vha)/* Assume a failed state */ rval =QLA_FUNCTION_FAILED ; -ql_dbg (ql_dbg_init, vha,0x007b , -"Testing device at %lx.\n" , (u_long)®->flash_address); +ql_dbg (ql_dbg_init, vha,0x007b ,"Testing device at %p.\n" , + ®->flash_address);spin_lock_irqsave (&ha->hardware_lock, flags);
Signature · 1 line
2.15.1
PATCH 3/6 qla2xxx: Remove unused symbols
In reply to Bart Van AsscheRemove a few preprocessor macros that are not used anywhere.
--- drivers/scsi/qla2xxx/qla_nx2.h | 4 ---- 1 file changed, 4 deletions(-)
drivers/scsi/qla2xxx/qla_nx2.h +0 -4
@@ -23,10 +23,6 @@#define MD_MIU_TEST_AGT_WRDATA_HI 0x410000A4#define MD_MIU_TEST_AGT_WRDATA_ULO 0x410000B0#define MD_MIU_TEST_AGT_WRDATA_UHI 0x410000B4 -#define MD_MIU_TEST_AGT_RDDATA_LO 0x410000A8 -#define MD_MIU_TEST_AGT_RDDATA_HI 0x410000AC -#define MD_MIU_TEST_AGT_RDDATA_ULO 0x410000B8 -#define MD_MIU_TEST_AGT_RDDATA_UHI 0x410000BC/* MIU_TEST_AGT_CTRL flags. work for SIU as well */ #define MIU_TA_CTL_WRITE_ENABLE (MIU_TA_CTL_WRITE | MIU_TA_CTL_ENABLE)
Signature · 1 line
2.15.1
PATCH 4/6 qla4xxx: Remove unused symbols
In reply to Bart Van AsscheRemove a few preprocessor macros that are not used anywhere.
--- drivers/scsi/qla4xxx/ql4_nx.h | 5 ----- 1 file changed, 5 deletions(-)
drivers/scsi/qla4xxx/ql4_nx.h +0 -5
@@ -1022,11 +1022,6 @@ struct qla8xxx_minidump_entry_queue {#define MD_MIU_TEST_AGT_WRDATA_ULO 0x410000B0#define MD_MIU_TEST_AGT_WRDATA_UHI 0x410000B4 -#define MD_MIU_TEST_AGT_RDDATA_LO 0x410000A8 -#define MD_MIU_TEST_AGT_RDDATA_HI 0x410000AC -#define MD_MIU_TEST_AGT_RDDATA_ULO 0x410000B8 -#define MD_MIU_TEST_AGT_RDDATA_UHI 0x410000BC -static const int MD_MIU_TEST_AGT_RDDATA [] = {0x410000A8 ,0x410000AC ,0x410000B8 ,0x410000BC };#endif
Signature · 1 line
2.15.1
PATCH 5/6 qla4xxx: Move an array from a .h into a .c file
In reply to Bart Van AsscheThis patch does not change any functionality but slightly reduces the size of the compiled kernel module.
--- drivers/scsi/qla4xxx/ql4_nx.c | 2 ++ drivers/scsi/qla4xxx/ql4_nx.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/qla4xxx/ql4_nx.c +2 -0
@@ -45,6 +45,8 @@ qla4_8xxx_pci_base_offsetfset(struct scsi_qla_host *ha, unsigned long off)return NULL ; } +static const int MD_MIU_TEST_AGT_RDDATA [] = {0x410000A8 , +0x410000AC ,0x410000B8 ,0x410000BC };#define MAX_CRB_XFORM 60static unsigned long crb_addr_xform[MAX_CRB_XFORM ];static int qla4_8xxx_crb_table_initialized;
drivers/scsi/qla4xxx/ql4_nx.h +0 -2
@@ -1022,6 +1022,4 @@ struct qla8xxx_minidump_entry_queue {#define MD_MIU_TEST_AGT_WRDATA_ULO 0x410000B0#define MD_MIU_TEST_AGT_WRDATA_UHI 0x410000B4 -static const int MD_MIU_TEST_AGT_RDDATA [] = {0x410000A8 , -0x410000AC ,0x410000B8 ,0x410000BC };#endif
Signature · 1 line
2.15.1
PATCH 6/6 qla2xxx: Fix function argument descriptions
In reply to Bart Van AsscheBring the kernel-doc headers in sync with the function argument lists.
--- drivers/scsi/qla2xxx/qla_dbg.c | 4 +- drivers/scsi/qla2xxx/qla_gs.c | 78 +++++++++++++++++++-------------------- drivers/scsi/qla2xxx/qla_init.c | 33 +++++++++-------- drivers/scsi/qla2xxx/qla_inline.h | 1 + drivers/scsi/qla2xxx/qla_iocb.c | 15 ++++++-- drivers/scsi/qla2xxx/qla_isr.c | 23 +++++++----- drivers/scsi/qla2xxx/qla_mbx.c | 5 ++- drivers/scsi/qla2xxx/qla_mr.c | 36 ++++++++++-------- drivers/scsi/qla2xxx/qla_nx.c | 7 ++-- drivers/scsi/qla2xxx/qla_nx2.c | 19 +++++----- drivers/scsi/qla2xxx/qla_sup.c | 1 + drivers/scsi/qla2xxx/qla_target.c | 7 ++-- 12 files changed, 125 insertions(+), 104 deletions(-)
drivers/scsi/qla2xxx/qla_dbg.c +2 -2
@@ -717,7 +717,7 @@ qla2xxx_dump_post_process(scsi_qla_host_t *vha, int rval)/** * qla2300_fw_dump() - Dumps binary data from the 2300 firmware. -* @ha: HA context +* @vha: HA context * @hardware_locked: Called with the hardware_lock */ void
@@ -887,7 +887,7 @@ qla2300_fw_dump(scsi_qla_host_t *vha, int hardware_locked)/** * qla2100_fw_dump() - Dumps binary data from the 2100/2200 firmware. -* @ha: HA context +* @vha: HA context * @hardware_locked: Called with the hardware_lock */ void
drivers/scsi/qla2xxx/qla_gs.c +38 -40
265 lines not on this page · raw message
drivers/scsi/qla2xxx/qla_init.c +17 -16
@@ -2046,7 +2046,7 @@ qla2x00_initialize_adapter(scsi_qla_host_t *vha)/** * qla2100_pci_config() - Setup ISP21xx PCI configuration registers. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2077,7 +2077,7 @@ qla2100_pci_config(scsi_qla_host_t *vha)/** * qla2300_pci_config() - Setup ISP23xx PCI configuration registers. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2159,7 +2159,7 @@ qla2300_pci_config(scsi_qla_host_t *vha)/** * qla24xx_pci_config() - Setup ISP24xx PCI configuration registers. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2203,7 +2203,7 @@ qla24xx_pci_config(scsi_qla_host_t *vha)/** * qla25xx_pci_config() - Setup ISP25xx PCI configuration registers. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2234,7 +2234,7 @@ qla25xx_pci_config(scsi_qla_host_t *vha)/** * qla2x00_isp_firmware() - Choose firmware image. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2270,7 +2270,7 @@ qla2x00_isp_firmware(scsi_qla_host_t *vha)/** * qla2x00_reset_chip() - Reset ISP chip. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2414,6 +2414,7 @@ qla2x00_reset_chip(scsi_qla_host_t *vha)/** * qla81xx_reset_mpi() - Reset's MPI FW via Write MPI Register MBC. +* @vha: HA context * * Returns 0 on success. */
@@ -2430,7 +2431,7 @@ qla81xx_reset_mpi(scsi_qla_host_t *vha)/** * qla24xx_reset_risc() - Perform full reset of ISP24xx RISC. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2645,7 +2646,7 @@ qla25xx_manipulate_risc_semaphore(scsi_qla_host_t *vha)/** * qla24xx_reset_chip() - Reset ISP24xx chip. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2669,7 +2670,7 @@ qla24xx_reset_chip(scsi_qla_host_t *vha)/** * qla2x00_chip_diag() - Test chip for proper operation. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2793,7 +2794,7 @@ qla2x00_chip_diag(scsi_qla_host_t *vha)/** * qla24xx_chip_diag() - Test ISP24xx for proper operation. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -3261,7 +3262,7 @@ qla24xx_detect_sfp(scsi_qla_host_t *vha)/** * qla2x00_setup_chip() - Load and start RISC firmware. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -3416,7 +3417,7 @@ qla2x00_setup_chip(scsi_qla_host_t *vha)/** * qla2x00_init_response_q_entries() - Initializes response queue entries. -* @ha: HA context +* @rsp: response queue * * Beginning of request ring has initialization control block already built * by nvram config routine.
@@ -3441,7 +3442,7 @@ qla2x00_init_response_q_entries(struct rsp_que *rsp)/** * qla2x00_update_fw_options() - Read and process firmware options. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -3704,7 +3705,7 @@ qla24xx_config_rings(struct scsi_qla_host *vha)/** * qla2x00_init_rings() - Initializes firmware. -* @ha: HA context +* @vha: HA context * * Beginning of request ring has initialization control block already built * by nvram config routine.
@@ -3812,7 +3813,7 @@ qla2x00_init_rings(scsi_qla_host_t *vha)/** * qla2x00_fw_ready() - Waits for firmware ready. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -4480,7 +4481,7 @@ qla2x00_rport_del(void *data)/** * qla2x00_alloc_fcport() - Allocate a generic fcport. -* @ha: HA context +* @vha: HA context * @flags: allocation flags * * Returns a pointer to the allocated fcport, or NULL, if none available.
drivers/scsi/qla2xxx/qla_inline.h +1 -0
@@ -10,6 +10,7 @@* qla24xx_calc_iocbs() - Determine number of Command Type 3 and * Continuation Type 1 IOCBs to allocate. * +* @vha: HA context * @dsds: number of data segment decriptors needed * * Returns the number of IOCB entries needed to store @dsds.
drivers/scsi/qla2xxx/qla_iocb.c +11 -4
@@ -14,7 +14,7 @@/** * qla2x00_get_cmd_direction() - Determine control_flag data direction. -* @cmd: SCSI command +* @sp: SCSI command * * Returns the proper CF_* direction based on CDB. */
@@ -86,7 +86,7 @@ qla2x00_calc_iocbs_64(uint16_t dsds)/** * qla2x00_prep_cont_type0_iocb() - Initialize a Continuation Type 0 IOCB. -* @ha: HA context +* @vha: HA context * * Returns a pointer to the Continuation Type 0 IOCB packet. */
@@ -114,7 +114,8 @@ qla2x00_prep_cont_type0_iocb(struct scsi_qla_host *vha)/** * qla2x00_prep_cont_type1_iocb() - Initialize a Continuation Type 1 IOCB. -* @ha: HA context +* @vha: HA context +* @req: request queue * * Returns a pointer to the continuation type 1 IOCB packet. */
@@ -445,6 +446,8 @@ qla2x00_start_scsi(srb_t *sp)/** * qla2x00_start_iocbs() - Execute the IOCB command +* @vha: HA context +* @req: request queue */ void qla2x00_start_iocbs (struct scsi_qla_host *vha,struct req_que *req)
@@ -486,7 +489,9 @@ qla2x00_start_iocbs(struct scsi_qla_host *vha, struct req_que *req)/** * qla2x00_marker() - Send a marker IOCB to the firmware. -* @ha: HA context +* @vha: HA context +* @req: request queue +* @rsp: response queue * @loop_id: loop ID * @lun: LUN * @type: marker modifier
@@ -1190,6 +1195,8 @@ qla24xx_walk_and_build_prot_sglist(struct qla_hw_data *ha, srb_t *sp,* @sp: SRB command to process * @cmd_pkt: Command type 3 IOCB * @tot_dsds: Total number of segments to transfer +* @tot_prot_dsds: +* @fw_prot_opts: */ inline int qla24xx_build_scsi_crc_2_iocbs(srb_t *sp, struct cmd_type_crc_2 *cmd_pkt,
drivers/scsi/qla2xxx/qla_isr.c +14 -9
@@ -259,7 +259,7 @@ qla2300_intr_handler(int irq, void *dev_id)/** * qla2x00_mbx_completion() - Process mailbox command completions. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context * @mb0: Mailbox0 register */ static void
@@ -612,7 +612,8 @@ qla2x00_find_fcport_by_nportid(scsi_qla_host_t *vha, port_id_t *id,/** * qla2x00_async_event() - Process aynchronous events. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context +* @rsp: response queue * @mb: Mailbox registers (0 - 3) */ void
@@ -1255,7 +1256,8 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb)/** * qla2x00_process_completed_request() - Process a Fast Post response. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context +* @req: request queue * @index: SRB index */ void
@@ -1969,7 +1971,7 @@ static void qla_ctrlvp_completed(scsi_qla_host_t *vha, struct req_que *req,/** * qla2x00_process_response_queue() - Process response queue entries. -* @ha: SCSI driver HA context +* @rsp: response queue */ void qla2x00_process_response_queue (struct rsp_que *rsp)
@@ -2373,7 +2375,8 @@ qla25xx_process_bidir_status_iocb(scsi_qla_host_t *vha, void *pkt,/** * qla2x00_status_entry() - Process a Status IOCB entry. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context +* @rsp: response queue * @pkt: Entry pointer */ static void
@@ -2750,7 +2753,7 @@ qla2x00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt)/** * qla2x00_status_cont_entry() - Process a Status Continuations entry. -* @ha: SCSI driver HA context +* @rsp: response queue * @pkt: Entry pointer * * Extended sense data.
@@ -2808,7 +2811,8 @@ qla2x00_status_cont_entry(struct rsp_que *rsp, sts_cont_entry_t *pkt)/** * qla2x00_error_entry() - Process an error entry. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context +* @rsp: response queue * @pkt: Entry pointer * return : 1=allow further error analysis. 0=no additional error analysis. */
@@ -2867,7 +2871,7 @@ qla2x00_error_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, sts_entry_t *pkt)/** * qla24xx_mbx_completion() - Process mailbox command completions. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context * @mb0: Mailbox0 register */ static void
@@ -2935,7 +2939,8 @@ void qla24xx_nvme_ls4_iocb(struct scsi_qla_host *vha,/** * qla24xx_process_response_queue() - Process response queue entries. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context +* @rsp: response queue */ void qla24xx_process_response_queue (struct scsi_qla_host *vha,struct rsp_que *rsp)
drivers/scsi/qla2xxx/qla_mbx.c +4 -1
@@ -3385,7 +3385,10 @@ qla8044_read_serdes_word(scsi_qla_host_t *vha, uint32_t addr, uint32_t *data)/** * qla2x00_set_serdes_params() - -* @ha: HA context +* @vha: HA context +* @sw_em_1g: +* @sw_em_2g: +* @sw_em_4g: * * Returns */
drivers/scsi/qla2xxx/qla_mr.c +21 -15
@@ -490,7 +490,7 @@ qlafx00_mbx_reg_test(scsi_qla_host_t *vha)/** * qlafx00_pci_config() - Setup ISPFx00 PCI configuration registers. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -519,9 +519,9 @@ qlafx00_pci_config(scsi_qla_host_t *vha)/** * qlafx00_warm_reset() - Perform warm reset of iSA(CPUs being reset on SOC). -* @ha: HA context +* @vha: HA context * -*/ +*/ static inline void qlafx00_soc_cpu_reset (scsi_qla_host_t *vha) {
@@ -625,7 +625,7 @@ qlafx00_soc_cpu_reset(scsi_qla_host_t *vha)/** * qlafx00_soft_reset() - Soft Reset ISPFx00. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -644,7 +644,7 @@ qlafx00_soft_reset(scsi_qla_host_t *vha)/** * qlafx00_chip_diag() - Test ISPFx00 for proper operation. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -1408,7 +1408,7 @@ qlafx00_abort_isp_cleanup(scsi_qla_host_t *vha, bool critemp)/** * qlafx00_init_response_q_entries() - Initializes response queue entries. -* @ha: HA context +* @rsp: response queue * * Beginning of request ring has initialization control block already built * by nvram config routine.
@@ -2269,7 +2269,8 @@ qlafx00_ioctl_iosb_entry(scsi_qla_host_t *vha, struct req_que *req,/** * qlafx00_status_entry() - Process a Status IOCB entry. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context +* @rsp: response queue * @pkt: Entry pointer */ static void
@@ -2542,7 +2543,7 @@ qlafx00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt)/** * qlafx00_status_cont_entry() - Process a Status Continuations entry. -* @ha: SCSI driver HA context +* @rsp: response queue * @pkt: Entry pointer * * Extended sense data.
@@ -2620,7 +2621,9 @@ qlafx00_status_cont_entry(struct rsp_que *rsp, sts_cont_entry_t *pkt)/** * qlafx00_multistatus_entry() - Process Multi response queue entries. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context +* @rsp: response queue +* @pkt: */ static void qlafx00_multistatus_entry(struct scsi_qla_host *vha,
@@ -2674,8 +2677,11 @@ qlafx00_multistatus_entry(struct scsi_qla_host *vha,/** * qlafx00_error_entry() - Process an error entry. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context +* @rsp: response queue * @pkt: Entry pointer +* @estatus: +* @etype: */ static void qlafx00_error_entry(scsi_qla_host_t *vha, struct rsp_que *rsp,
@@ -2705,7 +2711,8 @@ qlafx00_error_entry(scsi_qla_host_t *vha, struct rsp_que *rsp,/** * qlafx00_process_response_queue() - Process response queue entries. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context +* @rsp: response queue */ static void qlafx00_process_response_queue(struct scsi_qla_host *vha,
@@ -2781,7 +2788,7 @@ qlafx00_process_response_queue(struct scsi_qla_host *vha,/** * qlafx00_async_event() - Process aynchronous events. -* @ha: SCSI driver HA context +* @vha: SCSI driver HA context */ static void qlafx00_async_event (scsi_qla_host_t *vha)
@@ -2857,10 +2864,9 @@ qlafx00_async_event(scsi_qla_host_t *vha) }/** -* * qlafx00x_mbx_completion() - Process mailbox command completions. -* @ha: SCSI driver HA context -* @mb16: Mailbox16 register +* @vha: SCSI driver HA context +* @mb0: */ static void qlafx00_mbx_completion (scsi_qla_host_t *vha,uint32_t mb0)
drivers/scsi/qla2xxx/qla_nx.c +3 -4
@@ -1732,7 +1732,7 @@ qla82xx_iospace_config(struct qla_hw_data *ha)/** * qla82xx_pci_config() - Setup ISP82xx PCI configuration registers. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -1753,7 +1753,7 @@ qla82xx_pci_config(scsi_qla_host_t *vha)/** * qla82xx_reset_chip() - Setup ISP82xx PCI configuration registers. -* @ha: HA context +* @vha: HA context * * Returns 0 on success. */
@@ -2008,11 +2008,10 @@ qla82xx_mbx_completion(scsi_qla_host_t *vha, uint16_t mb0) "MBX pointer ERROR.\n"); } -/* +/** * qla82xx_intr_handler() - Process interrupts for the ISP23xx and ISP63xx. * @irq: * @dev_id: SCSI driver HA context -* @regs: * * Called by system whenever the host adapter generates an interrupt. *
drivers/scsi/qla2xxx/qla_nx2.c +9 -10
@@ -280,9 +280,8 @@ qla8044_clear_qsnt_ready(struct scsi_qla_host *vha) }/** -* * qla8044_lock_recovery - Recovers the idc_lock. -* @ha : Pointer to adapter structure +* @vha : Pointer to adapter structure * * Lock Recovery Register * 5-2 Lock recovery owner: Function ID of driver doing lock recovery,
@@ -1639,10 +1638,10 @@ qla8044_set_rst_ready(struct scsi_qla_host *vha)/** * qla8044_need_reset_handler - Code to start reset sequence -* @ha: pointer to adapter structure +* @vha: pointer to adapter structure * * Note: IDC lock must be held upon entry -**/ +*/ static void qla8044_need_reset_handler (struct scsi_qla_host *vha) {
@@ -1859,8 +1858,8 @@ qla8044_update_idc_reg(struct scsi_qla_host *vha)/** * qla8044_need_qsnt_handler - Code to start qsnt -* @ha: pointer to adapter structure -**/ +* @vha: pointer to adapter structure +*/ static void qla8044_need_qsnt_handler (struct scsi_qla_host *vha) {
@@ -2031,10 +2030,10 @@ qla8044_device_state_handler(struct scsi_qla_host *vha)/** * qla4_8xxx_check_temp - Check the ISP82XX temperature. -* @ha: adapter block pointer. +* @vha: adapter block pointer. * * Note: The caller should not hold the idc lock. -**/ +*/ static int qla8044_check_temp (struct scsi_qla_host *vha) {
@@ -2071,10 +2070,10 @@ int qla8044_read_temperature(scsi_qla_host_t *vha)/** * qla8044_check_fw_alive - Check firmware health -* @ha: Pointer to host adapter structure. +* @vha: Pointer to host adapter structure. * * Context: Interrupt -**/ +*/ int qla8044_check_fw_alive (struct scsi_qla_host *vha) {
drivers/scsi/qla2xxx/qla_sup.c +1 -0
@@ -2226,6 +2226,7 @@ qla2x00_erase_flash_sector(struct qla_hw_data *ha, uint32_t addr,/** * qla2x00_get_flash_manufacturer() - Read manufacturer ID from flash chip. +* @ha: * @man_id: Flash manufacturer ID * @flash_id: Flash ID */
drivers/scsi/qla2xxx/qla_target.c +4 -3
@@ -6297,10 +6297,11 @@ static void qlt_lport_dump(struct scsi_qla_host *vha, u64 wwpn,/** * qla_tgt_lport_register - register lport with external module * -* @qla_tgt_ops: Pointer for tcm_qla2xxx qla_tgt_ops -* @wwpn: Passwd FC target WWPN -* @callback: lport initialization callback for tcm_qla2xxx code * @target_lport_ptr: pointer for tcm_qla2xxx specific lport data +* @phys_wwpn: +* @npiv_wwpn: +* @npiv_wwnn: +* @callback: lport initialization callback for tcm_qla2xxx code */ int qlt_lport_register(void *target_lport_ptr, u64 phys_wwpn, u64 npiv_wwpn, u64 npiv_wwnn,
Signature · 1 line
2.15.1
Bart,
Quoted 6 lines
The patches in this series are what I came up with after having analyzed the source code of the qla[24]xxx drivers with several source code analysis tools (
scripts/kernel-doc, gcc, sparse and smatch). None of the patches in this series have been tested. Yet I'm asking you to consider at least the first patch of this series for kernel v4.16 because it fixes a locking bug in one of the SCSI patches queued for kernel v4.16.
Himanshu and team: Please review!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Madhani, Himanshu
Acked-byHi Martin,
Quoted 5 lines · Martin K. Petersen
Bart,
Quoted 9 lines
Quoted 6 lines
The patches in this series are what I came up with after having analyzed the source code of the qla[24]xxx drivers with several source code analysis tools (
scripts/kernel-doc, gcc, sparse and smatch). None of the patches in this series have been tested. Yet I'm asking you to consider at least the first patch of this series for kernel v4.16 because it fixes a locking bug in one of the SCSI patches queued for kernel v4.16.Himanshu and team: Please review!
Series looks good
Quoted 2 lines
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Thanks,
- Himanshu
Martin K. Petersen
AppliedBart,
Quoted 7 lines
The patches in this series are what I came up with after having analyzed the source code of the qla[24]xxx drivers with several source code analysis tools (
scripts/kernel-doc, gcc, sparse and smatch). None of the patches in this series have been tested. Yet I'm asking you to consider at least the first patch of this series for kernel v4.16 because it fixes a locking bug in one of the SCSI patches queued for kernel v4.16.
Applied to my staging tree for 4.17/scsi-queue. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering