]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ARM: 6202/1: Do not ARM_DMA_MEM_BUFFERABLE on RealView boards with L210/L220
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 1 Jul 2010 12:22:48 +0000 (13:22 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 2 Jul 2010 09:10:20 +0000 (10:10 +0100)
RealView boards with certain revisions of the L210/L220 cache controller
may have issues (hardware deadlock) with the mandatory barriers (DSB
followed by an L2 cache sync) when ARM_DMA_MEM_BUFFERABLE is enabled.
The patch disables ARM_DMA_MEM_BUFFERABLE for these boards.

Tested-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/Kconfig

index fc1b2fa594293b5f8946229fd0db62db0ef67283..101105e5261070118f8039c5ecbcde350792f38f 100644 (file)
@@ -813,6 +813,8 @@ config ARM_L1_CACHE_SHIFT
 
 config ARM_DMA_MEM_BUFFERABLE
        bool "Use non-cacheable memory for DMA" if CPU_V6 && !CPU_V7
+       depends on !(MACH_REALVIEW_PB1176 || REALVIEW_EB_ARM11MP || \
+                    MACH_REALVIEW_PB11MP)
        default y if CPU_V6 || CPU_V7
        help
          Historically, the kernel has used strongly ordered mappings to