Re: [PATCH v3 09/22] arm64: capabilities: Split the processing of errata work arounds

From: Suzuki K Poulose
Date: Thu Mar 08 2018 - 07:24:50 EST


On 09/02/18 18:18, Dave Martin wrote:
On Fri, Feb 09, 2018 at 05:54:48PM +0000, Suzuki K Poulose wrote:
Right now we run through the errata workarounds check on all boot
active CPUs, with SCOPE_ALL. This doesn't help with detecting the
errata's with a SYSTEM_SCOPE. While nobody uses it, let us clean
this up in preparation for merging capability handling.

errata; and SCOPE_SYSTEM (if I'm being pedantic)

To make it clearer this this is adding support for new behaviour rather
than changing old behaviour, perhaps change "This doesn't help ...
While nobody uses it ..." to something like:

"This wouldn't help for detecting erratum workarounds with SCOPE_SYSTEM.
There are none yet, but we plan to introduce some: let us clean this up
so that such workarounds can be detected and enabled correctly."

Fixed


So, we run the checks with SCOPE_LOCAL_CPU on all CPUs and SCOPE_SYSTEM
checks are run only once after all the boot time CPUs are active.

Cc: Dave Martin <dave.martin@xxxxxxx>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>

Otherwise,

Reviewed-by: Dave Martin <Dave.Martin@xxxxxxx>

Thanks
Suzuki