lkml.org 
[lkml]   [2011]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/9] Optimize string operations by enhanced REP MOVSB/STOSB
Date
From: Fenghua Yu <fenghua.yu@intel.com>

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
MOVSB/STOSB
x86/lib/copy_user_64.S: Support copy_to_user/copy_from_user by
enhanced REP MOVSB/STOSB
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(-)

--
1.7.2



\
 
 \ /
  Last update: 2011-05-18 00:45    [W:0.090 / U:3.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site