linux/tools/testing/selftests/powerpc/copyloops
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
..
asm powerpc/64s: Move dcbt/dcbtst sequence into a macro 2024-03-03 23:05:21 +11:00
linux powerpc: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-16 23:54:48 +10:00
.gitignore powerpc/selftests/copyloops: extend selftest to exercise __copy_tofrom_user_power7_vmx 2026-03-12 11:03:48 +05:30
copy_mc_64.S
copy_tofrom_user_reference.S
copyuser_64.S
copyuser_power7.S
exc_validate.c
Makefile powerpc/selftests/copyloops: extend selftest to exercise __copy_tofrom_user_power7_vmx 2026-03-12 11:03:48 +05:30
mem_64.S
memcpy_64.S
memcpy_power7.S
memcpy_stubs.S
memmove_validate.c
settings selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
stubs.S powerpc/selftests/copyloops: extend selftest to exercise __copy_tofrom_user_power7_vmx 2026-03-12 11:03:48 +05:30
validate.c powerpc/selftests/copyloops: extend selftest to exercise __copy_tofrom_user_power7_vmx 2026-03-12 11:03:48 +05:30