Re: [PATCH v3] ARM: mvebu: rename ARM_ERRATA_753970

From: Russell King - ARM Linux
Date: Fri Sep 12 2014 - 09:32:09 EST


On Fri, Sep 12, 2014 at 01:10:05PM +0200, Paul Bolle wrote:
> ARM_ERRATA_753970 was renamed to PL310_ERRATA_753970 in v3.2, through
> commit fa0ce4035d48 ("ARM: 7162/1: errata: tidy up Kconfig options for
> PL310 errata workarounds"). Two selects were added in v3.15 that still
> use the previous name. Rename these. Make these select statements depend
> on CACHE_L2X0, like all other select statements for PL310_ERRATA_753970
> do, to be safe we don't inadvertently start to allow pointless
> configurations in the future.
>
> Signed-off-by: Paul Bolle <pebolle@xxxxxxxxxx>
> ---
> v3: add CACHE_L2X0 dependency, as Russell requested.
>
> Tested with "git grep" and fiddling with "make ARCH=arm [...]config".
> Please shout if that's deemed insufficient.
>
> Note that I promised this v3 over two months ago. Taking two months to
> update this patch is not really something to be proud of. On the other
> hand: no one bothered to prod me for this v3 or send in a proper fix
> themselves. Add to this that I first reported these selects for an
> outdated Kconfig symbol in April. So I begin to wonder whether these
> selects statements are really needed to begin with.

I wonder whether we should deal with this a different way: rather than
having this stuff as a configuration option, have the work-arounds
default to being enabled, and have kernel command parameters to disable
them should that be necessary.

I expect the normal case is that everyone normally runs with these
errata workarounds enabled (especially with a single zImage kernel), so
there will be relatively few who need to disable them. Plus, this gives
flexibility on single zImage to turn the errata workarounds off without
needing to rebuild.

The other major advantage is less Kconfig options with dependencies
which seem all to easily to result in select abuse.

--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/