[PATCH 0/9] Optimize string operations by enhanced REP MOVSB/STOSB

From: Fenghua Yu
Date: Tue May 17 2011 - 18:42:37 EST

From: Fenghua Yu <fenghua.yu@xxxxxxxxx>

Intel processors are adding enhancements to REP MOVSB/STOSB and the use of
REP MOVSB/STOSB for optimal memcpy/memset or similar functions is recommended.
Enhancement availability is indicated by CPUID.7.0.EBX[9] (Enhanced REP MOVSB/STOSB).

Intel 64 and IA-32 SDM and performance optimization guide may include more model
specific information and how the feature can be used. The documents will be
published soon.

Fenghua Yu (9):
x86, cpu: Enable enhanced REP MOVSB/STOSB feature
x86/kernel/cpu/intel.c: Initialize Enhanced REP MOVSB/STOSBenhanced
x86/kernel/alternative.c: Add comment for applying alternatives order
x86, alternative-asm.h: Add altinstruction_entry macro
x86/lib/clear_page_64.S: Support clear_page() with enhanced REP
x86/lib/copy_user_64.S: Support copy_to_user/copy_from_user by
x86/lib/memcpy_64.S: Optimize memcpy by enhanced REP MOVSB/STOSB
x86/lib/memmove_64.S: Optimize memmove by enhanced REP MOVSB/STOSB
x86/lib/memset_64.S: Optimize memset by enhanced REP MOVSB/STOSB

arch/x86/include/asm/alternative-asm.h | 9 ++++
arch/x86/include/asm/cpufeature.h | 1 +
arch/x86/kernel/alternative.c | 9 ++++
arch/x86/kernel/cpu/intel.c | 19 +++++++--
arch/x86/lib/clear_page_64.S | 33 ++++++++++++----
arch/x86/lib/copy_user_64.S | 65 +++++++++++++++++++++++++++-----
arch/x86/lib/memcpy_64.S | 45 ++++++++++++++++------
arch/x86/lib/memmove_64.S | 29 ++++++++++++++-
arch/x86/lib/memset_64.S | 54 ++++++++++++++++++++------
9 files changed, 215 insertions(+), 49 deletions(-)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/