diff options
author | David S. Miller <davem@davemloft.net> | 2005-05-31 16:57:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-05-31 16:57:59 -0700 |
commit | 7c963ad1d113790a8c723a178988b675868f3abe (patch) | |
tree | 2e1cc54795aeca06a11801636737901ba71a2ed8 /include/asm-sparc64/iommu.h | |
parent | 2e3e80c2b75e3815a0160cbd23d4fdb767d66b35 (diff) | |
download | blackbird-op-linux-7c963ad1d113790a8c723a178988b675868f3abe.tar.gz blackbird-op-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.h | 2 |
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) */ |