Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 645881

Summary: [Emulex 5.6 feat] Update lpfc driver to version 8.2.0.86
Product: Red Hat Enterprise Linux 5 Reporter: Joseph Mann <joseph.mann>
Component: kernelAssignee: Rob Evers <revers>
Status: CLOSED ERRATA QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: high Docs Contact:
Priority: high    
Version: 5.6CC: andriusb, bzeranski, cward, dhoward, joseph.mann, laurie.barry, plyons, qcai, revers, vaios.papadimitriou
Target Milestone: rcKeywords: FutureFeature, OtherQA, ZStream
Target Release: 5.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 21:58:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 657026    
Attachments:
Description Flags
Patchset to update Emulex LPFC driver to 8.2.0.86 (applies on top of 8.2.0.85) none

Description Joseph Mann 2010-10-22 18:36:09 UTC
Created attachment 455158 [details]
Patchset to update Emulex LPFC driver to 8.2.0.86 (applies on top of 8.2.0.85)

The attached tarball contains:

1. The set of patches; each patch corresponds to an individual fix as per
agreement.

2. A README file that describes the patch naming scheme, and directions and
instructions on how to apply the patches.

3. The ChangeLog of the fixes included in this patchset.


The corresponding patches have been submitted upstream. Note that this is here
for comment purposes only as to indicate the corresponding upstream submission:

-------- Original Message -------- 
Subject: 	[PATCH 0/7] lpfc 8.3.18: Update lpfc to revision 8.3.18
Date: 	Fri, 22 Oct 2010 08:05:25 -0700
From: 	James Smart <james.smart>
Reply-To: 	Smart, James <James.Smart>
To: 	linux-scsi.org <linux-scsi.org>

This patch set updates the lpfc driver to revision 8.3.18

The patches for 8.3.18 contain:
- FC/FCoE Discovery fixes
- Add support of received ELS commands
- Add logic to detect last devloss timeout
- Adapter Shutdown and Unregistration cleanup
- Fix critical errors
- Add new WQE support
- Update lpfc driver version to 8.3.18

The bugfixes were cut against scsi-misc-2.6

-- james s


  Signed-off-by: Alex Iannicelli <alex.iannicelli>
  Signed-off-by: James Smart <james.smart>

Comment 1 Rob Evers 2010-10-22 19:17:47 UTC
[revers@revers-desk lpfc-8.2.0.85-8.2.0.86]$ ls -l
total 20
-rw-r--r-- 1 revers revers  208 Oct 22 10:52 ChangeLog
-rw-r--r-- 1 revers revers  448 Oct 22 10:52 r9219_r9217_CR111249.patch
-rw-r--r-- 1 revers revers 1151 Oct 22 10:52 r9222_CR111250.patch
-rw-r--r-- 1 revers revers  451 Oct 22 10:52 r9230.patch
-rw-r--r-- 1 revers revers 1110 Oct 22 10:52 README
[revers@revers-desk lpfc-8.2.0.85-8.2.0.86]$ 

Did some patches get left out?

Comment 2 Andrius Benokraitis 2010-10-27 02:55:00 UTC
Emulex: *please* add me on CC when any new bugzillas are created!

