summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/iommu.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2005-06-01 01:57:59 +0200
committerDavid S. Miller <davem@davemloft.net>2005-06-01 01:57:59 +0200
commit7c963ad1d113790a8c723a178988b675868f3abe (patch)
tree2e1cc54795aeca06a11801636737901ba71a2ed8 /include/asm-sparc64/iommu.h
parentAutomatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/aegl/lin... (diff)
downloadlinux-7c963ad1d113790a8c723a178988b675868f3abe.tar.xz
linux-7c963ad1d113790a8c723a178988b675868f3abe.zip
[SPARC64]: Fix streaming buffer flushing on PCI and SBUS.
Firstly, if the direction is TODEVICE, then dirty data in the streaming cache is impossible so we can elide the flush-flag synchronization in that case. Next, the context allocator is broken. It is highly likely that contexts get used multiple times for different dma mappings, which confuses the strbuf flushing code and makes it run inefficiently. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/iommu.h')
-rw-r--r--include/asm-sparc64/iommu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-sparc64/iommu.h b/include/asm-sparc64/iommu.h
index 5fd16e42a045..0de7a3da79cd 100644
--- a/include/asm-sparc64/iommu.h
+++ b/include/asm-sparc64/iommu.h
@@ -16,4 +16,6 @@
#define IOPTE_CACHE 0x0000000000000010UL /* Cached (in UPA E-cache) */
#define IOPTE_WRITE 0x0000000000000002UL /* Writeable */
+#define IOMMU_NUM_CTXS 4096
+
#endif /* !(_SPARC_IOMMU_H) */