[GIT PULL] LoongArch changes for v7.0

From: Huacai Chen

Date: Sat Feb 14 2026 - 08:16:13 EST


The following changes since commit 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b:

Linux 6.19 (2026-02-08 13:03:27 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git tags/loongarch-7.0

for you to fetch changes up to 92860256402cce9fa6268763365f5333a56c1428:

LoongArch: dts: loongson-2k1000: Add nand controller support (2026-02-10 19:31:33 +0800)

----------------------------------------------------------------
LoongArch changes for v7.0

1, Select HAVE_CMPXCHG_{LOCAL,DOUBLE};
2, Add 128-bit atomic cmpxchg support;
3, Add HOTPLUG_SMT implementation;
4, Wire up memfd_secret system call;
5, Fix boot errors and unwind errors for KASAN;
6, Use BPF prog pack allocator and add BPF arena support;
7, Update dts files to add nand controllers;
8, Some bug fixes and other small changes.

----------------------------------------------------------------
Binbin Zhou (2):
LoongArch: dts: loongson-2k0500: Add nand controller support
LoongArch: dts: loongson-2k1000: Add nand controller support

Carlos López (1):
LoongArch: Use IS_ERR_PCPU() macro for KGDB

George Guo (3):
LoongArch: Add detection for SC.Q support
LoongArch: Add 128-bit atomic cmpxchg support
LoongArch: Replace seq_printf() with seq_puts() for simple strings

Hengqi Chen (3):
LoongArch: BPF: Use BPF prog pack allocator
LoongArch: BPF: Implement PROBE_MEM32 pseudo instructions
LoongArch: BPF: Implement bpf_addr_space_cast instruction

Huacai Chen (3):
LoongArch: Select HAVE_CMPXCHG_LOCAL in Kconfig
LoongArch: Add HOTPLUG_SMT implementation
LoongArch: Prefer top-down allocation after arch_mem_init()

John Garry (1):
LoongArch: Make cpumask_of_node() robust against NUMA_NO_NODE

Lain "Fearyncess" Yang (1):
LoongArch: Wire up memfd_secret system call

Tiezhu Yang (6):
LoongArch: Use %px to print unmodified unwinding address
LoongArch: Handle percpu handler address for ORC unwinder
LoongArch: Guard percpu handler under !CONFIG_PREEMPT_RT
LoongArch: Remove some extern variables in source files
LoongArch: Disable instrumentation for setup_ptwalker()
LoongArch: Rework KASAN initialization for PTW-enabled systems

Documentation/admin-guide/kernel-parameters.txt | 2 +-
arch/loongarch/Kconfig | 4 +
arch/loongarch/boot/dts/loongson-2k0500-ref.dts | 19 +++
arch/loongarch/boot/dts/loongson-2k0500.dtsi | 12 +-
arch/loongarch/boot/dts/loongson-2k1000-ref.dts | 22 +++
arch/loongarch/boot/dts/loongson-2k1000.dtsi | 13 +-
arch/loongarch/include/asm/cmpxchg.h | 54 +++++++
arch/loongarch/include/asm/cpu-features.h | 1 +
arch/loongarch/include/asm/cpu.h | 62 +++----
arch/loongarch/include/asm/setup.h | 3 +
arch/loongarch/include/asm/topology.h | 2 +-
arch/loongarch/include/asm/unistd.h | 1 +
arch/loongarch/include/uapi/asm/hwcap.h | 1 +
arch/loongarch/kernel/Makefile.syscalls | 5 +-
arch/loongarch/kernel/cpu-probe.c | 4 +
arch/loongarch/kernel/kgdb.c | 2 +-
arch/loongarch/kernel/proc.c | 63 +++++---
arch/loongarch/kernel/setup.c | 1 +
arch/loongarch/kernel/smp.c | 13 ++
arch/loongarch/kernel/unwind_orc.c | 18 ++-
arch/loongarch/kernel/unwind_prologue.c | 6 +-
arch/loongarch/mm/kasan_init.c | 78 ++++-----
arch/loongarch/mm/tlb.c | 3 +-
arch/loongarch/net/bpf_jit.c | 206 +++++++++++++++++++-----
arch/loongarch/net/bpf_jit.h | 4 +-
tools/testing/selftests/mm/Makefile | 2 +-
26 files changed, 449 insertions(+), 152 deletions(-)