diff options
author | James Smart <james.smart@emulex.com> | 2013-04-17 20:16:15 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-02 15:46:20 -0400 |
commit | 96f7077f671254e957a2815e54bb20e8d50f0bbc (patch) | |
tree | 491594535761bfcddeea83fbc56976211d8cb961 /drivers/scsi/lpfc/lpfc_attr.c | |
parent | 09294d4623a3149ae2f5d35acf9d119bd957ddd8 (diff) |
[SCSI] lpfc 8.3.39: Fix driver issues with large s/g lists for BlockGuard
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index ad5b0f94a98d..3b10aa5745b5 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -4073,16 +4073,23 @@ MODULE_PARM_DESC(lpfc_delay_discovery, | |||
4073 | 4073 | ||
4074 | /* | 4074 | /* |
4075 | * lpfc_sg_seg_cnt - Initial Maximum DMA Segment Count | 4075 | * lpfc_sg_seg_cnt - Initial Maximum DMA Segment Count |
4076 | * This value can be set to values between 64 and 256. The default value is | 4076 | * This value can be set to values between 64 and 4096. The default value is |
4077 | * 64, but may be increased to allow for larger Max I/O sizes. The scsi layer | 4077 | * 64, but may be increased to allow for larger Max I/O sizes. The scsi layer |
4078 | * will be allowed to request I/Os of sizes up to (MAX_SEG_COUNT * SEG_SIZE). | 4078 | * will be allowed to request I/Os of sizes up to (MAX_SEG_COUNT * SEG_SIZE). |
4079 | * Because of the additional overhead involved in setting up T10-DIF, | ||
4080 | * this parameter will be limited to 128 if BlockGuard is enabled under SLI4 | ||
4081 | * and will be limited to 512 if BlockGuard is enabled under SLI3. | ||
4079 | */ | 4082 | */ |
4080 | LPFC_ATTR_R(sg_seg_cnt, LPFC_DEFAULT_SG_SEG_CNT, LPFC_DEFAULT_SG_SEG_CNT, | 4083 | LPFC_ATTR_R(sg_seg_cnt, LPFC_DEFAULT_SG_SEG_CNT, LPFC_DEFAULT_SG_SEG_CNT, |
4081 | LPFC_MAX_SG_SEG_CNT, "Max Scatter Gather Segment Count"); | 4084 | LPFC_MAX_SG_SEG_CNT, "Max Scatter Gather Segment Count"); |
4082 | 4085 | ||
4083 | LPFC_ATTR_R(prot_sg_seg_cnt, LPFC_DEFAULT_PROT_SG_SEG_CNT, | 4086 | /* |
4084 | LPFC_DEFAULT_PROT_SG_SEG_CNT, LPFC_MAX_PROT_SG_SEG_CNT, | 4087 | * This parameter will be depricated, the driver cannot limit the |
4085 | "Max Protection Scatter Gather Segment Count"); | 4088 | * protection data s/g list. |
4089 | */ | ||
4090 | LPFC_ATTR_R(prot_sg_seg_cnt, LPFC_DEFAULT_SG_SEG_CNT, | ||
4091 | LPFC_DEFAULT_SG_SEG_CNT, LPFC_MAX_SG_SEG_CNT, | ||
4092 | "Max Protection Scatter Gather Segment Count"); | ||
4086 | 4093 | ||
4087 | struct device_attribute *lpfc_hba_attrs[] = { | 4094 | struct device_attribute *lpfc_hba_attrs[] = { |
4088 | &dev_attr_bg_info, | 4095 | &dev_attr_bg_info, |