]> git.baikalelectronics.ru Git - uboot.git/commit
armv8: Enable CPUECTLR.SMPEN for coherency
authorMingkai Hu <mingkai.hu@nxp.com>
Fri, 6 Jan 2017 09:41:10 +0000 (17:41 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 18 Jan 2017 17:27:47 +0000 (09:27 -0800)
commit9d857addfab39bfcfcc0c1fc2701ddcc5e759558
treefda8d849bee699d9ac92321405478b3df9f579d2
parentfa7c0d4415898b77955531c1dbf5cdb8f76bc33c
armv8: Enable CPUECTLR.SMPEN for coherency

For A53, data coherency is enabled only when the CPUECTLR.SMPEN bit is
set. The SMPEN bit should be set before enabling the data cache.
If not enabled, the cache is not coherent with other cores and
data corruption could occur.

For A57/A72, SMPEN bit enables the processor to receive instruction
cache and TLB maintenance operations broadcast from other processors
in the cluster. This bit should be set before enabling the caches and
MMU, or performing any cache and TLB maintenance operations.

Signed-off-by: Mingkai Hu <mingkai.hu@nxp.com>
Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/Kconfig
arch/arm/cpu/armv8/start.S