Skip to contentSkip to conversation

cciss: disable DMA prefetch for P600

PATCH In review Mike Miller (OS Dev) 2 participants 2 messages Nov 1, 2006 – Nov 2, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/8 cciss: disable DMA prefetch for P600

PATCH 5/8

This disables DMA prefetch for the P600 on IPF. A chip bug may result in a DMA prefetch going falling off into holes in memory. On Proliant x86[_64] systems the top page of memory is mapped out and the io hole below 4GB is similiarly protected because the memory at the lower boundary of the hole is used by ACPI and other things.
Please consider this for inclusion.

Thanks,
mikem

 cciss.c     |   14 ++++++++++++++
 cciss_cmd.h |    1 +
 2 files changed, 15 insertions(+)

--------------------------------------------------------------------------------

drivers/block/cciss.c +14 -0
diff -urNp linux-2.6-p00004/drivers/block/cciss.c linux-2.6/drivers/block/cciss.c
@@ -2997,6 +2997,20 @@ static int cciss_pci_init(ctlr_info_t *c
 	}
 #endif
 
+#ifdef CONFIG_IA64
+	{
+		/* DMA prefetch must be disabled on P600 on platforms that may
+		 * present noncontiguous memory.
+		 */
+		__u32 dma_prefetch
+		if(board_id == 0x3225103C) {
+			dma_prefetch = readl(c->vaddr + I2O_DMA1_CFG);
+			dma_prefetch |= 0x8000;
+			writel(dma_prefetch, c->vaddr + I2O_DMA1_CFG);
+		}
+	}
+#endif /* CONFIG_IA64 */
+
 #ifdef CCISS_DEBUG
 	printk("Trying to put board into Simple mode\n");
 #endif				/* CCISS_DEBUG */
drivers/block/cciss_cmd.h +1 -0
diff -urNp linux-2.6-p00004/drivers/block/cciss_cmd.h linux-2.6/drivers/block/cciss_cmd.h
@@ -55,6 +55,7 @@
 #define I2O_INT_MASK            0x34
 #define I2O_IBPOST_Q            0x40
 #define I2O_OBPOST_Q            0x44
+#define I2O_DMA1_CFG		0x214
 
 //Configuration Table
 #define CFGTBL_ChangeReq        0x00000001l
#1 lore raw
Quoted 29 lines · Mike Miller (OS Dev)

PATCH 5/8

This disables DMA prefetch for the P600 on IPF. A chip bug may result in a DMA prefetch going falling off into holes in memory. On Proliant x86[_64] systems the top page of memory is mapped out and the io hole below 4GB is similiarly protected because the memory at the lower boundary of the hole is used by ACPI and other things.
Please consider this for inclusion.

Thanks,
mikem

 cciss.c     |   14 ++++++++++++++
 cciss_cmd.h |    1 +
 2 files changed, 15 insertions(+)

--------------------------------------------------------------------------------
diff -urNp linux-2.6-p00004/drivers/block/cciss.c linux-2.6/drivers/block/cciss.c

drivers/block/cciss.c +3 -0
@@ -2997,6 +2997,20 @@ static int cciss_pci_init(ctlr_info_t *c
 	}
 #endif
 
+#ifdef CONFIG_IA64
+	{
+		/* DMA prefetch must be disabled on P600 on platforms that may

drivers/block/cciss.c static int cciss_pci_init(ctlr_info_t *c · line 3012

Quoted 10 lines
drivers/block/cciss.c +10 -0
+		 * present noncontiguous memory.
+		 */
+		__u32 dma_prefetch
+		if(board_id == 0x3225103C) {
+			dma_prefetch = readl(c->vaddr + I2O_DMA1_CFG);
+			dma_prefetch |= 0x8000;
+			writel(dma_prefetch, c->vaddr + I2O_DMA1_CFG);
+		}
+	}
+#endif /* CONFIG_IA64 */

Hmm, what about other platforms with discontig memory support?

Signature · 1 line
Jens Axboe