diff options
author | Salyzyn, Mark <mark_salyzyn@adaptec.com> | 2007-12-13 19:14:18 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:28:07 -0500 |
commit | 94cf6ba11b068b8a8f68a1e88bffb6827e92124b (patch) | |
tree | c5ec05bb60248471ba9992c56dfeb1b44980d24b /drivers/scsi/aacraid/commsup.c | |
parent | 00f5970193e22c48f399a2430635d6416b51befe (diff) |
[SCSI] aacraid: fix driver failure with Dell PowerEdge Expandable RAID Controller 3/Di
As reported in http://bugzilla.kernel.org/show_bug.cgi?id=3D9133 it was
discovered that the PERC line of controllers lacked a key 64 bit
ScatterGather capable SCSI pass-through function. The adapters are still
capable of 64 bit ScatterGather I/O commands, but these two can not be
mixed. This problem was exacerbated by the introduction of the SCSI
Generic access to the DASD physical devices.
The fix for users before this patch is applied is aacraid.dacmode=3D0 on
the kernel command line to disable 64 bit I/O.
The enclosed patch introduces a new adapter quirk and tries to limp
along by enabling pass-through in situations where memory is 32 bit
addressable on 64 bit machines, or disable the pass-through functions
altogether. I expect that the check for 32 bit addressable memory to be
controversial in that it can be incorrect in non-Dell non-Intel systems
that PERC would never be installed under, the alternative is to disable
pass-through in all cases which could be reported as another regression.
Pass-through is used for SCSI Generic access to the physical devices, or
for the management applications to properly function.
In systems where this patch has disabled pass-through because it is
unsupportable in combination with I/O performance, the user can choose
to enable pass-through by turning off dacmode (aacraid.dacmode=3D0) or
limiting the discovered kernel memory (mem=3D4G) with an associated loss
in runtime performance. If we chose instead to turn off 64 bit dacmode
for the adapters with this quirk, then this would be reported as another
regression.
Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aacraid/commsup.c')
-rw-r--r-- | drivers/scsi/aacraid/commsup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c index 310fd80b8c06..53d415e812ee 100644 --- a/drivers/scsi/aacraid/commsup.c +++ b/drivers/scsi/aacraid/commsup.c | |||
@@ -1099,7 +1099,8 @@ static int _aac_reset_adapter(struct aac_dev *aac, int forced) | |||
1099 | free_irq(aac->pdev->irq, aac); | 1099 | free_irq(aac->pdev->irq, aac); |
1100 | kfree(aac->fsa_dev); | 1100 | kfree(aac->fsa_dev); |
1101 | aac->fsa_dev = NULL; | 1101 | aac->fsa_dev = NULL; |
1102 | if (aac_get_driver_ident(index)->quirks & AAC_QUIRK_31BIT) { | 1102 | quirks = aac_get_driver_ident(index)->quirks; |
1103 | if (quirks & AAC_QUIRK_31BIT) { | ||
1103 | if (((retval = pci_set_dma_mask(aac->pdev, DMA_31BIT_MASK))) || | 1104 | if (((retval = pci_set_dma_mask(aac->pdev, DMA_31BIT_MASK))) || |
1104 | ((retval = pci_set_consistent_dma_mask(aac->pdev, DMA_31BIT_MASK)))) | 1105 | ((retval = pci_set_consistent_dma_mask(aac->pdev, DMA_31BIT_MASK)))) |
1105 | goto out; | 1106 | goto out; |
@@ -1110,7 +1111,7 @@ static int _aac_reset_adapter(struct aac_dev *aac, int forced) | |||
1110 | } | 1111 | } |
1111 | if ((retval = (*(aac_get_driver_ident(index)->init))(aac))) | 1112 | if ((retval = (*(aac_get_driver_ident(index)->init))(aac))) |
1112 | goto out; | 1113 | goto out; |
1113 | if (aac_get_driver_ident(index)->quirks & AAC_QUIRK_31BIT) | 1114 | if (quirks & AAC_QUIRK_31BIT) |
1114 | if ((retval = pci_set_dma_mask(aac->pdev, DMA_32BIT_MASK))) | 1115 | if ((retval = pci_set_dma_mask(aac->pdev, DMA_32BIT_MASK))) |
1115 | goto out; | 1116 | goto out; |
1116 | if (jafo) { | 1117 | if (jafo) { |
@@ -1121,7 +1122,6 @@ static int _aac_reset_adapter(struct aac_dev *aac, int forced) | |||
1121 | } | 1122 | } |
1122 | } | 1123 | } |
1123 | (void)aac_get_adapter_info(aac); | 1124 | (void)aac_get_adapter_info(aac); |
1124 | quirks = aac_get_driver_ident(index)->quirks; | ||
1125 | if ((quirks & AAC_QUIRK_34SG) && (host->sg_tablesize > 34)) { | 1125 | if ((quirks & AAC_QUIRK_34SG) && (host->sg_tablesize > 34)) { |
1126 | host->sg_tablesize = 34; | 1126 | host->sg_tablesize = 34; |
1127 | host->max_sectors = (host->sg_tablesize * 8) + 112; | 1127 | host->max_sectors = (host->sg_tablesize * 8) + 112; |