armv8: ls2085a: Add workaround of errata A009635
PATCH v3 1/1 armv8: ls2085a: Add workaround of errata A009635
If the core runs at higher than x3 speed of the platform, there is possiblity about sev instruction to getting missed by other cores. This is because of SoC Run Control block may not able to sample the EVENTI(Sev) signals.
Configure Run Control and EPU to periodically send out EVENTI signals to wake up A57 cores.
---
Changes for v2: Updated description
Changes for v3: Added README and comments
arch/arm/cpu/armv8/fsl-layerscape/README.lsch3 | 21 +++++++++++ arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 6 ++++ arch/arm/cpu/armv8/fsl-layerscape/soc.c | 43 +++++++++++++++++++++++ arch/arm/include/asm/arch-fsl-layerscape/config.h | 9 +++++ arch/arm/include/asm/arch-fsl-layerscape/soc.h | 3 ++ 5 files changed, 82 insertions(+)
arch/arm/cpu/armv8/fsl-layerscape/README.lsch3 +21 -0
@@ -272,3 +272,24 @@ b) fsl_mc start aiop [FW_addr] - Start AIOP c) fsl_mc apply DPL [DPL_addr] - Apply DPL file d) No DPMACs availabe for use in u-boot Please note actual AIOP start will happen during DPL parsing of Management complex + + +Errata A009635 +--------------- +If the core runs at higher than x3 speed of the platform, there is +possiblity about sev instruction to getting missed by other cores. +This is because of SoC Run Control block may not able to sample +the EVENTI(Sev) signals. + +Workaround: Configure Run Control and EPU to periodically send out EVENTI signals to +wake up A57 cores + +Errata workaround uses Env variable "a009635_interval_val". It uses decimal +value. +- Default value of env variable is platform clock (MHz) + +- User can modify default value by updating the env variable + setenv a009635_interval_val 600; saveenv; + It configure platform clock as 600 MHz + +- Env variable as 0 signifies no workaround
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +6 -0
@@ -484,7 +484,13 @@ int arch_early_init_r(void) {#ifdef CONFIG_MP int rv =1 ; +#endif + +#ifdef CONFIG_SYS_FSL_ERRATUM_A009635 +erratum_a009635 (); +#endif +#ifdef CONFIG_MP rv =fsl_layerscape_wake_seconday_cores ();if (rv)printf ("Did not wake secondary cores\n" );
arch/arm/cpu/armv8/fsl-layerscape/soc.c +43 -0
53 lines not on this page · raw message
arch/arm/include/asm/arch-fsl-layerscape/config.h +9 -0
@@ -84,11 +84,20 @@#define TZPCDECPROT_2_SET_BASE (TZPC_BASE + 0x81C)#define TZPCDECPROT_2_CLR_BASE (TZPC_BASE + 0x820) +#define DCSR_CGACRE5 0x700070914ULL +#define EPU_EPCMPR5 0x700060914ULL +#define EPU_EPCCR5 0x700060814ULL +#define EPU_EPSMCR5 0x700060228ULL +#define EPU_EPECR5 0x700060314ULL +#define EPU_EPCTR5 0x700060a14ULL +#define EPU_EPGCR 0x700060000ULL +#define CONFIG_SYS_FSL_ERRATUM_A008336 #define CONFIG_SYS_FSL_ERRATUM_A008511 #define CONFIG_SYS_FSL_ERRATUM_A008514 #define CONFIG_SYS_FSL_ERRATUM_A008585 #define CONFIG_SYS_FSL_ERRATUM_A008751 +#define CONFIG_SYS_FSL_ERRATUM_A009635 #elif defined(CONFIG_LS1043A )#define CONFIG_MAX_CPUS 4#define CONFIG_SYS_CACHELINE_SIZE 64
arch/arm/include/asm/arch-fsl-layerscape/soc.h +3 -0
@@ -50,4 +50,7 @@ void fsl_lsch2_early_init_f(void);#endif void cpu_name (char *name); +#ifdef CONFIG_SYS_FSL_ERRATUM_A009635 +void erratum_a009635 (void ); +#endif #endif /* _ASM_ARMV8_FSL_LAYERSCAPE_SOC_H_ */
Signature · 1 line
1.9.1
York Sun
AppliedPATCH v3 1/1 armv8: ls2085a: Add workaround of errata A009635
Quoted 13 lines · Prabhakar Kushwaha
If the core runs at higher than x3 speed of the platform, there is possiblity about sev instruction to getting missed by other cores. This is because of SoC Run Control block may not able to sample the EVENTI(Sev) signals.
Configure Run Control and EPU to periodically send out EVENTI signals to wake up A57 cores.
Signed-off-by Prabhakar Kushwaha <[email protected]>---
Changes for v2: Updated description
Changes for v3: Added README and comments
Quoted 7 lines
arch/arm/cpu/armv8/fsl-layerscape/README.lsch3 | 21 +++++++++++ arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 6 ++++ arch/arm/cpu/armv8/fsl-layerscape/soc.c | 43 +++++++++++++++++++++++ arch/arm/include/asm/arch-fsl-layerscape/config.h | 9 +++++ arch/arm/include/asm/arch-fsl-layerscape/soc.h | 3 ++ 5 files changed, 82 insertions(+)
Applied to fsl-qoriq master. Thanks.
York