Re: [PATCH 12/16] arm64: Add helpers for checking CPU MIDR against a range

From: Dave Martin
Date: Fri Jan 26 2018 - 09:08:10 EST


On Tue, Jan 23, 2018 at 12:28:05PM +0000, Suzuki K Poulose wrote:
> Add helpers for checking if the given CPU midr falls in a range
> of variants/revisions for a given model.

This doesn't describe what the patch does: instead, helpers are being
added for checking whether an MIDR falls in one of multiple affected
model(s) and or revision(s) here.

Doing this makes logical sense, but is it really worth it?

We might save 100-200 bytes in the kernel image for now, but a common
workaround for errata on multiple unrelated cpus is surely a rare case.

Only if there are many such lists, or if the lists become large does
this start to seem a clear win.

[...]

Cheers
---Dave