Comment 3 Joseph Mann 2010-10-27 13:34:18 UTC
(In reply to comment #1)
> [revers@revers-desk lpfc-8.2.0.85-8.2.0.86]$ ls -l
> total 20
> -rw-r--r-- 1 revers revers  208 Oct 22 10:52 ChangeLog
> -rw-r--r-- 1 revers revers  448 Oct 22 10:52 r9219_r9217_CR111249.patch
> -rw-r--r-- 1 revers revers 1151 Oct 22 10:52 r9222_CR111250.patch
> -rw-r--r-- 1 revers revers  451 Oct 22 10:52 r9230.patch
> -rw-r--r-- 1 revers revers 1110 Oct 22 10:52 README
> [revers@revers-desk lpfc-8.2.0.85-8.2.0.86]$ 
> 
> Did some patches get left out?

Rob,

There are no patches missing. This driver rev only includes a few critical fixes, a subset of what was sent upstream.

Joe

Comment 9 Rob Evers 2010-11-09 16:42:25 UTC
Vaios,

A question came up about this during internal review.  See below.  Can you provide a summary of this so we can post this?

Thanks, Rob

> ---
> >  drivers/scsi/lpfc/lpfc_sli.c |   13 ++++++-------
> >  1 files changed, 6 insertions(+), 7 deletions(-)
> > 
> > diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
> > index 572aa8b..9d7b043 100644
> > --- a/drivers/scsi/lpfc/lpfc_sli.c
> > +++ b/drivers/scsi/lpfc/lpfc_sli.c
> > @@ -1716,6 +1716,7 @@ lpfc_sli_def_mbox_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
> >  	struct lpfc_vport  *vport = pmb->vport;
> >  	struct lpfc_dmabuf *mp;
> >  	struct lpfc_nodelist *ndlp;
> > +	struct Scsi_Host *shost;
> >  	uint16_t rpi, vpi;
> >  	int rc;
> >  
> > @@ -1747,16 +1748,14 @@ lpfc_sli_def_mbox_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
> >  			return;
> >  	}
> >  
> > -	/* Unreg VPI, if the REG_VPI succeed after VLink failure */
> >  	if ((pmb->u.mb.mbxCommand == MBX_REG_VPI) &&
> >  		!(phba->pport->load_flag & FC_UNLOADING) &&
> >  		!pmb->u.mb.mbxStatus) {
> > -		lpfc_unreg_vpi(phba, pmb->u.mb.un.varRegVpi.vpi, pmb);
> > -		pmb->vport = vport;
> > -		pmb->mbox_cmpl = lpfc_sli_def_mbox_cmpl;
> > -		rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT);
> > -		if (rc != MBX_NOT_FINISHED)
> > -			return;
> > +		shost = lpfc_shost_from_vport(vport);
> > +		spin_lock_irq(shost->host_lock);
> > +		vport->vpi_state |= LPFC_VPI_REGISTERED;
> > +		vport->fc_flag &= ~FC_VPORT_NEEDS_REG_VPI;
> > +		spin_unlock_irq(shost->host_lock);
> >  	}
> >  
> >  	/* Check security permission status on INIT_LINK mailbox command */

I don't quite understand this one. Previously, they were bailing entirely
if REG_VPI was successful after VLink failure. Now, they're doing exactly
the opposite, clearing the NEEDS_REG_VPI flag and setting state to
REGISTERED... So they were bailing on something that wasn't actually a
failure, I take it?

Comment 10 Jarod Wilson 2010-11-09 17:13:12 UTC
in kernel-2.6.18-231.el5
You can download this test kernel (or newer) from http://people.redhat.com/jwilson/el5

Detailed testing feedback is always welcomed.

Comment 12 Joseph Mann 2010-11-09 19:12:02 UTC
(In reply to comment #9)
> Vaios,
> 
> A question came up about this during internal review.  See below.  Can you
> provide a summary of this so we can post this?
> 
> Thanks, Rob
> 
...
> I don't quite understand this one. Previously, they were bailing entirely
> if REG_VPI was successful after VLink failure. Now, they're doing exactly
> the opposite, clearing the NEEDS_REG_VPI flag and setting state to
> REGISTERED... So they were bailing on something that wasn't actually a
> failure, I take it?

Rob,

Previously, when a vport received a clear virtual link while REG_VPI is pending, the driver sent an FDISC after unregistering the VPI. This will cause an FDISC to be sent for an unregistered VPI. This fix allows the REG_VPI to complete when a CVL is received.

Joe

Comment 15 Chris Ward 2010-12-02 15:25:19 UTC
Reminder! There should be a fix present for this BZ in snapshot 3 -- unless otherwise noted in a previous comment.

Please test and update this BZ with test results as soon as possible.

Comment 17 errata-xmlrpc 2011-01-13 21:58:17 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0017.html