]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: errata: Provide macro for major and minor cpu revisions
authorRobert Richter <rrichter@cavium.com>
Wed, 6 Apr 2022 16:45:04 +0000 (17:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2022 05:52:13 +0000 (07:52 +0200)
commit6e1ad7a49b2e6fe5c6932e84145dd5bfd08ae937
treeea0f348a53614e115e385facae48f9c3f11b95fb
parentae62da6ae3f6d9c7ea62960573f8a48df434e7a4
arm64: errata: Provide macro for major and minor cpu revisions

commit fa5ce3d1928c441c3d241c34a00c07c8f5880b1a upstream

Definition of cpu ranges are hard to read if the cpu variant is not
zero. Provide MIDR_CPU_VAR_REV() macro to describe the full hardware
revision of a cpu including variant and (minor) revision.

Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
[ morse: some parts of this patch were already backported as part of
  b8c320884eff003581ee61c5970a2e83f513eff1 ]
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpufeature.c