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)
commit7230f7e99fecc684180322b056fad3853d1029d3
tree570e56f238876464d7fb7153b0de1e402fdcea31
parenta48e61de758c6b45f080fabc6fed3f4ed42598dc
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: ca9503fc9e98 ("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