linux/tools/testing/selftests/powerpc
Sayali Patil 146c9ab38b powerpc/selftests/copyloops: extend selftest to exercise __copy_tofrom_user_power7_vmx
The new PowerPC VMX fast path (__copy_tofrom_user_power7_vmx) is not
exercised by existing copyloops selftests. This patch updates
the selftest to exercise the VMX variant, ensuring the VMX copy path
is validated.

Changes include:
  - COPY_LOOP=test___copy_tofrom_user_power7_vmx with -D VMX_TEST is used
    in existing selftest build targets.
  - Inclusion of ../utils.c to provide get_auxv_entry() for hardware
    feature detection.
  - At runtime, the test skips execution if Altivec is not available.
  - Copy sizes above VMX_COPY_THRESHOLD are used to ensure the VMX
    path is taken.

This enables validation of the VMX fast path without affecting systems
that do not support Altivec.

Signed-off-by: Sayali Patil <sayalip@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260304122201.153049-2-sayalip@linux.ibm.com
2026-03-12 11:03:48 +05:30
..
alignment selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
benchmarks selftests/powerpc: Fix argument order to timer_sub() 2025-01-11 10:39:45 +05:30
cache_shape selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
copyloops powerpc/selftests/copyloops: extend selftest to exercise __copy_tofrom_user_power7_vmx 2026-03-12 11:03:48 +05:30
dexcr selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
dscr selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
eeh selftests/powerpc: make sub-folders buildable on their own 2024-04-29 23:54:42 +10:00
include powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-09-01 13:23:29 +05:30
lib selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
math selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
mce selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
mm selftests/powerpc: Use PKEY_UNRESTRICTED macro 2025-02-17 18:16:36 +00:00
nx-gzip selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
papr_attributes selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
papr_sysparm selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
papr_vpd selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
pmu selftests/powerpc/pmu/: Add check_extended_reg_test to .gitignore 2025-12-22 17:55:07 +05:30
primitives selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
ptrace selftests/powerpc: Use PKEY_UNRESTRICTED macro 2025-02-17 18:16:36 +00:00
scripts selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
security selftests/powerpc: Detect taint change in mitigation patching test 2024-11-07 22:36:31 +11:00
signal selftests/powerpc: Return errors from all tests 2024-11-07 22:36:31 +11:00
stringloops selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
switch_endian selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
syscalls selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
tm selftests/powerpc: Return errors from all tests 2024-11-07 22:36:31 +11:00
vphn selftests/powerpc: Fix typo in test-vphn.c 2024-12-10 08:34:51 +05:30
Makefile selftests/powerpc: Install tests in sub-directories 2024-04-29 23:54:43 +10:00
flags.mk selftests/powerpc: Fix build with USERCFLAGS set 2024-07-06 22:10:14 +10:00
harness.c
utils.c