arm64/sme: Add ID_AA64SMFR0_EL1 to __read_sysreg_by_encoding()
mainline inclusion from mainline-v5.19-rc1 commit 8a58bcd0 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8E73O CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8a58bcd00e2e8d46afce468adc09fcd7968f514c ------------------------------------------------- We need to explicitly enumerate all the ID registers which we rely on for CPU capabilities in __read_sysreg_by_encoding(), ID_AA64SMFR0_EL1 was missed from this list so we trip a BUG() in paths which rely on that function such as CPU hotplug. Add the register. Reported-by:Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by:
Mark Brown <broonie@kernel.org> Tested-by:
Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20220427130828.162615-1-broonie@kernel.org Signed-off-by:
Catalin Marinas <catalin.marinas@arm.com> Signed-off-by:
Wang ShaoBo <bobo.shaobowang@huawei.com>
Loading
Please sign in to comment