]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
arm64: cpufeature: Set the FP/SIMD compat HWCAP bits properly
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 14 Feb 2020 16:57:33 +0000 (16:57 +0000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:31:00 +0000 (00:31 -0400)
commit587fe685cd0e93cbedb910dcf270eaac69ef4816
treea2a54dd7c40d9b95ae25556e12515e2cde26245b
parent94dbde49c22922d09752ce0d19f60a3118f282cf
arm64: cpufeature: Set the FP/SIMD compat HWCAP bits properly

BugLink: https://bugs.launchpad.net/bugs/1867194
commit 7559950aef1ab8792c50797c6c5c7c5150a02460 upstream

We set the compat_elf_hwcap bits unconditionally on arm64 to
include the VFP and NEON support. However, the FP/SIMD unit
is optional on Arm v8 and thus could be missing. We already
handle this properly in the kernel, but still advertise to
the COMPAT applications that the VFP is available. Fix this
to make sure we only advertise when we really have them.

Cc: stable@vger.kernel.org # v4.19
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm64/kernel/cpufeature.c