* [PATCH] LoongArch: Update help info of config ARCH_STRICT_ALIGN
@ 2025-08-26 6:39 Tiezhu Yang
2025-08-27 10:17 ` Huacai Chen
0 siblings, 1 reply; 2+ messages in thread
From: Tiezhu Yang @ 2025-08-26 6:39 UTC (permalink / raw)
To: Huacai Chen; +Cc: loongarch, linux-kernel
Loongson 3A6000 and 3C6000 CPUs also support unaligned memory access, so
the current description is out of date to some extent.
Actually, all of Loongson-3 series processors based on LoongArch support
unaligned memory access, this hardware capability is indicated by the bit
20 of CPUCFG1 register, update the help info to reflect the reality.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
arch/loongarch/Kconfig | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index f0abc38c40ac..fcf6575b02f8 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -563,7 +563,8 @@ config ARCH_STRICT_ALIGN
-mstrict-align build parameter to prevent unaligned accesses.
CPUs with h/w unaligned access support:
- Loongson-2K2000/2K3000/3A5000/3C5000/3D5000.
+ Loongson-2K2000/2K3000 and all of Loongson-3 series processors
+ based on LoongArch.
CPUs without h/w unaligned access support:
Loongson-2K500/2K1000.
@@ -573,6 +574,9 @@ config ARCH_STRICT_ALIGN
to run kernel only on systems with h/w unaligned access support in
order to optimise for performance.
+ If you want to make sure whether to support unaligned memory access
+ on your hardware, please read the bit 20 of CPUCFG1 register.
+
config CPU_HAS_FPU
bool
default y
--
2.42.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] LoongArch: Update help info of config ARCH_STRICT_ALIGN
2025-08-26 6:39 [PATCH] LoongArch: Update help info of config ARCH_STRICT_ALIGN Tiezhu Yang
@ 2025-08-27 10:17 ` Huacai Chen
0 siblings, 0 replies; 2+ messages in thread
From: Huacai Chen @ 2025-08-27 10:17 UTC (permalink / raw)
To: Tiezhu Yang; +Cc: loongarch, linux-kernel
Applied, thanks.
Huacai
On Tue, Aug 26, 2025 at 2:39 PM Tiezhu Yang <yangtiezhu@loongson.cn> wrote:
>
> Loongson 3A6000 and 3C6000 CPUs also support unaligned memory access, so
> the current description is out of date to some extent.
>
> Actually, all of Loongson-3 series processors based on LoongArch support
> unaligned memory access, this hardware capability is indicated by the bit
> 20 of CPUCFG1 register, update the help info to reflect the reality.
>
> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
> ---
> arch/loongarch/Kconfig | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
> index f0abc38c40ac..fcf6575b02f8 100644
> --- a/arch/loongarch/Kconfig
> +++ b/arch/loongarch/Kconfig
> @@ -563,7 +563,8 @@ config ARCH_STRICT_ALIGN
> -mstrict-align build parameter to prevent unaligned accesses.
>
> CPUs with h/w unaligned access support:
> - Loongson-2K2000/2K3000/3A5000/3C5000/3D5000.
> + Loongson-2K2000/2K3000 and all of Loongson-3 series processors
> + based on LoongArch.
>
> CPUs without h/w unaligned access support:
> Loongson-2K500/2K1000.
> @@ -573,6 +574,9 @@ config ARCH_STRICT_ALIGN
> to run kernel only on systems with h/w unaligned access support in
> order to optimise for performance.
>
> + If you want to make sure whether to support unaligned memory access
> + on your hardware, please read the bit 20 of CPUCFG1 register.
> +
> config CPU_HAS_FPU
> bool
> default y
> --
> 2.42.0
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-27 10:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26 6:39 [PATCH] LoongArch: Update help info of config ARCH_STRICT_ALIGN Tiezhu Yang
2025-08-27 10:17 ` Huacai Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).