mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH bpf-next v1 0/5] selftests/bpf: Enable private stack, large stack and arena tests for LoongArch
@ 2026-11-26  5:53 George Guo
  2026-11-26  5:53 ` [PATCH bpf-next v1 1/5] selftests/bpf: Use unsigned loop counter in test_buddy_alloc_free George Guo
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: George Guo @ 2026-11-26  5:53 UTC (permalink / raw)
  To: ast, daniel, andrii, eddyz87, memxor
  Cc: bpf, loongarch, linux-kernel, George Guo

From: George Guo <guodongtai@kylinos.cn>

This series enables the BPF selftests for the new LoongArch JIT
features, and fixes a libarena build failure with clang 19.

Patch 1 fixes the build of the libarena buddy allocator selftests with
clang 19, which refuses the signed remainder in test_buddy_alloc_free().

Patches 2-5 enable the following tests for LoongArch:

  - the 2 KiB private stack test in verifier_large_stack
  - the struct_ops private stack tests
  - the arena LDSX tests in verifier_ldsx
  - the arena load-acquire and store-release tests in arena_atomics, and
    the libarena spmc and bitmap parallel tests

The LoongArch JIT support for these features is in the following series,
which goes through the LoongArch tree:

  LoongArch: BPF: Add private stack, exceptions, large stack and arena support
  https://lore.kernel.org/loongarch/20261126034048.7370-1-dongtai.guo@linux.dev/T/#u

These patches were part of v2 of the LoongArch BPF series:
https://lore.kernel.org/loongarch/20260702022322.51033-1-dongtai.guo@linux.dev/

Since then:
  - Split the selftests patches out of the LoongArch series and rebase
    them onto bpf-next.
  - New patch 1: use an unsigned loop counter in test_buddy_alloc_free.
  - New patch 2: enable the 2 KiB private stack test.
  - Patch 5: also enable the libarena spmc test, which has the same
    guard as arena_atomics (Sashiko), and the libarena bitmap test,
    which needs cmpxchg on arena too.
  - Drop "selftests/bpf: Add LoongArch deny list" (Tiezhu).
  - Reword the subjects and commit messages.

George Guo (5):
  selftests/bpf: Use unsigned loop counter in test_buddy_alloc_free
  selftests/bpf: Enable 2 KiB private stack test for LoongArch
  selftests/bpf: Enable struct_ops private stack tests for LoongArch
  selftests/bpf: Enable arena LDSX tests for LoongArch
  selftests/bpf: Enable arena atomics tests for LoongArch

 .../bpf/libarena/selftests/test_buddy.bpf.c     |  3 ++-
 .../selftests/test_parallel_bitmap.bpf.c        |  1 +
 .../libarena/selftests/test_parallel_spmc.bpf.c |  1 +
 .../bpf/prog_tests/struct_ops_private_stack.c   |  3 ++-
 .../testing/selftests/bpf/progs/arena_atomics.c |  3 +++
 .../selftests/bpf/progs/verifier_large_stack.c  |  1 +
 .../testing/selftests/bpf/progs/verifier_ldsx.c | 17 +++++++++++++++++
 7 files changed, 27 insertions(+), 2 deletions(-)


base-commit: 486b5ce7184f7449ef2fe1e951455b0b8a114060
-- 
2.53.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-26  6:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26  5:53 [PATCH bpf-next v1 0/5] selftests/bpf: Enable private stack, large stack and arena tests for LoongArch George Guo
2026-11-26  5:53 ` [PATCH bpf-next v1 1/5] selftests/bpf: Use unsigned loop counter in test_buddy_alloc_free George Guo
2026-11-26  5:53 ` [PATCH bpf-next v1 2/5] selftests/bpf: Enable 2 KiB private stack test for LoongArch George Guo
2026-11-26  5:53 ` [PATCH bpf-next v1 3/5] selftests/bpf: Enable struct_ops private stack tests " George Guo
2026-11-26  5:53 ` [PATCH bpf-next v1 4/5] selftests/bpf: Enable arena LDSX " George Guo
2026-11-26  5:53 ` [PATCH bpf-next v1 5/5] selftests/bpf: Enable arena atomics " George Guo
2026-11-26  6:06 ` [PATCH bpf-next v1 0/5] selftests/bpf: Enable private stack, large stack and arena " Alexei Starovoitov

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®