]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
scsi: lpfc: Fix WQ/CQ creation for older asic's.
authorJames Smart <jsmart2021@gmail.com>
Mon, 9 Apr 2018 21:24:28 +0000 (14:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 18 Apr 2018 23:34:04 +0000 (19:34 -0400)
commitbf316c78517d9437656293f65a70d6ecdc2ec58e
tree8ae623e9b580ec1782dbc2d8711cff8a9c9d5e88
parent01466024d2de1c05652d69411461e8e7908f0d1e
scsi: lpfc: Fix WQ/CQ creation for older asic's.

The patch to enlarge WQ/CQ creation keys off of an adapter response that
indicates support for the larger values. Older adapters return an
incorrect response and are limited in size.  Thus the adapters fail the
WQ creation steps.

Augment the WQ sizing checks with a check on the older adapter types and
limit them to the restricted sizes.

Fixes: c176ffa0841c ("scsi: lpfc: Increase CQ and WQ sizes for SCSI")
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_hw4.h
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_sli4.h