From: Suzuki K Poulose <suzuki.poulose@arm.com>
To: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org, will@kernel.org,
mark.rutland@arm.com, catalin.marinas@arm.com,
dave.martin@arm.com, Suzuki K Poulose <suzuki.poulose@arm.com>
Subject: [PATCH 1/3] arm64: cpufeature: Fix the type of no FP/SIMD capability
Date: Thu, 10 Oct 2019 18:15:15 +0100 [thread overview]
Message-ID: <20191010171517.28782-2-suzuki.poulose@arm.com> (raw)
In-Reply-To: <20191010171517.28782-1-suzuki.poulose@arm.com>
The NO_FPSIMD capability is defined with scope SYSTEM, which implies
that the "absence" of FP/SIMD on at least one CPU is detected only
after all the SMP CPUs are brought up. However, we use the status
of this capability for every context switch. So, let us change
the scop to LOCAL_CPU to allow the detection of this capability
as and when the first CPU without FP is brought up.
Also, the current type allows hotplugged CPU to be brought up without
FP/SIMD when all the current CPUs have FP/SIMD and we have the userspace
up. Fix both of these issues by changing the capability to
BOOT_RESTRICTED_LOCAL_CPU_FEATURE.
Fixes: 82e0191a1aa11abf ("arm64: Support systems without FP/ASIMD")
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
arch/arm64/kernel/cpufeature.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 9323bcc40a58..0f9eace6c64b 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1361,7 +1361,7 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
{
/* FP/SIMD is not implemented */
.capability = ARM64_HAS_NO_FPSIMD,
- .type = ARM64_CPUCAP_SYSTEM_FEATURE,
+ .type = ARM64_CPUCAP_BOOT_RESTRICTED_CPU_LOCAL_FEATURE,
.min_field_value = 0,
.matches = has_no_fpsimd,
},
--
2.21.0
next prev parent reply other threads:[~2019-10-10 17:15 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-10 17:15 [PATCH 0/3] arm64: Fix support for systems without FP/SIMD Suzuki K Poulose
2019-10-10 17:15 ` Suzuki K Poulose [this message]
2019-10-11 11:36 ` [PATCH 1/3] arm64: cpufeature: Fix the type of no FP/SIMD capability Dave Martin
2019-10-11 12:13 ` Suzuki K Poulose
2019-10-11 14:21 ` Dave Martin
2019-10-11 17:28 ` Suzuki K Poulose
2019-10-14 14:52 ` Dave Martin
2019-10-14 15:45 ` Suzuki K Poulose
2019-10-14 15:50 ` Dave P Martin
2019-10-14 16:57 ` Ard Biesheuvel
2019-10-15 9:44 ` Suzuki K Poulose
2019-10-15 9:52 ` Ard Biesheuvel
2019-10-15 10:24 ` Dave Martin
2019-10-15 10:30 ` Ard Biesheuvel
2019-10-15 13:03 ` Suzuki K Poulose
2019-10-15 13:11 ` Ard Biesheuvel
2019-10-15 14:05 ` Dave Martin
2019-10-10 17:15 ` [PATCH 2/3] arm64: nofpsmid: Clear TIF_FOREIGN_FPSTATE flag for early tasks Suzuki K Poulose
2019-10-11 11:26 ` Dave Martin
2019-10-17 12:42 ` Suzuki K Poulose
2019-10-17 16:09 ` Dave Martin
2019-10-10 17:15 ` [PATCH 3/3] arm64: cpufeature: Set the FP/SIMD compat HWCAP bits properly Suzuki K Poulose
2019-10-17 0:06 ` [PATCH 0/3] arm64: Fix support for systems without FP/SIMD Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191010171517.28782-2-suzuki.poulose@arm.com \
--to=suzuki.poulose@arm.com \
--cc=catalin.marinas@arm.com \
--cc=dave.martin@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®