diff options
author | Bob Breuer <breuerr@mc.net> | 2006-06-20 09:36:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-06-20 09:36:56 +0200 |
commit | 3185d4d2873a46ca1620d784013f285522091aa0 (patch) | |
tree | 2235141eace69aec31aebe70a60bc3e030928181 /arch | |
parent | [SPARC]: Mark smp init functions as cpuinit (diff) | |
download | linux-3185d4d2873a46ca1620d784013f285522091aa0.tar.xz linux-3185d4d2873a46ca1620d784013f285522091aa0.zip |
[SPARC]: Fix iommu_flush_iotlb end address
Fix the calculation of the end address when flushing iotlb entries to
ram. This bug has been a cause of esp dma errors, and it affects
HyperSPARC systems much worse than SuperSPARC systems.
Signed-off-by: Bob Breuer <breuerr@mc.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/mm/iommu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc/mm/iommu.c b/arch/sparc/mm/iommu.c index 77840c804786..7215849db392 100644 --- a/arch/sparc/mm/iommu.c +++ b/arch/sparc/mm/iommu.c @@ -144,8 +144,9 @@ static void iommu_flush_iotlb(iopte_t *iopte, unsigned int niopte) unsigned long start; unsigned long end; - start = (unsigned long)iopte & PAGE_MASK; + start = (unsigned long)iopte; end = PAGE_ALIGN(start + niopte*sizeof(iopte_t)); + start &= PAGE_MASK; if (viking_mxcc_present) { while(start < end) { viking_mxcc_flush_page(start); |