diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-10-13 09:43:54 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-10-13 09:43:54 -0400 |
commit | b160292cc216a50fd0cd386b0bda2cd48352c73b (patch) | |
tree | ef07cf98f91353ee4c9ec1e1ca7a2a5d9d4b538a /drivers/block | |
parent | b37bde147890c8fea8369a5a4e230dabdea4ebfb (diff) | |
parent | bbf25010f1a6b761914430f5fca081ec8c7accd1 (diff) |
Merge Linux 2.6.23
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/DAC960.c | 18 | ||||
-rw-r--r-- | drivers/block/DAC960.h | 7 | ||||
-rw-r--r-- | drivers/block/sunvdc.c | 2 |
3 files changed, 12 insertions, 15 deletions
diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index 92bf868ca056..84d6aa500e26 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c | |||
@@ -17,8 +17,8 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | 19 | ||
20 | #define DAC960_DriverVersion "2.5.48" | 20 | #define DAC960_DriverVersion "2.5.49" |
21 | #define DAC960_DriverDate "14 May 2006" | 21 | #define DAC960_DriverDate "21 Aug 2007" |
22 | 22 | ||
23 | 23 | ||
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/genhd.h> | 31 | #include <linux/genhd.h> |
32 | #include <linux/hdreg.h> | 32 | #include <linux/hdreg.h> |
33 | #include <linux/blkpg.h> | 33 | #include <linux/blkpg.h> |
34 | #include <linux/dma-mapping.h> | ||
34 | #include <linux/interrupt.h> | 35 | #include <linux/interrupt.h> |
35 | #include <linux/ioport.h> | 36 | #include <linux/ioport.h> |
36 | #include <linux/mm.h> | 37 | #include <linux/mm.h> |
@@ -1165,9 +1166,9 @@ static bool DAC960_V1_EnableMemoryMailboxInterface(DAC960_Controller_T | |||
1165 | int i; | 1166 | int i; |
1166 | 1167 | ||
1167 | 1168 | ||
1168 | if (pci_set_dma_mask(Controller->PCIDevice, DAC690_V1_PciDmaMask)) | 1169 | if (pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK)) |
1169 | return DAC960_Failure(Controller, "DMA mask out of range"); | 1170 | return DAC960_Failure(Controller, "DMA mask out of range"); |
1170 | Controller->BounceBufferLimit = DAC690_V1_PciDmaMask; | 1171 | Controller->BounceBufferLimit = DMA_32BIT_MASK; |
1171 | 1172 | ||
1172 | if ((hw_type == DAC960_PD_Controller) || (hw_type == DAC960_P_Controller)) { | 1173 | if ((hw_type == DAC960_PD_Controller) || (hw_type == DAC960_P_Controller)) { |
1173 | CommandMailboxesSize = 0; | 1174 | CommandMailboxesSize = 0; |
@@ -1368,9 +1369,12 @@ static bool DAC960_V2_EnableMemoryMailboxInterface(DAC960_Controller_T | |||
1368 | dma_addr_t CommandMailboxDMA; | 1369 | dma_addr_t CommandMailboxDMA; |
1369 | DAC960_V2_CommandStatus_T CommandStatus; | 1370 | DAC960_V2_CommandStatus_T CommandStatus; |
1370 | 1371 | ||
1371 | if (pci_set_dma_mask(Controller->PCIDevice, DAC690_V2_PciDmaMask)) | 1372 | if (!pci_set_dma_mask(Controller->PCIDevice, DMA_64BIT_MASK)) |
1372 | return DAC960_Failure(Controller, "DMA mask out of range"); | 1373 | Controller->BounceBufferLimit = DMA_64BIT_MASK; |
1373 | Controller->BounceBufferLimit = DAC690_V2_PciDmaMask; | 1374 | else if (!pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK)) |
1375 | Controller->BounceBufferLimit = DMA_32BIT_MASK; | ||
1376 | else | ||
1377 | return DAC960_Failure(Controller, "DMA mask out of range"); | ||
1374 | 1378 | ||
1375 | /* This is a temporary dma mapping, used only in the scope of this function */ | 1379 | /* This is a temporary dma mapping, used only in the scope of this function */ |
1376 | CommandMailbox = pci_alloc_consistent(PCI_Device, | 1380 | CommandMailbox = pci_alloc_consistent(PCI_Device, |
diff --git a/drivers/block/DAC960.h b/drivers/block/DAC960.h index f5e2436c39aa..85fa9bb63759 100644 --- a/drivers/block/DAC960.h +++ b/drivers/block/DAC960.h | |||
@@ -61,13 +61,6 @@ | |||
61 | #define DAC960_V2_MaxPhysicalDevices 272 | 61 | #define DAC960_V2_MaxPhysicalDevices 272 |
62 | 62 | ||
63 | /* | 63 | /* |
64 | Define the pci dma mask supported by DAC960 V1 and V2 Firmware Controlers | ||
65 | */ | ||
66 | |||
67 | #define DAC690_V1_PciDmaMask 0xffffffff | ||
68 | #define DAC690_V2_PciDmaMask 0xffffffffffffffffULL | ||
69 | |||
70 | /* | ||
71 | Define a 32/64 bit I/O Address data type. | 64 | Define a 32/64 bit I/O Address data type. |
72 | */ | 65 | */ |
73 | 66 | ||
diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c index 4dff49256ac2..317a790c153b 100644 --- a/drivers/block/sunvdc.c +++ b/drivers/block/sunvdc.c | |||
@@ -417,7 +417,7 @@ static int __send_request(struct request *req) | |||
417 | desc->req_id = port->req_id; | 417 | desc->req_id = port->req_id; |
418 | desc->operation = op; | 418 | desc->operation = op; |
419 | if (port->vdisk_type == VD_DISK_TYPE_DISK) { | 419 | if (port->vdisk_type == VD_DISK_TYPE_DISK) { |
420 | desc->slice = 2; | 420 | desc->slice = 0xff; |
421 | } else { | 421 | } else { |
422 | desc->slice = 0; | 422 | desc->slice = 0; |
423 | } | 423 | } |