summaryrefslogtreecommitdiff
path: root/include/asm-sparc64/iommu.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2005-05-31 23:57:59 (GMT)
committerDavid S. Miller <davem@davemloft.net>2005-05-31 23:57:59 (GMT)
commit7c963ad1d113790a8c723a178988b675868f3abe (patch)
tree2e1cc54795aeca06a11801636737901ba71a2ed8 /include/asm-sparc64/iommu.h
parent2e3e80c2b75e3815a0160cbd23d4fdb767d66b35 (diff)
downloadlinux-fsl-qoriq-7c963ad1d113790a8c723a178988b675868f3abe.tar.xz
[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 5fd16e4..0de7a3d 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) */