From: Boojin Kim <boojin.kim@samsung.com>
To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: "'Russell King'" <linux@arm.linux.org.uk>,
"'Will Deacon'" <will.deacon@arm.com>,
"'Catalin Marinas'" <Catalin.Marinas@arm.com>,
"'Kukjin Kim'" <kgene.kim@samsung.com>,
"'Boojin Kim'" <boojin.kim@samsung.com>
Subject: [PATCH 3/3] ARM: MM: Add the workaround of Errata 766421
Date: Mon, 10 Dec 2012 09:00:01 +0900 [thread overview]
Message-ID: <001901cdd669$4cd77070$e6865150$%kim@samsung.com> (raw)
In-Reply-To:
This patch adds the workaround of errata 766421 that adds 'dmb' when changing
the translation regime after conditions that the errata 766421 may occur.
Concretely, Add 'dmb' when changing ASID and secure state for cortex-A15 r0p4.
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
---
arch/arm/Kconfig | 13 +++++++++++++
arch/arm/mach-exynos/Kconfig | 1 +
arch/arm/mm/proc-v7-2level.S | 2 ++
3 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 93397da..9bd34dd 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1417,6 +1417,19 @@ config ARM_ERRATA_775420
to deadlock. This workaround puts DSB before executing ISB if
an abort may occur on cache maintenance.
+config ARM_ERRATA_766421
+ bool "ARM errata: Strongly-Ordered/Device load or NC LDREX could return incorrect data"
+ depends on CPU_V7
+ help
+ This option enables the workaround for the erratum 766421 affecting
+ Cortex-A15 erratum (r0p4).
+ In certain situations, a strongly ordered or device load instruction,
+ or a non-cacheable normal memory load-exclusive instruction could
+ match multiple fill buffers and return incorrect data.
+ This workaround is add DMB instruction when making any change to the
+ translation regime and before doing any new loads/stores/preloads
+ in the new translation regime.
+
config ARM_ERRATA_773022
bool "ARM errata: incorrect instructions may be executed from loop buffer"
depends on CPU_V7
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index bb92f4c..4e28e1c 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -66,6 +66,7 @@ config SOC_EXYNOS5250
select S5P_PM if PM
select S5P_SLEEP if PM
select SAMSUNG_DMADEV
+ select ARM_ERRATA_766421
help
Enable EXYNOS5250 SoC support
diff --git a/arch/arm/mm/proc-v7-2level.S b/arch/arm/mm/proc-v7-2level.S
index fd045e7..c663b2e 100644
--- a/arch/arm/mm/proc-v7-2level.S
+++ b/arch/arm/mm/proc-v7-2level.S
@@ -53,6 +53,8 @@ ENTRY(cpu_v7_switch_mm)
#endif
#ifdef CONFIG_ARM_ERRATA_754322
dsb
+#elif CONFIG_ARM_ERRATA_766421
+ dmb
#endif
mcr p15, 0, r1, c13, c0, 1 @ set context ID
isb
--
1.7.5.4
next reply other threads:[~2012-12-10 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-10 0:00 Boojin Kim [this message]
2012-12-12 21:15 ` Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001901cdd669$4cd77070$e6865150$%kim@samsung.com' \
--to=boojin.kim@samsung.com \
--cc=Catalin.Marinas@arm.com \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome