diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/cciss.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index ca56a0e5cd5e..7c2cfde08f18 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -3076,15 +3076,20 @@ static int cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev) | |||
3076 | } | 3076 | } |
3077 | #endif | 3077 | #endif |
3078 | 3078 | ||
3079 | /* Disabling DMA prefetch for the P600 | 3079 | /* Disabling DMA prefetch and refetch for the P600. |
3080 | * An ASIC bug may result in a prefetch beyond | 3080 | * An ASIC bug may result in accesses to invalid memory addresses. |
3081 | * physical memory. | 3081 | * We've disabled prefetch for some time now. Testing with XEN |
3082 | * kernels revealed a bug in the refetch if dom0 resides on a P600. | ||
3082 | */ | 3083 | */ |
3083 | if(board_id == 0x3225103C) { | 3084 | if(board_id == 0x3225103C) { |
3084 | __u32 dma_prefetch; | 3085 | __u32 dma_prefetch; |
3086 | __u32 dma_refetch; | ||
3085 | dma_prefetch = readl(c->vaddr + I2O_DMA1_CFG); | 3087 | dma_prefetch = readl(c->vaddr + I2O_DMA1_CFG); |
3086 | dma_prefetch |= 0x8000; | 3088 | dma_prefetch |= 0x8000; |
3087 | writel(dma_prefetch, c->vaddr + I2O_DMA1_CFG); | 3089 | writel(dma_prefetch, c->vaddr + I2O_DMA1_CFG); |
3090 | pci_read_config_dword(pdev, PCI_COMMAND_PARITY, &dma_refetch); | ||
3091 | dma_refetch |= 0x1; | ||
3092 | pci_write_config_dword(pdev, PCI_COMMAND_PARITY, dma_refetch); | ||
3088 | } | 3093 | } |
3089 | 3094 | ||
3090 | #ifdef CCISS_DEBUG | 3095 | #ifdef CCISS_DEBUG |