On Wed, Oct 09, 2019 at 11:10:23AM +0200, Ard Biesheuvel wrote: > From: Marc Zyngier <marc.zyngier@xxxxxxx> > > [ Upstream commit 517953c2c47f9c00a002f588ac856a5bc70cede3 ] > > The SMCCC ARCH_WORKAROUND_1 service can indicate that although the > firmware knows about the Spectre-v2 mitigation, this particular > CPU is not vulnerable, and it is thus not necessary to call > the firmware on this CPU. > > Let's use this information to our benefit. > > Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx> > Signed-off-by: Jeremy Linton <jeremy.linton@xxxxxxx> > Reviewed-by: Andre Przywara <andre.przywara@xxxxxxx> > Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx> > Tested-by: Stefan Wahren <stefan.wahren@xxxxxxxx> > Signed-off-by: Will Deacon <will.deacon@xxxxxxx> > Signed-off-by: Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx> > --- > arch/arm64/kernel/cpu_errata.c | 32 ++++++++++++++------ > 1 file changed, 23 insertions(+), 9 deletions(-) Now queued up, thanks. greg k-h