maoxiaochuan
30535140db
LoongArch: Wire up memfd_secret system call
...
LoongArch supports ARCH_HAS_SET_DIRECT_MAP, therefore wire up the
memfd_secret system call, which just depends on it.
Acked-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org >
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org >
Signed-off-by: Lain "Fearyncess" Yang <fearyncess@aosc.io >
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn >
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn >
2026-08-24 10:58:15 +08:00
Tiezhu Yang
ba9b0a3d98
selftests/bpf: Use asm constraint "m" for LoongArch
...
Currently, LoongArch LLVM does not support the constraint "o" and no plan
to support it, it only supports the similar constraint "m", so change the
constraints from "nor" in the "else" case to arch-specific "nmr" to avoid
the build error such as "unexpected asm memory constraint" for LoongArch.
Fixes: 630301b0d59d ("selftests/bpf: Add basic USDT selftests")
Suggested-by: Weining Lu <luweining@loongson.cn >
Suggested-by: Li Chen <chenli@loongson.cn >
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn >
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn >
Cc: stable@vger.kernel.org
Link: https://llvm.org/docs/LangRef.html#supported-constraint-code-list
Link: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp#L172
Link: https://lore.kernel.org/bpf/20241219111506.20643-1-yangtiezhu@loongson.cn
Signed-off-by: michael <michael5hzg@gmail.com >
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn >
2025-02-13 14:26:47 +08:00
Thomas Weißschuh
4446fedda2
kunit: qemu_configs: loongarch: Enable shutdown
...
QEMU for LoongArch does not yet support shutdown/restart through ACPI.
Use the pvpanic driver to enable shutdowns.
This requires 9.1.0 for shutdown support in pvpanic, but that is the
requirement of kunit on LoongArch anyways.
Link: https://lore.kernel.org/r/20241111-kunit-loongarch-v2-3-7676eb5f2da3@linutronix.de
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de >
Reviewed-by: Bibo Mao <maobibo@loongson.cn >
Reviewed-by: David Gow <davidgow@google.com >
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
Signed-off-by: michael <michael5hzg@gmail.com >
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn >
2025-02-13 14:26:46 +08:00
Thomas Weißschuh
8dc9cc362a
kunit: qemu_configs: Add LoongArch config
...
Add a basic config to run kunit tests on LoongArch.
This requires QEMU 9.1.0 or later for the necessary direct kernel boot
support.
Link: https://lore.kernel.org/r/20241111-kunit-loongarch-v2-1-7676eb5f2da3@linutronix.de
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de >
Reviewed-by: Bibo Mao <maobibo@loongson.cn >
Reviewed-by: David Gow <davidgow@google.com >
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
Signed-off-by: michael <michael5hzg@gmail.com >
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn >
2025-02-13 14:26:46 +08:00
maoxiaochuan
8b074cffbf
init src (linux-6.12.0)
2025-02-13 14:11:16 +08:00