]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: cpufeature: Effectively expose FRINT capability to userspace
authorJulien Grall <julien.grall@arm.com>
Thu, 3 Oct 2019 11:12:08 +0000 (12:12 +0100)
committerWill Deacon <will@kernel.org>
Fri, 4 Oct 2019 10:43:43 +0000 (11:43 +0100)
commite5dd035afa66d58bbbb294cbbee63f9e23b6a3b9
tree570e56f238876464d7fb7153b0de1e402fdcea31
parent33a8e94a85142052a8cb3aa9fcd5d9c95ba3b0d9
arm64: cpufeature: Effectively expose FRINT capability to userspace

The HWCAP framework will detect a new capability based on the sanitized
version of the ID registers.

Sanitization is based on a whitelist, so any field not described will end
up to be zeroed.

At the moment, ID_AA64ISAR1_EL1.FRINTTS is not described in
ftr_id_aa64isar1. This means the field will be zeroed and therefore the
userspace will not be able to see the HWCAP even if the hardware
supports the feature.

This can be fixed by describing the field in ftr_id_aa64isar1.

Fixes: 44c871d09a33 ("arm64: Expose FRINT capabilities to userspace")
Signed-off-by: Julien Grall <julien.grall@arm.com>
Cc: mark.brown@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c