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.Ishikawa@jp.sony.com>
This commit is contained in:
parent
812257d058
commit
a20463642e
@ -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 | \
|
||||
|
Loading…
Reference in New Issue
Block a user