linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Implement a software workaround for Falkor erratum 1041
@ 2017-11-27 23:17 Shanker Donthineni
  2017-11-27 23:17 ` [PATCH v4 1/2] arm64: Define cputype macros for Falkor CPU Shanker Donthineni
  2017-11-27 23:18 ` [PATCH v4 2/2] arm64: Add software workaround for Falkor erratum 1041 Shanker Donthineni
  0 siblings, 2 replies; 6+ messages in thread
From: Shanker Donthineni @ 2017-11-27 23:17 UTC (permalink / raw)
  To: linux-arm-kernel

On Falkor CPU, we?ve discovered a hardware issue which might lead to a
kernel crash or the unexpected behavior. The Falkor core may errantly
access memory locations on speculative instruction fetches. This may
happen whenever MMU translation state, SCTLR_ELn[M] bit is being changed
from enabled to disabled for the currently running exception level. To
prevent the errant hardware behavior, software must execute an ISB
immediately prior to executing the MSR that changes SCTLR_ELn[M] from a
value of 1 to 0.

These v4 patches are based on 4.15-rc1 and tested on QDF2400 platform.

Patch2 from V1 series got dropped to accommodate review comments. Apply
the workaround where it's required.

Posted wrong the patches in v2.

Shanker Donthineni (2):
  arm64: Define cputype macros for Falkor CPU
  arm64: Add software workaround for Falkor erratum 1041

 Documentation/arm64/silicon-errata.txt |  1 +
 arch/arm64/Kconfig                     | 12 +++++++++++-
 arch/arm64/include/asm/assembler.h     | 19 +++++++++++++++++++
 arch/arm64/include/asm/cpucaps.h       |  3 ++-
 arch/arm64/include/asm/cputype.h       |  2 ++
 arch/arm64/kernel/cpu-reset.S          |  1 +
 arch/arm64/kernel/cpu_errata.c         | 16 ++++++++++++++++
 arch/arm64/kernel/efi-entry.S          |  2 ++
 arch/arm64/kernel/head.S               |  1 +
 arch/arm64/kernel/relocate_kernel.S    |  1 +
 arch/arm64/kvm/hyp-init.S              |  1 +
 11 files changed, 57 insertions(+), 2 deletions(-)

-- 
Qualcomm Datacenter Technologies, Inc. on behalf of the Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-04 20:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-27 23:17 [PATCH v4 0/2] Implement a software workaround for Falkor erratum 1041 Shanker Donthineni
2017-11-27 23:17 ` [PATCH v4 1/2] arm64: Define cputype macros for Falkor CPU Shanker Donthineni
2017-11-27 23:18 ` [PATCH v4 2/2] arm64: Add software workaround for Falkor erratum 1041 Shanker Donthineni
2017-12-01 11:24   ` Will Deacon
2017-12-03 13:35     ` Shanker Donthineni
2017-12-04 20:09       ` Shanker Donthineni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).