arm64: cpufeature: Treat ID_AA64ZFR0_EL1 as RAZ when SVE is not enabled
mainline inclusion from mainline-v5.9-rc1 commit ec52c713 category: bugfix bugzilla: NA CVE: NA ------------------------------------------------- If CONFIG_ARM64_SVE=n then we fail to report ID_AA64ZFR0_EL1 as 0 when read by userspace, despite being required by the architecture. Although this is theoretically a change in ABI, userspace will first check for the presence of SVE via the HWCAP or the ID_AA64PFR0_EL1.SVE field before probing the ID_AA64ZFR0_EL1 register. Given that these are reported correctly for this configuration, we can safely tighten up the current behaviour. Ensure ID_AA64ZFR0_EL1 is treated as RAZ when CONFIG_ARM64_SVE=n. Signed-off-by: NJulien Grall <julien.grall@arm.com> Reviewed-by: NSuzuki K Poulose <suzuki.poulose@arm.com> Reviewed-by: NMark Rutland <mark.rutland@arm.com> Reviewed-by: NDave Martin <dave.martin@arm.com> Fixes: 06a916fe ("arm64: Expose SVE2 features for userspace") Signed-off-by: NWill Deacon <will@kernel.org> Signed-off-by: NWang Faren <wangfaren@huawei.com> Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录