Skip to content

Commit 5d8379a

Browse files
jsmart-ghLinuxMinion
authored andcommitted
Fix Express lane queue creation.
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. Signed-off-by: Dick Kennedy <[email protected]> Signed-off-by: James Smart <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> (cherry picked from commit 7e04e21) Orabug: 26241598 Signed-off-by: Kirtikar Kashyap <[email protected]> Reviewed-by: Jack Vogel <[email protected]>
1 parent ed7a592 commit 5d8379a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/scsi/lpfc/lpfc_init.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11373,6 +11373,7 @@ int
1137311373
lpfc_fof_queue_create(struct lpfc_hba *phba)
1137411374
{
1137511375
struct lpfc_queue *qdesc;
11376+
uint32_t wqesize;
1137611377

1137711378
/* Create FOF EQ */
1137811379
qdesc = lpfc_sli4_queue_alloc(phba, phba->sli4_hba.eq_esize,
@@ -11393,8 +11394,11 @@ lpfc_fof_queue_create(struct lpfc_hba *phba)
1139311394
phba->sli4_hba.oas_cq = qdesc;
1139411395

1139511396
/* Create OAS WQ */
11396-
qdesc = lpfc_sli4_queue_alloc(phba, phba->sli4_hba.wq_esize,
11397+
wqesize = (phba->fcp_embed_io) ?
11398+
LPFC_WQE128_SIZE : phba->sli4_hba.wq_esize;
11399+
qdesc = lpfc_sli4_queue_alloc(phba, wqesize,
1139711400
phba->sli4_hba.wq_ecount);
11401+
1139811402
if (!qdesc)
1139911403
goto out_error;
1140011404

0 commit comments

Comments
 (0)