Re: [PATCH bpf-next 0/4] selftests/bpf: Fix a few test failures with arm64 64KB page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 6/6/25 9:30 AM, Andrii Nakryiko wrote:
On Thu, Jun 5, 2025 at 8:23 PM Yonghong Song <yonghong.song@xxxxxxxxx> wrote:
My local arm64 host has 64KB page size and the VM to run test_progs
also has 64KB page size. There are a few self tests assuming 4KB page
and hence failed in my envorinment. Patch 1 tries to reduce long assert
typo: environment

logs when tail failed. Patches 2-4 fixed three selftest failures.
How come our BPF CI doesn't catch this on aarch64?.. Ihor, any thoughts?

In CI for aarch64, the page size is 4KB. For example, for this link:

https://github.com/kernel-patches/bpf/actions/runs/15482212552/job/43590176563?pr=9053

Find the kconfig, and we have

  CONFIG_ARM64_4K_PAGES=y
  # CONFIG_ARM64_16K_PAGES is not set
  # CONFIG_ARM64_64K_PAGES is not set

and for 4K page, all these tests are fine, but not for 64K page.



Yonghong Song (4):
   selftests/bpf: Reduce test_xdp_adjust_frags_tail_grow logs
   selftests/bpf: Fix bpf_mod_race test failure with arm64 64KB page size
   selftests/bpf: Fix ringbuf/ringbuf_write test failure with arm64 64KB
     page size
   selftests/bpf: Fix a user_ringbuf failure with arm64 64KB page size

  .../selftests/bpf/prog_tests/bpf_mod_race.c    |  2 +-
  .../testing/selftests/bpf/prog_tests/ringbuf.c |  5 +++--
  .../selftests/bpf/prog_tests/user_ringbuf.c    |  6 ++++--
  .../selftests/bpf/prog_tests/xdp_adjust_tail.c | 18 ++++++++++++------
  .../selftests/bpf/progs/test_ringbuf_write.c   |  5 +++--
  5 files changed, 23 insertions(+), 13 deletions(-)

--
2.47.1






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux