lpfc 8.3.29: SLI related fixes
Subsystems (2)
PATCH 2/7 lpfc 8.3.29: SLI related fixes
SLI related fixes:
- Fix REG_RPI fails on SLI4 HBA putting NPort into NPR state (126230)
- Fix ELS FDISC failing with local reject / invalid RPI. (126350)
- Fix reset port when reset is needed during fw_dump (125807)
- Fix unbounded firmware revision string from port cause panic (126560)
- Fix driver behavior when receiving an ADISC (126654)
- Fix driver not returning when bad ndlp found in abts error event handling (126209)
- Add more driver logs in area of SLI4 port error attention and reset recovery (126813, 124466)
- Fix failure in handling large CQ/EQ identifiers in an IOV environment (126856)
- Fix for driver using duplicate RPIs after lancer port reset (126723)
- Clear vport->fc_myDID in lpfc_els_issue_fdisc to guarentee a zero SID (126779, 126897)
- Fix for SLI4 Port delivery for BLS ABORT ACC (126289)
---
lpfc_attr.c | 12 +++++--- lpfc_bsg.c | 4 +- lpfc_crtn.h | 1 lpfc_ct.c | 4 +- lpfc_els.c | 3 +- lpfc_hw.h | 1 lpfc_hw4.h | 26 +++++++++++++----- lpfc_init.c | 64 +++++++++++++++++++++++++++++++++++++++++----- lpfc_nportdisc.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- lpfc_sli.c | 47 ++++++++++++++++++++++++++++------ lpfc_sli4.h | 3 +- 11 files changed, 207 insertions(+), 34 deletions(-)
drivers/scsi/lpfc/lpfc_attr.c +8 -4
@@ -353,7 +353,7 @@ lpfc_fwrev_show(struct device *dev, strustruct lpfc_hba *phba = vport->phba;uint32_t if_type;uint8_t sli_family; -char fwrev[32 ]; +char fwrev[FW_REV_STR_SIZE ];int len;lpfc_decode_firmware_rev (phba, fwrev,1 );
@@ -922,11 +922,15 @@ lpfc_sli4_pdev_reg_request(struct lpfc_h rc =lpfc_sli4_pdev_status_reg_wait (phba);if (rc == -EPERM ) { -/* no privilage for reset, restore if needed */ -if (before_fc_flag &FC_OFFLINE_MODE ) - goto out; +/* no privilage for reset */ +lpfc_printf_log (phba,KERN_ERR ,LOG_SLI , +"3150 No privilage to perform the requested " +"access: x%x\n" , reg_val); }else if (rc == -EIO ) {/* reset failed, there is nothing more we can do */ +lpfc_printf_log (phba,KERN_ERR ,LOG_SLI , +"3153 Fail to perform the requested " +"access: x%x\n" , reg_val);return rc; }
drivers/scsi/lpfc/lpfc_bsg.c +2 -2
@@ -3980,7 +3980,7 @@ lpfc_bsg_handle_sli_cfg_mbox(struct lpfccase COMN_OPCODE_GET_CNTL_ADDL_ATTRIBUTES :lpfc_printf_log (phba,KERN_INFO ,LOG_LIBDFC ,"3106 Handled SLI_CONFIG " -"subsys_fcoe, opcode:x%x\n" , +"subsys_comn, opcode:x%x\n" , opcode); rc =lpfc_bsg_sli_cfg_read_cmd_ext (phba, job, nemb_mse, dmabuf);
@@ -3988,7 +3988,7 @@ lpfc_bsg_handle_sli_cfg_mbox(struct lpfcdefault :lpfc_printf_log (phba,KERN_INFO ,LOG_LIBDFC ,"3107 Reject SLI_CONFIG " -"subsys_fcoe, opcode:x%x\n" , +"subsys_comn, opcode:x%x\n" , opcode); rc = -EPERM ;break ;
drivers/scsi/lpfc/lpfc_crtn.h +1 -0
@@ -462,3 +462,4 @@ int lpfc_issue_unreg_vfi(struct lpfc_vpoint lpfc_selective_reset (struct lpfc_hba *);int lpfc_sli4_read_config (struct lpfc_hba *phba);int lpfc_scsi_buf_update (struct lpfc_hba *phba); +void lpfc_sli4_node_prep (struct lpfc_hba *phba);
drivers/scsi/lpfc/lpfc_ct.c +2 -2
@@ -1076,7 +1076,7 @@ int lpfc_vport_symbolic_node_name(struct lpfc_vport *vport, char *symbol, size_t size) { - char fwrev[16]; + char fwrev[FW_REV_STR_SIZE];int n;lpfc_decode_firmware_rev (vport->phba, fwrev,0 );
@@ -1834,7 +1834,7 @@ lpfc_decode_firmware_rev(struct lpfc_hbauint8_t *fwname;if (phba->sli_rev ==LPFC_SLI_REV4 ) -sprintf (fwrevision,"%s" , vp->rev.opFwName); +snprintf (fwrevision,FW_REV_STR_SIZE ,"%s" , vp->rev.opFwName);else if (vp->rev.rBit) {if (psli->sli_flag &LPFC_SLI_ACTIVE ) rev = vp->rev.sli2FwRev;
drivers/scsi/lpfc/lpfc_els.c +2 -1
@@ -7172,7 +7172,7 @@ lpfc_cmpl_els_fdisc(struct lpfc_hba *phb goto out;/* FDISC failed */ lpfc_printf_vlog (vport,KERN_ERR ,LOG_ELS , -"0126 FDISC failed. (%d/%d)\n" , +"0126 FDISC failed. (x%x/x%x)\n" , irsp->ulpStatus, irsp->un.ulpWord[4 ]); goto fdisc_failed; }
@@ -7283,6 +7283,7 @@ lpfc_issue_els_fdisc(struct lpfc_vport *int rc; vport->port_state =LPFC_FDISC ; + vport->fc_myDID =0 ; cmdsize = (sizeof (uint32_t ) +sizeof (struct serv_parm )); elsiocb =lpfc_prep_els_iocb (vport,1 , cmdsize, retry, ndlp, did,ELS_CMD_FDISC );
drivers/scsi/lpfc/lpfc_hw4.h +19 -7
@@ -715,12 +715,20 @@ struct lpfc_register {#define lpfc_eqcq_doorbell_eqci_SHIFT 9#define lpfc_eqcq_doorbell_eqci_MASK 0x0001#define lpfc_eqcq_doorbell_eqci_WORD word0 -#define lpfc_eqcq_doorbell_cqid_SHIFT 0 -#define lpfc_eqcq_doorbell_cqid_MASK 0x03FF -#define lpfc_eqcq_doorbell_cqid_WORD word0 -#define lpfc_eqcq_doorbell_eqid_SHIFT 0 -#define lpfc_eqcq_doorbell_eqid_MASK 0x01FF -#define lpfc_eqcq_doorbell_eqid_WORD word0 +#define lpfc_eqcq_doorbell_cqid_lo_SHIFT 0 +#define lpfc_eqcq_doorbell_cqid_lo_MASK 0x03FF +#define lpfc_eqcq_doorbell_cqid_lo_WORD word0 +#define lpfc_eqcq_doorbell_cqid_hi_SHIFT 11 +#define lpfc_eqcq_doorbell_cqid_hi_MASK 0x001F +#define lpfc_eqcq_doorbell_cqid_hi_WORD word0 +#define lpfc_eqcq_doorbell_eqid_lo_SHIFT 0 +#define lpfc_eqcq_doorbell_eqid_lo_MASK 0x01FF +#define lpfc_eqcq_doorbell_eqid_lo_WORD word0 +#define lpfc_eqcq_doorbell_eqid_hi_SHIFT 11 +#define lpfc_eqcq_doorbell_eqid_hi_MASK 0x001F +#define lpfc_eqcq_doorbell_eqid_hi_WORD word0 +#define LPFC_CQID_HI_FIELD_SHIFT 10 +#define LPFC_EQID_HI_FIELD_SHIFT 9#define LPFC_BMBX 0x0160#define lpfc_bmbx_addr_SHIFT 2
@@ -3313,7 +3321,11 @@ struct xmit_bls_rsp64_wqe {uint32_t rsrvd4;struct wqe_did wqe_dest;struct wqe_common wqe_com;/* words 6-11 */ -uint32_t rsvd_12_15[4 ]; +uint32_t word12; +#define xmit_bls_rsp64_temprpi_SHIFT 0 +#define xmit_bls_rsp64_temprpi_MASK 0x0000ffff +#define xmit_bls_rsp64_temprpi_WORD word12 +uint32_t rsvd_13_15[3 ]; };struct wqe_rctl_dfctl {
drivers/scsi/lpfc/lpfc_hw.h +1 -0
@@ -70,6 +70,7 @@/* vendor ID used in SCSI netlink calls */ #define LPFC_NL_VENDOR_ID (SCSI_NL_VID_TYPE_PCI | PCI_VENDOR_ID_EMULEX) +#define FW_REV_STR_SIZE 32/* Common Transport structures and definitions */ union CtRevisionId {
drivers/scsi/lpfc/lpfc_init.c +57 -7
109 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_nportdisc.c +73 -3
115 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli4.h +2 -1
@@ -633,7 +633,8 @@ void lpfc_sli4_free_rpi(struct lpfc_hbavoid lpfc_sli4_remove_rpis (struct lpfc_hba *);void lpfc_sli4_async_event_proc (struct lpfc_hba *);void lpfc_sli4_fcf_redisc_event_proc (struct lpfc_hba *); -int lpfc_sli4_resume_rpi (struct lpfc_nodelist *); +int lpfc_sli4_resume_rpi (struct lpfc_nodelist *, +void (*)(struct lpfc_hba *,LPFC_MBOXQ_t *),void *);void lpfc_sli4_fcp_xri_abort_event_proc (struct lpfc_hba *);void lpfc_sli4_els_xri_abort_event_proc (struct lpfc_hba *); void lpfc_sli4_fcp_xri_aborted(struct lpfc_hba *,
drivers/scsi/lpfc/lpfc_sli.c +40 -7
123 lines not on this page · raw message