lpfc: LTS 5.15 update to correct path split changes
Subsystems (3)
v2 cover lpfc: LTS 5.15 update to correct path split changes
An issue was identified with lpfc in the LTS 5.15 kernel. There is an FLOGI failure which prevents FC link bringup.
In the past several kernel releases, we have been reworking areas of the driver to fix issues in the broader design rather than continuing to create a patchwork on an issue-by-issue basis. This means there are a lot of inter-related patches.
In this case, it appears that a portion of the "path split" rework was pulled into 5.15, and the portion that wasn't picked up introduced the error.
This patch set reverts the patches for the partial pull in.
-- james
This patch set was created via the following:
# Revert prior partial "path split" patches
git revert 17bf429b913b 6e99860de6f4 9a570069cdbb b4543dbea84c
c56cc7fefc31 1c5e670d6a5a
# Then manually correct of the revert of b4543dbea84c which
inserted a line in the revert process.
James Smart (6):
Revert "scsi: lpfc: Resolve some cleanup issues following SLI path
refactoring"
Revert "scsi: lpfc: Fix element offset in
__lpfc_sli_release_iocbq_s4()"
Revert "scsi: lpfc: Fix locking for lpfc_sli_iocbq_lookup()" Revert "scsi: lpfc: SLI path split: Refactor SCSI paths" Revert "scsi: lpfc: SLI path split: Refactor fast and slow paths to
native SLI4"
Revert "scsi: lpfc: SLI path split: Refactor lpfc_iocbq"
drivers/scsi/lpfc/lpfc.h | 40 -- drivers/scsi/lpfc/lpfc_bsg.c | 50 +- drivers/scsi/lpfc/lpfc_crtn.h | 3 +- drivers/scsi/lpfc/lpfc_ct.c | 8 +- drivers/scsi/lpfc/lpfc_els.c | 139 ++--- drivers/scsi/lpfc/lpfc_hw4.h | 7 - drivers/scsi/lpfc/lpfc_init.c | 13 +- drivers/scsi/lpfc/lpfc_nportdisc.c | 4 +- drivers/scsi/lpfc/lpfc_nvme.c | 34 +- drivers/scsi/lpfc/lpfc_nvme.h | 6 +- drivers/scsi/lpfc/lpfc_nvmet.c | 83 ++- drivers/scsi/lpfc/lpfc_scsi.c | 441 ++++++++------- drivers/scsi/lpfc/lpfc_sli.c | 876 ++++++++++++++++------------- drivers/scsi/lpfc/lpfc_sli.h | 26 +- 14 files changed, 906 insertions(+), 824 deletions(-)
Signature · 1 line
2.35.3
PATCH v2 1/6 Revert "scsi: lpfc: Resolve some cleanup issues following SLI path refactoring"
This reverts commit 17bf429b913b9e7f8d2353782e24ed3a491bb2d8.
LTS 5.15 pulled in several lpfc "SLI Path split" patches. The Path Split mods were a 14-patch set, which refactors the driver from to split the sli-3 hw (now eol) from the sli-4 hw and use sli4 structures natively. The patches are highly inter-related.
Given only some of the patches were included, it created a situation where FLOGI's fail, thus SLI Ports can't start communication.
Reverting this patch as its a fix specific to the Path Split patches, which were partially included and now being pulled from 5.15.
--- drivers/scsi/lpfc/lpfc_init.c | 2 +- drivers/scsi/lpfc/lpfc_sli.c | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-)
drivers/scsi/lpfc/lpfc_init.c +1 -1
@@ -11967,7 +11967,7 @@ lpfc_sli_enable_msi(struct lpfc_hba *phba) rc =pci_enable_msi (phba->pcidev);if (!rc)lpfc_printf_log (phba,KERN_INFO ,LOG_INIT , -"0012 PCI enable MSI mode success.\n" ); +"0462 PCI enable MSI mode success.\n" );else {lpfc_printf_log (phba,KERN_INFO ,LOG_INIT ,"0471 PCI enable MSI mode failed (%d)\n" , rc);
drivers/scsi/lpfc/lpfc_sli.c +13 -12
@@ -1939,7 +1939,7 @@ lpfc_issue_cmf_sync_wqe(struct lpfc_hba *phba, u32 ms, u64 total) sync_buf =__lpfc_sli_get_iocbq (phba);if (!sync_buf) {lpfc_printf_log (phba,KERN_ERR ,LOG_CGN_MGMT , -"6244 No available WQEs for CMF_SYNC_WQE\n" ); +"6213 No available WQEs for CMF_SYNC_WQE\n" ); ret_val =ENOMEM ; goto out_unlock; }
@@ -3739,7 +3739,7 @@ lpfc_sli_process_sol_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,set_job_ulpword4 (cmdiocbp,IOERR_ABORT_REQUESTED );/* -* For SLI4, irspiocb contains +* For SLI4, irsiocb contains * NO_XRI in sli_xritag, it * shall not affect releasing * sgl (xri) process.
@@ -3757,7 +3757,7 @@ lpfc_sli_process_sol_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, } } } - cmdiocbp->cmd_cmpl (phba, cmdiocbp, saveq); + (cmdiocbp->cmd_cmpl) (phba, cmdiocbp, saveq); }else lpfc_sli_release_iocbq (phba, cmdiocbp); }else {
@@ -3997,7 +3997,8 @@ lpfc_sli_handle_fast_ring_event(struct lpfc_hba *phba, cmdiocbq->cmd_flag &= ~LPFC_DRIVER_ABORTED ;if (cmdiocbq->cmd_cmpl) {spin_unlock_irqrestore (&phba->hbalock, iflag); - cmdiocbq->cmd_cmpl (phba, cmdiocbq, &rspiocbq); + (cmdiocbq->cmd_cmpl)(phba, cmdiocbq, + &rspiocbq);spin_lock_irqsave (&phba->hbalock, iflag); }break ;
@@ -10937,7 +10938,7 @@ lpfc_sli4_iocb2wqe(struct lpfc_hba *phba, struct lpfc_iocbq *iocbq,* @flag: Flag indicating if this command can be put into txq. * * __lpfc_sli_issue_fcp_io_s3 is wrapper function to invoke lockless func to -* send an iocb command to an HBA with SLI-3 interface spec. +* send an iocb command to an HBA with SLI-4 interface spec. * * This function takes the hbalock before invoking the lockless version. * The function will return success after it successfully submit the wqe to
@@ -12990,7 +12991,7 @@ lpfc_sli_wake_iocb_wait(struct lpfc_hba *phba, cmdiocbq->cmd_cmpl = cmdiocbq->wait_cmd_cmpl; cmdiocbq->wait_cmd_cmpl =NULL ;if (cmdiocbq->cmd_cmpl) - cmdiocbq->cmd_cmpl (phba, cmdiocbq,NULL ); + (cmdiocbq->cmd_cmpl)(phba, cmdiocbq,NULL );else lpfc_sli_release_iocbq (phba, cmdiocbq);return ;
@@ -13004,9 +13005,9 @@ lpfc_sli_wake_iocb_wait(struct lpfc_hba *phba,/* Set the exchange busy flag for task management commands */ if ((cmdiocbq->cmd_flag &LPFC_IO_FCP ) && - !(cmdiocbq->cmd_flag &LPFC_IO_LIBDFC )) { + !(cmdiocbq->cmd_flag &LPFC_IO_LIBDFC )) { lpfc_cmd = container_of(cmdiocbq, struct lpfc_io_buf, - cur_iocbq); + cur_iocbq);if (rspiocbq && (rspiocbq->cmd_flag &LPFC_EXCHANGE_BUSY )) lpfc_cmd->flags |=LPFC_SBUF_XBUSY ;else
@@ -14144,7 +14145,7 @@ void lpfc_sli4_els_xri_abort_event_proc(struct lpfc_hba *phba)* @irspiocbq: Pointer to work-queue completion queue entry. * * This routine handles an ELS work-queue completion event and construct -* a pseudo response ELS IOCBQ from the SLI4 ELS WCQE for the common +* a pseudo response ELS IODBQ from the SLI4 ELS WCQE for the common * discovery engine to handle. * * Return: Pointer to the receive IOCBQ, NULL otherwise.
@@ -14188,7 +14189,7 @@ lpfc_sli4_els_preprocess_rspiocbq(struct lpfc_hba *phba,if (bf_get (lpfc_wcqe_c_xb, wcqe)) {spin_lock_irqsave (&phba->hbalock, iflags); - irspiocbq->cmd_flag |=LPFC_EXCHANGE_BUSY ; + cmdiocbq->cmd_flag |=LPFC_EXCHANGE_BUSY ;spin_unlock_irqrestore (&phba->hbalock, iflags); }
@@ -15047,7 +15048,7 @@ lpfc_sli4_fp_handle_fcp_wcqe(struct lpfc_hba *phba, struct lpfc_queue *cq,/* Pass the cmd_iocb and the wcqe to the upper layer */ memcpy (&cmdiocbq->wcqe_cmpl, wcqe,sizeof (struct lpfc_wcqe_complete )); - cmdiocbq->cmd_cmpl (phba, cmdiocbq, cmdiocbq); + (cmdiocbq->cmd_cmpl)(phba, cmdiocbq, cmdiocbq); }else {lpfc_printf_log (phba,KERN_WARNING ,LOG_SLI , "0375 FCP cmdiocb not callback function "
@@ -19211,7 +19212,7 @@ lpfc_sli4_send_seq_to_ulp(struct lpfc_vport *vport,/* Free iocb created in lpfc_prep_seq */ list_for_each_entry_safe (curr_iocb, next_iocb, - &iocbq->list, list) { + &iocbq->list, list) {list_del_init (&curr_iocb->list);lpfc_sli_release_iocbq (phba, curr_iocb); }
Signature · 1 line
2.35.3
PATCH v2 2/6 Revert "scsi: lpfc: Fix element offset in __lpfc_sli_release_iocbq_s4()"
In reply to James SmartThis reverts commit 6e99860de6f4e286c386f533c4d35e7e283803d4.
LTS 5.15 pulled in several lpfc "SLI Path split" patches. The Path Split mods were a 14-patch set, which refactors the driver from to split the sli-3 hw (now eol) from the sli-4 hw and use sli4 structures natively. The patches are highly inter-related.
Given only some of the patches were included, it created a situation where FLOGI's fail, thus SLI Ports can't start communication.
Reverting this patch as its a fix specific to the Path Split patches, which were partially included and now being pulled from 5.15.
--- drivers/scsi/lpfc/lpfc_sli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_sli.c +1 -1
@@ -1384,7 +1384,7 @@ static void __lpfc_sli_release_iocbq_s4(struct lpfc_hba *phba, struct lpfc_iocbq *iocbq) { struct lpfc_sglq *sglq; -size_t start_clean = offsetof(struct lpfc_iocbq , wqe); +size_t start_clean = offsetof(struct lpfc_iocbq , iocb);unsigned long iflag =0 ;struct lpfc_sli_ring *pring;
Signature · 1 line
2.35.3
PATCH v2 3/6 Revert "scsi: lpfc: Fix locking for lpfc_sli_iocbq_lookup()"
In reply to James SmartThis reverts commit 9a570069cdbbc28c4b5b4632d5c9369371ec739c.
LTS 5.15 pulled in several lpfc "SLI Path split" patches. The Path Split mods were a 14-patch set, which refactors the driver from to split the sli-3 hw (now eol) from the sli-4 hw and use sli4 structures natively. The patches are highly inter-related.
Given only some of the patches were included, it created a situation where FLOGI's fail, thus SLI Ports can't start communication.
Reverting this patch as its a fix specific to the Path Split patches, which were partially included and now being pulled from 5.15.
--- drivers/scsi/lpfc/lpfc_sli.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
drivers/scsi/lpfc/lpfc_sli.c +2 -8
@@ -3644,15 +3644,7 @@ lpfc_sli_process_sol_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,unsigned long iflag;u32 ulp_command, ulp_status, ulp_word4, ulp_context, iotag; -if (phba->sli_rev ==LPFC_SLI_REV4 ) -spin_lock_irqsave (&pring->ring_lock, iflag); -else -spin_lock_irqsave (&phba->hbalock, iflag); cmdiocbp =lpfc_sli_iocbq_lookup (phba, pring, saveq); -if (phba->sli_rev ==LPFC_SLI_REV4 ) -spin_unlock_irqrestore (&pring->ring_lock, iflag); -else -spin_unlock_irqrestore (&phba->hbalock, iflag); ulp_command =get_job_cmnd (phba, saveq); ulp_status =get_job_ulpstatus (phba, saveq);
@@ -3989,8 +3981,10 @@ lpfc_sli_handle_fast_ring_event(struct lpfc_hba *phba,break ; } +spin_unlock_irqrestore (&phba->hbalock, iflag); cmdiocbq =lpfc_sli_iocbq_lookup (phba, pring, &rspiocbq); +spin_lock_irqsave (&phba->hbalock, iflag);if (unlikely (!cmdiocbq))break ;if (cmdiocbq->cmd_flag &LPFC_DRIVER_ABORTED )
Signature · 1 line
2.35.3
PATCH v2 4/6 Revert "scsi: lpfc: SLI path split: Refactor SCSI paths"
In reply to James SmartThis reverts commit b4543dbea84c8b64566dd0d626d63f8cbe977f61.
LTS 5.15 pulled in several lpfc "SLI Path split" patches. The Path Split mods were a 14-patch set, which refactors the driver from to split the sli-3 hw (now eol) from the sli-4 hw and use sli4 structures natively. The patches are highly inter-related.
Given only some of the patches were included, it created a situation where FLOGI's fail, thus SLI Ports can't start communication.
Reverting this patch as its one of the partial Path Split patches that was included.
NOTE: fixed a git revert error which caused a new line to be inserted:
line 5755 of lpfc_scsi.c in lpfc_queuecommand
+ atomic_inc(&ndlp->cmd_pending);
Removed the line
--- drivers/scsi/lpfc/lpfc.h | 4 - drivers/scsi/lpfc/lpfc_scsi.c | 372 +++++++++++++++++++--------------- drivers/scsi/lpfc/lpfc_sli.c | 6 +- 3 files changed, 209 insertions(+), 173 deletions(-)
drivers/scsi/lpfc/lpfc.h +0 -4
@@ -920,10 +920,6 @@ struct lpfc_hba { (struct lpfc_vport *vport, struct lpfc_io_buf *lpfc_cmd, uint8_t tmo); -int (*lpfc_scsi_prep_task_mgmt_cmd) - (struct lpfc_vport *vport, -struct lpfc_io_buf *lpfc_cmd, -u64 lun,u8 task_mgmt_cmd);/* IOCB interface function jump table entries */ int (*__lpfc_sli_issue_iocb)
drivers/scsi/lpfc/lpfc_scsi.c +207 -165
569 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli.c +2 -4
@@ -12970,7 +12970,6 @@ lpfc_sli_wake_iocb_wait(struct lpfc_hba *phba,wait_queue_head_t *pdone_q;unsigned long iflags;struct lpfc_io_buf *lpfc_cmd; -size_t offset = offsetof(struct lpfc_iocbq , wqe);spin_lock_irqsave (&phba->hbalock, iflags);if (cmdiocbq->cmd_flag &LPFC_IO_WAKE_TMO ) {
@@ -12991,11 +12990,10 @@ lpfc_sli_wake_iocb_wait(struct lpfc_hba *phba,return ; } -/* Copy the contents of the local rspiocb into the caller's buffer. */ cmdiocbq->cmd_flag |=LPFC_IO_WAKE ;if (cmdiocbq->context2 && rspiocbq) -memcpy ((char *)cmdiocbq->context2 + offset, - (char *)rspiocbq + offset,sizeof (*rspiocbq) - offset); +memcpy (&((struct lpfc_iocbq *)cmdiocbq->context2)->iocb, + &rspiocbq->iocb,sizeof (IOCB_t));/* Set the exchange busy flag for task management commands */ if ((cmdiocbq->cmd_flag & LPFC_IO_FCP) &&
Signature · 1 line
2.35.3
PATCH v2 5/6 Revert "scsi: lpfc: SLI path split: Refactor fast and slow paths to native SLI4"
In reply to James SmartThis reverts commit c56cc7fefc3159049f94fb1318e48aa60cabf703.
LTS 5.15 pulled in several lpfc "SLI Path split" patches. The Path Split mods were a 14-patch set, which refactors the driver from to split the sli-3 hw (now eol) from the sli-4 hw and use sli4 structures natively. The patches are highly inter-related.
Given only some of the patches were included, it created a situation where FLOGI's fail, thus SLI Ports can't start communication.
Reverting this patch as its one of the partial Path Split patches that was included.
--- drivers/scsi/lpfc/lpfc.h | 36 --- drivers/scsi/lpfc/lpfc_crtn.h | 1 - drivers/scsi/lpfc/lpfc_hw4.h | 7 - drivers/scsi/lpfc/lpfc_sli.c | 513 ++++++++++++++++++++-------------- drivers/scsi/lpfc/lpfc_sli.h | 2 - 5 files changed, 302 insertions(+), 257 deletions(-)
drivers/scsi/lpfc/lpfc.h +0 -36
@@ -1803,39 +1803,3 @@ static inline int lpfc_is_vmid_enabled(struct lpfc_hba *phba) {return phba->cfg_vmid_app_header || phba->cfg_vmid_priority_tagging; } - -static inline -u8 get_job_ulpstatus (struct lpfc_hba *phba,struct lpfc_iocbq *iocbq) -{ -if (phba->sli_rev ==LPFC_SLI_REV4 ) -return bf_get (lpfc_wcqe_c_status, &iocbq->wcqe_cmpl); -else -return iocbq->iocb.ulpStatus; -} - -static inline -u32 get_job_word4 (struct lpfc_hba *phba,struct lpfc_iocbq *iocbq) -{ -if (phba->sli_rev ==LPFC_SLI_REV4 ) -return iocbq->wcqe_cmpl.parameter; -else -return iocbq->iocb.un.ulpWord[4 ]; -} - -static inline -u8 get_job_cmnd (struct lpfc_hba *phba,struct lpfc_iocbq *iocbq) -{ -if (phba->sli_rev ==LPFC_SLI_REV4 ) -return bf_get (wqe_cmnd, &iocbq->wqe.generic.wqe_com); -else -return iocbq->iocb.ulpCommand; -} - -static inline -u16 get_job_ulpcontext (struct lpfc_hba *phba,struct lpfc_iocbq *iocbq) -{ -if (phba->sli_rev ==LPFC_SLI_REV4 ) -return bf_get (wqe_ctxt_tag, &iocbq->wqe.generic.wqe_com); -else -return iocbq->iocb.ulpContext; -}
drivers/scsi/lpfc/lpfc_crtn.h +0 -1
@@ -129,7 +129,6 @@ void lpfc_disc_list_loopmap(struct lpfc_vport *);void lpfc_disc_start (struct lpfc_vport *);void lpfc_cleanup_discovery_resources (struct lpfc_vport *);void lpfc_cleanup (struct lpfc_vport *); -void lpfc_prep_embed_io (struct lpfc_hba *phba,struct lpfc_io_buf *lpfc_ncmd);void lpfc_disc_timeout (struct timer_list *);int lpfc_unregister_fcf_prep (struct lpfc_hba *);
drivers/scsi/lpfc/lpfc_hw4.h +0 -7
@@ -60,13 +60,6 @@ ((ptr)->name##_WORD = ((((value) & name##_MASK) << name##_SHIFT) | \ ((ptr)->name##_WORD & ~(name##_MASK << name##_SHIFT)))) -#define get_wqe_reqtag (x) (((x)->wqe.words[9] >> 0) & 0xFFFF) - -#define get_job_ulpword (x, y) ((x)->iocb.un.ulpWord[y]) - -#define set_job_ulpstatus (x, y) bf_set(lpfc_wcqe_c_status, &(x)->wcqe_cmpl, y) -#define set_job_ulpword4 (x, y) ((&(x)->wcqe_cmpl)->parameter = y) -struct dma_address {uint32_t addr_lo;uint32_t addr_hi;
drivers/scsi/lpfc/lpfc_sli.c +302 -211
724 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli.h +0 -2
@@ -76,8 +76,6 @@ struct lpfc_iocbq {struct lpfc_wcqe_complete wcqe_cmpl;/* WQE cmpl */ uint8_t num_bdes; -uint8_t abort_bls;/* ABTS by initiator or responder */ -uint8_t priority;/* OAS priority */ uint8_t retry;/* retry counter for IOCB cmd - if needed */ u32 cmd_flag;
Signature · 1 line
2.35.3
PATCH v2 6/6 Revert "scsi: lpfc: SLI path split: Refactor lpfc_iocbq"
In reply to James SmartThis reverts commit 1c5e670d6a5a8e7e99b51f45e79879f7828bd2ec.
LTS 5.15 pulled in several lpfc "SLI Path split" patches. The Path Split mods were a 14-patch set, which refactors the driver from to split the sli-3 hw (now eol) from the sli-4 hw and use sli4 structures natively. The patches are highly inter-related.
Given only some of the patches were included, it created a situation where FLOGI's fail, thus SLI Ports can't start communication.
Reverting this patch as its one of the partial Path Split patches that was included.
--- drivers/scsi/lpfc/lpfc_bsg.c | 50 ++--- drivers/scsi/lpfc/lpfc_crtn.h | 2 +- drivers/scsi/lpfc/lpfc_ct.c | 8 +- drivers/scsi/lpfc/lpfc_els.c | 139 ++++++------ drivers/scsi/lpfc/lpfc_init.c | 11 +- drivers/scsi/lpfc/lpfc_nportdisc.c | 4 +- drivers/scsi/lpfc/lpfc_nvme.c | 34 ++- drivers/scsi/lpfc/lpfc_nvme.h | 6 +- drivers/scsi/lpfc/lpfc_nvmet.c | 83 ++++--- drivers/scsi/lpfc/lpfc_scsi.c | 75 ++++--- drivers/scsi/lpfc/lpfc_sli.c | 340 +++++++++++++++-------------- drivers/scsi/lpfc/lpfc_sli.h | 24 +- 12 files changed, 391 insertions(+), 385 deletions(-)
drivers/scsi/lpfc/lpfc_bsg.c +25 -25
@@ -325,7 +325,7 @@ lpfc_bsg_send_mgmt_cmd_cmp(struct lpfc_hba *phba,/* Close the timeout handler abort window */ spin_lock_irqsave (&phba->hbalock, flags); - cmdiocbq->cmd_flag &= ~LPFC_IO_CMD_OUTSTANDING ; + cmdiocbq->iocb_flag &= ~LPFC_IO_CMD_OUTSTANDING ;spin_unlock_irqrestore (&phba->hbalock, flags); iocb = &dd_data->context_un.iocb;
@@ -481,11 +481,11 @@ lpfc_bsg_send_mgmt_cmd(struct bsg_job *job) cmd->ulpOwner =OWN_CHIP ; cmdiocbq->vport = phba->pport; cmdiocbq->context3 = bmp; - cmdiocbq->cmd_flag |=LPFC_IO_LIBDFC ; + cmdiocbq->iocb_flag |=LPFC_IO_LIBDFC ; timeout = phba->fc_ratov *2 ; cmd->ulpTimeout = timeout; - cmdiocbq->cmd_cmpl = lpfc_bsg_send_mgmt_cmd_cmp; + cmdiocbq->iocb_cmpl = lpfc_bsg_send_mgmt_cmd_cmp; cmdiocbq->context1 = dd_data; cmdiocbq->context2 = cmp; cmdiocbq->context3 = bmp;
@@ -516,9 +516,9 @@ lpfc_bsg_send_mgmt_cmd(struct bsg_job *job)if (iocb_stat ==IOCB_SUCCESS ) {spin_lock_irqsave (&phba->hbalock, flags);/* make sure the I/O had not been completed yet */ -if (cmdiocbq->cmd_flag &LPFC_IO_LIBDFC ) { +if (cmdiocbq->iocb_flag &LPFC_IO_LIBDFC ) {/* open up abort window to timeout handler */ - cmdiocbq->cmd_flag |=LPFC_IO_CMD_OUTSTANDING ; + cmdiocbq->iocb_flag |=LPFC_IO_CMD_OUTSTANDING ; }spin_unlock_irqrestore (&phba->hbalock, flags);return 0 ;/* done for now */
@@ -600,7 +600,7 @@ lpfc_bsg_rport_els_cmp(struct lpfc_hba *phba,/* Close the timeout handler abort window */ spin_lock_irqsave (&phba->hbalock, flags); - cmdiocbq->cmd_flag &= ~LPFC_IO_CMD_OUTSTANDING ; + cmdiocbq->iocb_flag &= ~LPFC_IO_CMD_OUTSTANDING ;spin_unlock_irqrestore (&phba->hbalock, flags); rsp = &rspiocbq->iocb;
@@ -726,10 +726,10 @@ lpfc_bsg_rport_els(struct bsg_job *job) cmdiocbq->iocb.ulpContext = phba->sli4_hba.rpi_ids[rpi]; else cmdiocbq->iocb.ulpContext = rpi; - cmdiocbq->cmd_flag |=LPFC_IO_LIBDFC ; + cmdiocbq->iocb_flag |=LPFC_IO_LIBDFC ; cmdiocbq->context1 = dd_data; cmdiocbq->context_un.ndlp = ndlp; - cmdiocbq->cmd_cmpl = lpfc_bsg_rport_els_cmp; + cmdiocbq->iocb_cmpl = lpfc_bsg_rport_els_cmp; dd_data->type =TYPE_IOCB ; dd_data->set_job = job; dd_data->context_un.iocb.cmdiocbq = cmdiocbq;
@@ -757,9 +757,9 @@ lpfc_bsg_rport_els(struct bsg_job *job)if (rc ==IOCB_SUCCESS ) {spin_lock_irqsave (&phba->hbalock, flags);/* make sure the I/O had not been completed/released */ -if (cmdiocbq->cmd_flag &LPFC_IO_LIBDFC ) { +if (cmdiocbq->iocb_flag &LPFC_IO_LIBDFC ) {/* open up abort window to timeout handler */ - cmdiocbq->cmd_flag |=LPFC_IO_CMD_OUTSTANDING ; + cmdiocbq->iocb_flag |=LPFC_IO_CMD_OUTSTANDING ; }spin_unlock_irqrestore (&phba->hbalock, flags);return 0 ;/* done for now */
@@ -1053,7 +1053,7 @@ lpfc_bsg_ct_unsol_event(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,lpfc_in_buf_free (phba, dmabuf); }else { -lpfc_sli3_post_buffer (phba, +lpfc_post_buffer (phba, pring,1 ); }
@@ -1061,7 +1061,7 @@ lpfc_bsg_ct_unsol_event(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,default :if (!(phba->sli3_options &LPFC_SLI3_HBQ_ENABLED )) -lpfc_sli3_post_buffer (phba, +lpfc_post_buffer (phba, pring,1 );break ;
@@ -1395,7 +1395,7 @@ lpfc_issue_ct_rsp_cmp(struct lpfc_hba *phba,/* Close the timeout handler abort window */ spin_lock_irqsave (&phba->hbalock, flags); - cmdiocbq->cmd_flag &= ~LPFC_IO_CMD_OUTSTANDING ; + cmdiocbq->iocb_flag &= ~LPFC_IO_CMD_OUTSTANDING ;spin_unlock_irqrestore (&phba->hbalock, flags); ndlp = dd_data->context_un.iocb.ndlp;
@@ -1549,13 +1549,13 @@ lpfc_issue_ct_rsp(struct lpfc_hba *phba, struct bsg_job *job, uint32_t tag,"2722 Xmit CT response on exchange x%x Data: x%x x%x x%x\n" , icmd->ulpContext, icmd->ulpIoTag, tag, phba->link_state); - ctiocb->cmd_flag |=LPFC_IO_LIBDFC ; + ctiocb->iocb_flag |=LPFC_IO_LIBDFC ; ctiocb->vport = phba->pport; ctiocb->context1 = dd_data; ctiocb->context2 = cmp; ctiocb->context3 = bmp; ctiocb->context_un.ndlp = ndlp; - ctiocb->cmd_cmpl = lpfc_issue_ct_rsp_cmp; + ctiocb->iocb_cmpl = lpfc_issue_ct_rsp_cmp; dd_data->type =TYPE_IOCB ; dd_data->set_job = job;
@@ -1582,9 +1582,9 @@ lpfc_issue_ct_rsp(struct lpfc_hba *phba, struct bsg_job *job, uint32_t tag,if (rc ==IOCB_SUCCESS ) {spin_lock_irqsave (&phba->hbalock, flags);/* make sure the I/O had not been completed/released */ -if (ctiocb->cmd_flag &LPFC_IO_LIBDFC ) { +if (ctiocb->iocb_flag &LPFC_IO_LIBDFC ) {/* open up abort window to timeout handler */ - ctiocb->cmd_flag |=LPFC_IO_CMD_OUTSTANDING ; + ctiocb->iocb_flag |=LPFC_IO_CMD_OUTSTANDING ; }spin_unlock_irqrestore (&phba->hbalock, flags);return 0 ;/* done for now */
@@ -2713,9 +2713,9 @@ static int lpfcdiag_loop_get_xri(struct lpfc_hba *phba, uint16_t rpi, cmd->ulpClass =CLASS3 ; cmd->ulpContext = rpi; - cmdiocbq->cmd_flag |=LPFC_IO_LIBDFC ; + cmdiocbq->iocb_flag |=LPFC_IO_LIBDFC ; cmdiocbq->vport = phba->pport; - cmdiocbq->cmd_cmpl =NULL ; + cmdiocbq->iocb_cmpl =NULL ; iocb_stat = lpfc_sli_issue_iocb_wait(phba, LPFC_ELS_RING, cmdiocbq, rspiocbq,
@@ -3286,10 +3286,10 @@ lpfc_bsg_diag_loopback_run(struct bsg_job *job) cmdiocbq->sli4_xritag =NO_XRI ; cmd->unsli3.rcvsli3.ox_id =0xffff ; } - cmdiocbq->cmd_flag |=LPFC_IO_LIBDFC ; - cmdiocbq->cmd_flag |=LPFC_IO_LOOPBACK ; + cmdiocbq->iocb_flag |=LPFC_IO_LIBDFC ; + cmdiocbq->iocb_flag |=LPFC_IO_LOOPBACK ; cmdiocbq->vport = phba->pport; - cmdiocbq->cmd_cmpl =NULL ; + cmdiocbq->iocb_cmpl =NULL ; iocb_stat =lpfc_sli_issue_iocb_wait (phba,LPFC_ELS_RING , cmdiocbq, rspiocbq, (phba->fc_ratov *2 ) +LPFC_DRVR_TIMEOUT );
@@ -5273,11 +5273,11 @@ lpfc_menlo_cmd(struct bsg_job *job) cmd->ulpClass =CLASS3 ; cmd->ulpOwner =OWN_CHIP ; cmd->ulpLe =1 ;/* Limited Edition */ - cmdiocbq->cmd_flag |=LPFC_IO_LIBDFC ; + cmdiocbq->iocb_flag |=LPFC_IO_LIBDFC ; cmdiocbq->vport = phba->pport;/* We want the firmware to timeout before we do */ cmd->ulpTimeout =MENLO_TIMEOUT -5 ; - cmdiocbq->cmd_cmpl = lpfc_bsg_menlo_cmd_cmp; + cmdiocbq->iocb_cmpl = lpfc_bsg_menlo_cmd_cmp; cmdiocbq->context1 = dd_data; cmdiocbq->context2 = cmp; cmdiocbq->context3 = bmp;
@@ -6001,7 +6001,7 @@ lpfc_bsg_timeout(struct bsg_job *job)spin_lock_irqsave (&phba->hbalock, flags);/* make sure the I/O abort window is still open */ -if (!(cmdiocb->cmd_flag &LPFC_IO_CMD_OUTSTANDING )) { +if (!(cmdiocb->iocb_flag &LPFC_IO_CMD_OUTSTANDING )) {spin_unlock_irqrestore (&phba->hbalock, flags);return -EAGAIN ; }
drivers/scsi/lpfc/lpfc_crtn.h +1 -1
@@ -210,7 +210,7 @@ int lpfc_config_port_post(struct lpfc_hba *);int lpfc_hba_down_prep (struct lpfc_hba *);int lpfc_hba_down_post (struct lpfc_hba *);void lpfc_hba_init (struct lpfc_hba *,uint32_t *); -int lpfc_sli3_post_buffer (struct lpfc_hba *phba,struct lpfc_sli_ring *pring,int cnt); +int lpfc_post_buffer (struct lpfc_hba *,struct lpfc_sli_ring *,int );void lpfc_decode_firmware_rev (struct lpfc_hba *,char *,int );int lpfc_online (struct lpfc_hba *);void lpfc_unblock_mgmt_io (struct lpfc_hba *);
drivers/scsi/lpfc/lpfc_ct.c +4 -4
@@ -239,7 +239,7 @@ lpfc_ct_reject_event(struct lpfc_nodelist *ndlp, cmdiocbq->context1 =lpfc_nlp_get (ndlp); cmdiocbq->context2 = (uint8_t *)mp; cmdiocbq->context3 = (uint8_t *)bmp; - cmdiocbq->cmd_cmpl = lpfc_ct_unsol_cmpl; + cmdiocbq->iocb_cmpl = lpfc_ct_unsol_cmpl; icmd->ulpContext = rx_id;/* Xri / rx_id */ icmd->unsli3.rcvsli3.ox_id = ox_id; icmd->un.ulpWord[3] =
@@ -370,7 +370,7 @@ lpfc_ct_unsol_event(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,/* Not enough posted buffers; Try posting more buffers */ phba->fc_stat.NoRcvBuf++;if (!(phba->sli3_options &LPFC_SLI3_HBQ_ENABLED )) -lpfc_sli3_post_buffer (phba, pring,2 ); +lpfc_post_buffer (phba, pring,2 );return ; }
@@ -447,7 +447,7 @@ lpfc_ct_unsol_event(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,lpfc_ct_unsol_buffer (phba, iocbq, mp, size);lpfc_in_buf_free (phba, mp); } -lpfc_sli3_post_buffer (phba, pring, i); +lpfc_post_buffer (phba, pring, i); }list_del (&head); }
@@ -652,7 +652,7 @@ lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,"Data: x%x x%x\n" , ndlp->nlp_DID, icmd->ulpIoTag, vport->port_state); - geniocb->cmd_cmpl = cmpl; + geniocb->iocb_cmpl = cmpl; geniocb->drvrTimeout = icmd->ulpTimeout +LPFC_DRVR_TIMEOUT ; geniocb->vport = vport; geniocb->retry = retry;
drivers/scsi/lpfc/lpfc_els.c +70 -69
455 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_init.c +6 -5
@@ -982,7 +982,7 @@ lpfc_hba_clean_txcmplq(struct lpfc_hba *phba)spin_lock_irq (&pring->ring_lock);list_for_each_entry_safe (piocb, next_iocb, &pring->txcmplq, list) - piocb->cmd_flag &= ~LPFC_IO_ON_TXCMPLQ ; + piocb->iocb_flag &= ~LPFC_IO_ON_TXCMPLQ ;list_splice_init (&pring->txcmplq, &completions); pring->txcmplq_cnt =0 ;spin_unlock_irq (&pring->ring_lock);
@@ -2643,7 +2643,7 @@ lpfc_get_hba_model_desc(struct lpfc_hba *phba, uint8_t *mdp, uint8_t *descp) }/** -* lpfc_sli3_post_buffer - Post IOCB(s) with DMA buffer descriptor(s) to a IOCB ring +* lpfc_post_buffer - Post IOCB(s) with DMA buffer descriptor(s) to a IOCB ring * @phba: pointer to lpfc hba data structure. * @pring: pointer to a IOCB ring. * @cnt: the number of IOCBs to be posted to the IOCB ring.
@@ -2655,7 +2655,7 @@ lpfc_get_hba_model_desc(struct lpfc_hba *phba, uint8_t *mdp, uint8_t *descp)* The number of IOCBs NOT able to be posted to the IOCB ring. **/ int -lpfc_sli3_post_buffer (struct lpfc_hba *phba,struct lpfc_sli_ring *pring,int cnt) +lpfc_post_buffer (struct lpfc_hba *phba,struct lpfc_sli_ring *pring,int cnt) {IOCB_t *icmd;struct lpfc_iocbq *iocb;
@@ -2761,7 +2761,7 @@ lpfc_post_rcv_buf(struct lpfc_hba *phba)struct lpfc_sli *psli = &phba->sli;/* Ring 0, ELS / CT buffers */ -lpfc_sli3_post_buffer (phba, &psli->sli3_ring[LPFC_ELS_RING ],LPFC_BUF_RING0 ); +lpfc_post_buffer (phba, &psli->sli3_ring[LPFC_ELS_RING ],LPFC_BUF_RING0 );/* Ring 2 - FCP no buffers needed */ return 0 ;
@@ -4215,7 +4215,8 @@ lpfc_io_buf_replenish(struct lpfc_hba *phba, struct list_head *cbuf) qp = &phba->sli4_hba.hdwq[idx]; lpfc_cmd->hdwq_no = idx; lpfc_cmd->hdwq = qp; - lpfc_cmd->cur_iocbq.cmd_cmpl =NULL ; + lpfc_cmd->cur_iocbq.wqe_cmpl =NULL ; + lpfc_cmd->cur_iocbq.iocb_cmpl =NULL ;spin_lock (&qp->io_buf_list_put_lock);list_add_tail (&lpfc_cmd->list, &qp->lpfc_io_buf_list_put);
drivers/scsi/lpfc/lpfc_nportdisc.c +2 -2
@@ -2139,9 +2139,9 @@ lpfc_cmpl_prli_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, npr =NULL ; nvpr =NULL ; temp_ptr =lpfc_check_elscmpl_iocb (phba, cmdiocb, rspiocb); -if (cmdiocb->cmd_flag &LPFC_PRLI_FCP_REQ ) +if (cmdiocb->iocb_flag &LPFC_PRLI_FCP_REQ ) npr = (PRLI *) temp_ptr; -else if (cmdiocb->cmd_flag &LPFC_PRLI_NVME_REQ ) +else if (cmdiocb->iocb_flag &LPFC_PRLI_NVME_REQ ) nvpr = (struct lpfc_nvme_prli *) temp_ptr; irsp = &rspiocb->iocb;
drivers/scsi/lpfc/lpfc_nvme.c +16 -18
@@ -352,12 +352,11 @@ __lpfc_nvme_ls_req_cmp(struct lpfc_hba *phba, struct lpfc_vport *vport,static void lpfc_nvme_ls_req_cmp (struct lpfc_hba *phba,struct lpfc_iocbq *cmdwqe, -struct lpfc_iocbq *rspwqe) +struct lpfc_wcqe_complete *wcqe) {struct lpfc_vport *vport = cmdwqe->vport;struct lpfc_nvme_lport *lport;uint32_t status; -struct lpfc_wcqe_complete *wcqe = &rspwqe->wcqe_cmpl; status =bf_get (lpfc_wcqe_c_status, wcqe) &LPFC_IOCB_STATUS_MASK ;
@@ -381,7 +380,7 @@ lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,struct lpfc_dmabuf *inp, struct nvmefc_ls_req *pnvme_lsreq, void (*cmpl)(struct lpfc_hba *, struct lpfc_iocbq *, -struct lpfc_iocbq *), +struct lpfc_wcqe_complete *), struct lpfc_nodelist *ndlp, uint32_t num_entry, uint32_t tmo, uint8_t retry) {
@@ -402,7 +401,7 @@ lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,memset (wqe,0 ,sizeof (union lpfc_wqe )); genwqe->context3 = (uint8_t *)bmp; - genwqe->cmd_flag |=LPFC_IO_NVME_LS ; + genwqe->iocb_flag |=LPFC_IO_NVME_LS ;/* Save for completion so we can release these resources */ genwqe->context1 =lpfc_nlp_get (ndlp);
@@ -433,7 +432,7 @@ lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, first_len = xmit_len; } - genwqe->num_bdes = num_entry; + genwqe->rsvd2 = num_entry; genwqe->hba_wqidx =0 ;/* Words 0 - 2 */
@@ -484,7 +483,8 @@ lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,/* Issue GEN REQ WQE for NPORT <did> */ - genwqe->cmd_cmpl = cmpl; + genwqe->wqe_cmpl = cmpl; + genwqe->iocb_cmpl =NULL ; genwqe->drvrTimeout = tmo +LPFC_DRVR_TIMEOUT ; genwqe->vport = vport; genwqe->retry = retry;
@@ -534,7 +534,7 @@ __lpfc_nvme_ls_req(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,struct nvmefc_ls_req *pnvme_lsreq, void (*gen_req_cmp)(struct lpfc_hba *phba, struct lpfc_iocbq *cmdwqe, - struct lpfc_iocbq *rspwqe)) + struct lpfc_wcqe_complete *wcqe)) { struct lpfc_dmabuf *bmp;struct ulp_bde64 *bpl;
@@ -722,7 +722,7 @@ __lpfc_nvme_ls_abort(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,spin_lock (&pring->ring_lock);list_for_each_entry_safe (wqe, next_wqe, &pring->txcmplq, list) {if (wqe->context2 == pnvme_lsreq) { - wqe->cmd_flag |=LPFC_DRIVER_ABORTED ; + wqe->iocb_flag |=LPFC_DRIVER_ABORTED ; foundit = true;break ; }
@@ -906,7 +906,7 @@ lpfc_nvme_adj_fcp_sgls(struct lpfc_vport *vport,/* -* lpfc_nvme_io_cmd_cmpl - Complete an NVME-over-FCP IO +* lpfc_nvme_io_cmd_wqe_cmpl - Complete an NVME-over-FCP IO * * Driver registers this routine as it io request handler. This * routine issues an fcp WQE with data from the @lpfc_nvme_fcpreq
@@ -917,12 +917,11 @@ lpfc_nvme_adj_fcp_sgls(struct lpfc_vport *vport,* TODO: What are the failure codes. **/ static void -lpfc_nvme_io_cmd_cmpl (struct lpfc_hba *phba,struct lpfc_iocbq *pwqeIn, -struct lpfc_iocbq *pwqeOut) +lpfc_nvme_io_cmd_wqe_cmpl (struct lpfc_hba *phba,struct lpfc_iocbq *pwqeIn, +struct lpfc_wcqe_complete *wcqe) {struct lpfc_io_buf *lpfc_ncmd = (struct lpfc_io_buf *)pwqeIn->context1; -struct lpfc_wcqe_complete *wcqe = &pwqeOut->wcqe_cmpl;struct lpfc_vport *vport = pwqeIn->vport;struct nvmefc_fcp_req *nCmd;struct nvme_fc_ersp_iu *ep;
@@ -1874,7 +1873,7 @@ lpfc_nvme_fcp_abort(struct nvme_fc_local_port *pnvme_lport, }/* Don't abort IOs no longer on the pending queue. */ -if (!(nvmereq_wqe->cmd_flag &LPFC_IO_ON_TXCMPLQ )) { +if (!(nvmereq_wqe->iocb_flag &LPFC_IO_ON_TXCMPLQ )) { lpfc_printf_vlog(vport, KERN_ERR, LOG_TRACE_EVENT, "6142 NVME IO req x%px not queued - skipping " "abort req xri x%x\n",
@@ -1888,7 +1887,7 @@ lpfc_nvme_fcp_abort(struct nvme_fc_local_port *pnvme_lport, nvmereq_wqe->hba_wqidx, pnvme_rport->port_id);/* Outstanding abort is in progress */ -if (nvmereq_wqe->cmd_flag &LPFC_DRIVER_ABORTED ) { +if (nvmereq_wqe->iocb_flag &LPFC_DRIVER_ABORTED ) {lpfc_printf_vlog (vport,KERN_ERR ,LOG_TRACE_EVENT ,"6144 Outstanding NVME I/O Abort Request " "still pending on nvme_fcreq x%px, "
@@ -1983,8 +1982,8 @@ lpfc_get_nvme_buf(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp,/* Setup key fields in buffer that may have been changed * if other protocols used this buffer. */ - pwqeq->cmd_flag =LPFC_IO_NVME ; - pwqeq->cmd_cmpl = lpfc_nvme_io_cmd_cmpl; + pwqeq->iocb_flag =LPFC_IO_NVME ; + pwqeq->wqe_cmpl = lpfc_nvme_io_cmd_wqe_cmpl; lpfc_ncmd->start_time = jiffies; lpfc_ncmd->flags =0 ;
@@ -2750,7 +2749,6 @@ lpfc_nvme_cancel_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *pwqeIn,if (phba->sli.sli_flag &LPFC_SLI_ACTIVE )bf_set (lpfc_wcqe_c_xb, wcqep,1 ); -memcpy (&pwqeIn->wcqe_cmpl, wcqep,sizeof (*wcqep)); - (pwqeIn->cmd_cmpl)(phba, pwqeIn, pwqeIn); + (pwqeIn->wqe_cmpl)(phba, pwqeIn, wcqep);#endif }
drivers/scsi/lpfc/lpfc_nvme.h +3 -3
@@ -234,7 +234,7 @@ int __lpfc_nvme_ls_req(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,struct nvmefc_ls_req *pnvme_lsreq, void (*gen_req_cmp)(struct lpfc_hba *phba,struct lpfc_iocbq *cmdwqe, - struct lpfc_iocbq *rspwqe)); + struct lpfc_wcqe_complete *wcqe));void __lpfc_nvme_ls_req_cmp (struct lpfc_hba *phba,struct lpfc_vport *vport,struct lpfc_iocbq *cmdwqe,struct lpfc_wcqe_complete *wcqe); int __lpfc_nvme_ls_abort(struct lpfc_vport *vport,
@@ -248,6 +248,6 @@ int __lpfc_nvme_xmt_ls_rsp(struct lpfc_async_xchg_ctx *axchg,struct nvmefc_ls_rsp *ls_rsp, void (*xmt_ls_rsp_cmp)(struct lpfc_hba *phba,struct lpfc_iocbq *cmdwqe, - struct lpfc_iocbq *rspwqe)); + struct lpfc_wcqe_complete *wcqe));void __lpfc_nvme_xmt_ls_rsp_cmp (struct lpfc_hba *phba, -struct lpfc_iocbq *cmdwqe,struct lpfc_iocbq *rspwqe); +struct lpfc_iocbq *cmdwqe,struct lpfc_wcqe_complete *wcqe);
drivers/scsi/lpfc/lpfc_nvmet.c +39 -44
291 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_scsi.c +37 -38
266 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli.c +175 -165
910 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli.h +13 -11
@@ -35,7 +35,7 @@ typedef enum _lpfc_ctx_cmd {LPFC_CTX_HOST } lpfc_ctx_cmd; -union lpfc_vmid_tag { +union lpfc_vmid_iocb_tag {uint32_t app_id;uint8_t cs_ctl_vmid;struct lpfc_vmid_context *vmid_context;/* UVEM context information */
@@ -69,16 +69,16 @@ struct lpfc_iocbq {uint16_t sli4_xritag;/* pre-assigned XRI, (OXID) tag. */ uint16_t hba_wqidx;/* index to HBA work queue */ struct lpfc_cq_event cq_event; +struct lpfc_wcqe_complete wcqe_cmpl;/* WQE cmpl */ uint64_t isr_timestamp;union lpfc_wqe128 wqe;/* SLI-4 */ IOCB_t iocb;/* SLI-3 */ -struct lpfc_wcqe_complete wcqe_cmpl;/* WQE cmpl */ -uint8_t num_bdes; +uint8_t rsvd2;uint8_t priority;/* OAS priority */ uint8_t retry;/* retry counter for IOCB cmd - if needed */ -u32 cmd_flag; +uint32_t iocb_flag;#define LPFC_IO_LIBDFC 1/* libdfc iocb */ #define LPFC_IO_WAKE 2/* Synchronous I/O completed */ #define LPFC_IO_WAKE_TMO LPFC_IO_WAKE/* Synchronous I/O timed out */
@@ -123,13 +123,15 @@ struct lpfc_iocbq {struct lpfc_node_rrq *rrq; } context_un; -union lpfc_vmid_tag vmid_tag; -void (*fabric_cmd_cmpl)(struct lpfc_hba *phba,struct lpfc_iocbq *cmd, -struct lpfc_iocbq *rsp); -void (*wait_cmd_cmpl)(struct lpfc_hba *phba,struct lpfc_iocbq *cmd, -struct lpfc_iocbq *rsp); -void (*cmd_cmpl)(struct lpfc_hba *phba,struct lpfc_iocbq *cmd, -struct lpfc_iocbq *rsp); +union lpfc_vmid_iocb_tag vmid_tag; +void (*fabric_iocb_cmpl)(struct lpfc_hba *,struct lpfc_iocbq *, +struct lpfc_iocbq *); +void (*wait_iocb_cmpl)(struct lpfc_hba *,struct lpfc_iocbq *, +struct lpfc_iocbq *); +void (*iocb_cmpl)(struct lpfc_hba *,struct lpfc_iocbq *, +struct lpfc_iocbq *); +void (*wqe_cmpl)(struct lpfc_hba *,struct lpfc_iocbq *, +struct lpfc_wcqe_complete *); };#define SLI_IOCB_RET_IOCB 1/* Return IOCB if cmd ring full */
Signature · 1 line
2.35.3
Greg KH
maintainerQuoted 8 lines · James Smart
An issue was identified with lpfc in the LTS 5.15 kernel. There is an FLOGI failure which prevents FC link bringup.
In the past several kernel releases, we have been reworking areas of the driver to fix issues in the broader design rather than continuing to create a patchwork on an issue-by-issue basis. This means there are a lot of inter-related patches.
Quoted 5 lines
In this case, it appears that a portion of the "path split" rework was pulled into 5.15, and the portion that wasn't picked up introduced the error.
This patch set reverts the patches for the partial pull in.
All now queued up, thanks.
greg k-h
Quoted 13 lines · Greg KH
Quoted 12 lines · James Smart
An issue was identified with lpfc in the LTS 5.15 kernel. There is an FLOGI failure which prevents FC link bringup.
In the past several kernel releases, we have been reworking areas of the driver to fix issues in the broader design rather than continuing to create a patchwork on an issue-by-issue basis. This means there are a lot of inter-related patches.
In this case, it appears that a portion of the "path split" rework was pulled into 5.15, and the portion that wasn't picked up introduced the error.
Quoted 5 lines
Quoted 1 line
This patch set reverts the patches for the partial pull in.
All now queued up, thanks.
greg k-h
Thank You.
-- james