powerpc/selftests/copyloops: extend selftest to exercise __copy_tofrom_user_power7_vmx
Ritesh Harjani (IBM)
Reviewed-byQuoted 14 lines · Sayali Patil
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 -DVMX_TESTis used in existing selftest build targets.
- Inclusion of../utils.cto provideget_auxv_entry()for hardware feature detection.
- At runtime, the test skips execution if Altivec is not available.
- Copy sizes aboveVMX_COPY_THRESHOLDare used to ensure the VMX path is taken.
Quoted 6 lines
This enables validation of the VMX fast path without affecting systems that do not support Altivec.
Signed-off-by Sayali Patil <[email protected]>---
The changes looks good to me. Please feel free to add:
Reviewed-by Ritesh Harjani (IBM) <[email protected]>