]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ARM: 6111/1: Implement read/write for ownership in the ARMv6 DMA cache ops
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 7 May 2010 15:26:24 +0000 (16:26 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 8 May 2010 09:44:30 +0000 (10:44 +0100)
commitf4d6477f7f073b99220386d62f5bf54bec3482cc
tree4c6a13a762f54bfd30550a70226268edcb9d38a7
parentb5a07faadeb4e0cfd6dcee359e501d4755cab875
ARM: 6111/1: Implement read/write for ownership in the ARMv6 DMA cache ops

The Snoop Control Unit on the ARM11MPCore hardware does not detect the
cache operations and the dma_cache_maint*() functions may leave stale
cache entries on other CPUs. The solution implemented in this patch
performs a Read or Write For Ownership in the ARMv6 DMA cache
maintenance functions. These LDR/STR instructions change the cache line
state to shared or exclusive so that the cache maintenance operation has
the desired effect.

Tested-by: George G. Davis <gdavis@mvista.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-v6.S