This is an automated email from the ASF dual-hosted git repository.

btashton pushed a commit to branch releases/10.0
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit ddf2ab67cba2bd60df5779678cd3e4388d00b3eb
Author: Masayuki Ishikawa <masayuki.ishik...@gmail.com>
AuthorDate: Sat Nov 14 18:30:38 2020 +0900

    arch: armv7-a: Fix MMU settings for SDRAM in SMP mode
    
    Summary:
    - This commit fixes armv7-a deadlocks with D-cache in SMP mode.
    - In SMP mode, MMU for SDRAM area must be set to shareable
    
    Impact:
    - SMP only
    
    Testing:
    - Tested with sabre-6quad:smp (QEMU and dev board)
    
    Signed-off-by: Masayuki Ishikawa <masayuki.ishik...@jp.sony.com>
---
 arch/arm/src/armv7-a/mmu.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/src/armv7-a/mmu.h b/arch/arm/src/armv7-a/mmu.h
index 94f7227..83eb360 100644
--- a/arch/arm/src/armv7-a/mmu.h
+++ b/arch/arm/src/armv7-a/mmu.h
@@ -584,8 +584,15 @@
 
 #define MMU_ROMFLAGS         (PMD_TYPE_SECT | PMD_SECT_AP_R1 | PMD_CACHEABLE | 
\
                               PMD_SECT_DOM(0))
+
+#ifdef CONFIG_SMP
+#define MMU_MEMFLAGS         (PMD_TYPE_SECT | PMD_SECT_AP_RW1 | PMD_CACHEABLE 
| \
+                              PMD_SECT_S | PMD_SECT_DOM(0))
+#else
 #define MMU_MEMFLAGS         (PMD_TYPE_SECT | PMD_SECT_AP_RW1 | PMD_CACHEABLE 
| \
                               PMD_SECT_DOM(0))
+#endif
+
 #define MMU_IOFLAGS          (PMD_TYPE_SECT | PMD_SECT_AP_RW1 | PMD_DEVICE | \
                               PMD_SECT_DOM(0) | PMD_SECT_XN)
 #define MMU_STRONGLY_ORDERED (PMD_TYPE_SECT | PMD_SECT_AP_RW1 | \

Reply via email to