arch/loongarch/Kconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
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
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 > >
© 2016 - 2025 Red Hat, Inc.