diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-13 11:01:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-13 11:01:41 -0400 |
commit | 63b98080daa35f0d682db04f4fb7ada010888752 (patch) | |
tree | 213e124c89a51bbb99dd8e07fb6eacc970bbdc99 /arch/powerpc/sysdev/dart_iommu.c | |
parent | 1883c5aba9973331e3ff0050e05707fe8e84fe0d (diff) | |
parent | eeac5c142b8687e35780b11b54b4c2f95b1a2436 (diff) |
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
[POWERPC] Fix G5 DART (IOMMU) race causing occasional data corruption
[POWERPC] Fix MMIO ops to provide expected barrier behaviour
[POWERPC] Fix interrupt clearing in kdump shutdown sequence
[POWERPC] update prep_defconfig
[POWERPC] kdump: Support kernels having 64k page size.
[POWERPC] Implement PowerPC futex_atomic_cmpxchg_inatomic().
[POWERPC] Add new, missing argument to of_irq_map_raw() for 86xx.
[POWERPC] Update defconfigs
Diffstat (limited to 'arch/powerpc/sysdev/dart_iommu.c')
-rw-r--r-- | arch/powerpc/sysdev/dart_iommu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/dart_iommu.c b/arch/powerpc/sysdev/dart_iommu.c index e32fadde1f77..03b4477dd7f0 100644 --- a/arch/powerpc/sysdev/dart_iommu.c +++ b/arch/powerpc/sysdev/dart_iommu.c | |||
@@ -139,6 +139,7 @@ wait_more: | |||
139 | 139 | ||
140 | static void dart_flush(struct iommu_table *tbl) | 140 | static void dart_flush(struct iommu_table *tbl) |
141 | { | 141 | { |
142 | mb(); | ||
142 | if (dart_dirty) { | 143 | if (dart_dirty) { |
143 | dart_tlb_invalidate_all(); | 144 | dart_tlb_invalidate_all(); |
144 | dart_dirty = 0; | 145 | dart_dirty = 0; |
@@ -172,9 +173,13 @@ static void dart_build(struct iommu_table *tbl, long index, | |||
172 | uaddr += DART_PAGE_SIZE; | 173 | uaddr += DART_PAGE_SIZE; |
173 | } | 174 | } |
174 | 175 | ||
176 | /* make sure all updates have reached memory */ | ||
177 | mb(); | ||
178 | in_be32((unsigned __iomem *)dp); | ||
179 | mb(); | ||
180 | |||
175 | if (dart_is_u4) { | 181 | if (dart_is_u4) { |
176 | rpn = index; | 182 | rpn = index; |
177 | mb(); /* make sure all updates have reached memory */ | ||
178 | while (npages--) | 183 | while (npages--) |
179 | dart_tlb_invalidate_one(rpn++); | 184 | dart_tlb_invalidate_one(rpn++); |
180 | } else { | 185 | } else { |