]> 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)
commit7edda58f55fc53fd38e5cee67136879904875249
tree570e56f238876464d7fb7153b0de1e402fdcea31
parentd8f7f47ae4b88a1d27fe21bb55379e3d7e395645
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: 7c1b088f4e86 ("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