Patch "Fix Express lane queue creation." has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
Fix Express lane queue creation.
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
fix-express-lane-queue-creation.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Mar 22 14:40:23 CET 2018
From: James Smart <[email protected]>
Date: Fri, 21 Apr 2017 16:05:05 -0700
Subject: Fix Express lane queue creation.
From: James Smart <[email protected]>
[ Upstream commit 7e04e21afa82ef024416f5413b5bdb66e0505bcd ]
The older sli4 adapters only supported the 64 byte WQE entry size. The new adapter (fw) support both 64 and 128 byte WQE entry sizies. The Express lane WQ was not being created with the 128 byte WQE sizes when it was supported.
Not having the right WQE size created for the express lane work queue caused the the firmware to overwrite the lun indentifier in the FCP header.
This patch correctly creates the express lane work queue with the supported size.
--- drivers/scsi/lpfc/lpfc_init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_init.c +5 -1
@@ -11312,6 +11312,7 @@ int lpfc_fof_queue_create(struct lpfc_hba *phba) {struct lpfc_queue *qdesc; +uint32_t wqesize;/* Create FOF EQ */ qdesc = lpfc_sli4_queue_alloc(phba, phba->sli4_hba.eq_esize,
@@ -11332,8 +11333,11 @@ lpfc_fof_queue_create(struct lpfc_hba *p phba->sli4_hba.oas_cq = qdesc;/* Create OAS WQ */ - qdesc =lpfc_sli4_queue_alloc (phba, phba->sli4_hba.wq_esize, + wqesize = (phba->fcp_embed_io) ? +LPFC_WQE128_SIZE : phba->sli4_hba.wq_esize; + qdesc =lpfc_sli4_queue_alloc (phba, wqesize, phba->sli4_hba.wq_ecount); +if (!qdesc) goto out_error;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/fix-driver-usage-of-128b-wqes-when-wq_create-is-v1.patch queue-4.9/fix-express-lane-queue-creation.patch