summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/pgtable-2level-hwdef.h
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2016-09-07 21:56:09 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-09-12 12:12:30 +0100
commit6b3142b2b852cd5e3216d1aa800a0a49377e6e1c (patch)
treed3a45c29f7c5be1a0d0d382c5a30acf999417b82 /arch/arm/include/asm/pgtable-2level-hwdef.h
parent1feafd64cbc31b75b7b08ab3ca0305311c3f6246 (diff)
downloadblackbird-op-linux-6b3142b2b852cd5e3216d1aa800a0a49377e6e1c.tar.gz
blackbird-op-linux-6b3142b2b852cd5e3216d1aa800a0a49377e6e1c.zip
ARM: 8612/1: LPAE: initialize cache policy correctly
The cachepolicy variable gets initialized using a masked pmd value. So far, the pmd has been masked with flags valid for the 2-page table format, but the 3-page table format requires a different mask. On LPAE, this lead to a wrong assumption of what initial cache policy has been used. Later a check forces the cache policy to writealloc and prints the following warning: Forcing write-allocate cache policy for SMP This patch introduces a new definition PMD_SECT_CACHE_MASK for both page table formats which masks in all cache flags in both cases. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/pgtable-2level-hwdef.h')
-rw-r--r--arch/arm/include/asm/pgtable-2level-hwdef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/pgtable-2level-hwdef.h b/arch/arm/include/asm/pgtable-2level-hwdef.h
index d0131ee6f6af..3f82e9da7cec 100644
--- a/arch/arm/include/asm/pgtable-2level-hwdef.h
+++ b/arch/arm/include/asm/pgtable-2level-hwdef.h
@@ -47,6 +47,7 @@
#define PMD_SECT_WB (PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE)
#define PMD_SECT_MINICACHE (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE)
#define PMD_SECT_WBWA (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE)
+#define PMD_SECT_CACHE_MASK (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE)
#define PMD_SECT_NONSHARED_DEV (PMD_SECT_TEX(2))
/*
OpenPOWER on IntegriCloud