[PATCH 2/2] cciss: disable dma prefetch for P600



PATCH 2/2
Turned off DMA prefetch for the P600 on systems which may present
discontiguous memory.

---
commit 68e76156e7a203a86996ac99c1326f098d3191f6
tree b191a99ae1bfa6588860136265f11f9ef789683a
parent 499cc64fc708f3a25985bea3b77b40c3448ccbf8
author Mike Miller <mikem@xxxxxxxxxxxxxxxxxxxxxxx> Tue, 17 Oct 2006 16:02:22 -0500
committer Mike Miller <mikem@xxxxxxxxxxxxxxxxxxxxxxx> Tue, 17 Oct 2006 16:02:22 -0500

Signed-off-by: Mike Miller <mikem@xxxxxxxxxxxxxxxxxxxxxxx>

drivers/block/cciss.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index a0a1dd9..b445528 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -2982,6 +2982,21 @@ #ifdef CONFIG_X86
}
#endif

+#if defined CONFIG_IA64 || if defined CONFIG_X86_64
+ {
+ /* 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 + I2O0_DMA1_CFG);
+ dma_prefetch |= 0x8000;
+ writel(c->vaddr + I2O0_DMA1_CFG, dma_prefetch);
+ }
+ }
+#endif /* CONFIG_IA64 || CONFIG_X86_64 */
+
#ifdef CCISS_DEBUG
printk("Trying to put board into Simple mode\n");
#endif /* CCISS_DEBUG */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [git pull] jfs update
    ... commit c5111f504d2a9b0d258d7c4752b4093523315989 ... tree 6a52864aff79691689aea21cb0cb928327d5de5b ... parent 69eb66d7da7dba2696281981347698e1693c2340 ... JFS: Take logsync lock before testing mp->lsn ...
    (Linux-Kernel)
  • [git patches] IDE update
    ... tree 4105ba774c775cdf53fb5fd3e07158b15218cb27 ... parent 21e2c01dc3e38d466eda5871645878d2c3a33261 ... commit 21e2c01dc3e38d466eda5871645878d2c3a33261 ... Splitted up from the Debian kernel patch. ...
    (Linux-Kernel)
  • [git pull] jfs update
    ... commit be0bf7da19135a7a0f8c275f20c819940be218d9 ... tree c8ba72b711730ce11f52fc20cd7c0e9c4bee7bc0 ... parent 5b3030e39049212c975665cdb3eeabcfaf7c94ca ... JFS: Take logsync lock before testing mp->lsn ...
    (Linux-Kernel)
  • [2.6-GIT] NTFS: Release 2.1.23.
    ... This is a big NTFS update. ... commit ba6d2377c85c9b8a793f455d8c9b6cf31985d70f ... tree 21e65c76db693869c84864af02e91c4b997a6ba5 ... parent af859a42d798f047fbfe198ed315a942662c39d2 ...
    (Linux-Kernel)
  • (no subject)
    ... Received: from oss (localhost ) ... everything up in one tree, so that there's absolutely no record of the ... That is, you may want to merge multiple parents in _one_ commit, ... each parent you have merged. ...
    (Linux-Kernel)