]> git.baikalelectronics.ru Git - 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)
commit6cbfbcd0c13bdfaf2214977c5ff4d417932b22a4
tree8ae623e9b580ec1782dbc2d8711cff8a9c9d5e88
parent839b8e034926b3f02763ba554f15b2cd370d835a
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: 3009bf95d74f ("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