[PATCH 02/16] arm64: Move errata work around check on boot CPU
From: Dave.Martin@arm.com (Dave Martin)
Date: 2018-01-23 15:11:41
Also in:
lkml
From: Dave.Martin@arm.com (Dave Martin)
Date: 2018-01-23 15:11:41
Also in:
lkml
On Tue, Jan 23, 2018 at 03:07:18PM +0000, Suzuki K Poulose wrote:
On 23/01/18 14:59, Dave Martin wrote:quoted
On Tue, Jan 23, 2018 at 12:27:55PM +0000, Suzuki K Poulose wrote:quoted
We trigger CPU errata work around check on the boot CPU from smp_prepare_boot_cpu() to make sure that we run the checks only after the CPU feature infrastructure is initialised.On the surface of it, this sounds like a bug fix.No, this is not. It is just moving the code to cpufeature.c Earlier it was : smp_prepare_boot_cpu() -> cpuinfo_store_boot_cpu() -> init_cpu_features() and then we did update_cpu_errata_workarounds() after we have done cpuinfo_store_boot_cpu(). With this change we do : smp_prepare_boot_cpu() -> cpuinfo_store_boot_cpu() -> init_cpu_features() -> update_cpu_errata_workarounds()quoted
Should there be a Fixes tag if so? If this reordering doesn't matter for upstream, it would be good to have a quick explanation here as to why not.Sure, will make it clearer.
Fair enough -- thanks. I was a bit sketchy on the exact code flow here. [...] Cheers ---Dave