diff mbox series

[U-Boot] mx5: Select ARM_CORTEX_A8_CVE_2017_5715

Message ID 1529518101-6531-1-git-send-email-festevam@gmail.com
State Accepted
Commit ee322f3c79a86e6f26629f8535cddb2b844d5113
Delegated to: Tom Rini
Headers show
Series [U-Boot] mx5: Select ARM_CORTEX_A8_CVE_2017_5715 | expand

Commit Message

Fabio Estevam June 20, 2018, 6:08 p.m. UTC
From: Fabio Estevam <fabio.estevam@nxp.com>

On a 4.18-rc1 kernel the following warning is seen on i.MX51 and
i.MX53:

CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable

Select the ARM_CORTEX_A8_CVE_2017_5715 workaround for i.MX51/i.MX53
to fix the problem.

With this patch applied the kernel reports:

CPU0: Spectre v2: using BPIALL workaround

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
This depends on Nishanth Menon's series that introduces the
ARM_CORTEX_A8_CVE_2017_5715 Spectre workaround.

 arch/arm/mach-imx/mx5/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Fabio Estevam June 29, 2018, 9:26 p.m. UTC | #1
Hi Tom and Stefano,

On Wed, Jun 20, 2018 at 3:08 PM, Fabio Estevam <festevam@gmail.com> wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
>
> On a 4.18-rc1 kernel the following warning is seen on i.MX51 and
> i.MX53:
>
> CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
>
> Select the ARM_CORTEX_A8_CVE_2017_5715 workaround for i.MX51/i.MX53
> to fix the problem.
>
> With this patch applied the kernel reports:
>
> CPU0: Spectre v2: using BPIALL workaround
>
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
> This depends on Nishanth Menon's series that introduces the
> ARM_CORTEX_A8_CVE_2017_5715 Spectre workaround.

I saw that Tom has just applied Nishanth Menon's series.

Can this one also be applied for 2018.07?

Thanks
Tom Rini June 29, 2018, 9:30 p.m. UTC | #2
On Fri, Jun 29, 2018 at 06:26:55PM -0300, Fabio Estevam wrote:
> Hi Tom and Stefano,
> 
> On Wed, Jun 20, 2018 at 3:08 PM, Fabio Estevam <festevam@gmail.com> wrote:
> > From: Fabio Estevam <fabio.estevam@nxp.com>
> >
> > On a 4.18-rc1 kernel the following warning is seen on i.MX51 and
> > i.MX53:
> >
> > CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
> >
> > Select the ARM_CORTEX_A8_CVE_2017_5715 workaround for i.MX51/i.MX53
> > to fix the problem.
> >
> > With this patch applied the kernel reports:
> >
> > CPU0: Spectre v2: using BPIALL workaround
> >
> > Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> > ---
> > This depends on Nishanth Menon's series that introduces the
> > ARM_CORTEX_A8_CVE_2017_5715 Spectre workaround.
> 
> I saw that Tom has just applied Nishanth Menon's series.
> 
> Can this one also be applied for 2018.07?

I can pick it up, or it can be in a PR, thanks!
Fabio Estevam June 30, 2018, 12:01 a.m. UTC | #3
Hi Tom,

On Fri, Jun 29, 2018 at 6:30 PM, Tom Rini <trini@konsulko.com> wrote:

>> I saw that Tom has just applied Nishanth Menon's series.
>>
>> Can this one also be applied for 2018.07?
>
> I can pick it up, or it can be in a PR, thanks!

As Stefano's tree do not contain Nishanth's series, maybe it would be
easier if you could pick this one directly.

Thanks
Tom Rini July 2, 2018, 3:16 p.m. UTC | #4
On Wed, Jun 20, 2018 at 03:08:21PM -0300, Fabio Estevam wrote:

> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> On a 4.18-rc1 kernel the following warning is seen on i.MX51 and
> i.MX53:
> 
> CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
> 
> Select the ARM_CORTEX_A8_CVE_2017_5715 workaround for i.MX51/i.MX53
> to fix the problem.
> 
> With this patch applied the kernel reports:
> 
> CPU0: Spectre v2: using BPIALL workaround
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/mx5/Kconfig b/arch/arm/mach-imx/mx5/Kconfig
index 06322b2..100257b 100644
--- a/arch/arm/mach-imx/mx5/Kconfig
+++ b/arch/arm/mach-imx/mx5/Kconfig
@@ -8,9 +8,11 @@  config MX5
 config MX51
 	bool
 	select SYS_FSL_ERRATUM_ESDHC_A001
+	select ARM_CORTEX_A8_CVE_2017_5715
 
 config MX53
 	bool
+	select ARM_CORTEX_A8_CVE_2017_5715
 
 choice
 	prompt "MX5 board select"