All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Fenghua Yu <fenghua.yu@intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
	H Peter Anvin <hpa@zytor.com>, Andi Kleen <andi@firstfloor.org>,
	linux-kernel <linux-kernel@vger.kernel.org>, x86 <x86@kernel.org>
Subject: Re: [PATCH] x86/copy_user_generic: Optimize copy_user_generic with CPU erms feature
Date: Wed, 6 Jun 2012 11:52:01 +0200	[thread overview]
Message-ID: <20120606095201.GI9495@gmail.com> (raw)
In-Reply-To: <1337908785-14015-1-git-send-email-fenghua.yu@intel.com>


* Fenghua Yu <fenghua.yu@intel.com> wrote:

> From: Fenghua Yu <fenghua.yu@intel.com>
> 
> According to Intel 64 and IA-32 SDM and Optimization Reference Manual, beginning
> with Ivybridge, REG string operation using MOVSB and STOSB can provide both
> flexible and high-performance REG string operations in cases like memory copy.
> Enhancement availability is indicated by CPUID.7.0.EBX[9] (Enhanced REP MOVSB/
> STOSB).
> 
> If CPU erms feature is detected, patch copy_user_generic with enhanced fast
> string version of copy_user_generic.
> 
> A few new macros are defined to reduce duplicate code in ALTERNATIVE and
> ALTERNATIVE_2.
> 
> Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
> ---
> checkpatch.pl reports two errors in alternative_call_2() definition. I think
> the errors are invalid and should be ignored:
> ERROR: Macros with complex values should be enclosed in parenthesis
> ERROR: space prohibited before open square bracket '['

ok.

> 
>  arch/x86/include/asm/alternative.h |   74 ++++++++++++++++++++++++++++-------
>  arch/x86/include/asm/uaccess_64.h  |   11 +++++-
>  arch/x86/kernel/x8664_ksyms_64.c   |    1 +
>  3 files changed, 70 insertions(+), 16 deletions(-)

Looks good to me. Peter, Thomas, any objections?

Thanks,

	Ingo

  parent reply	other threads:[~2012-06-06  9:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-25  1:19 [PATCH] x86/copy_user_generic: Optimize copy_user_generic with CPU erms feature Fenghua Yu
2012-05-25  1:50 ` David Miller
2012-05-25  2:47   ` Yu, Fenghua
2012-05-25  3:19     ` David Miller
2012-06-06  9:52 ` Ingo Molnar [this message]
2012-06-29 23:43 ` [tip:x86/asm] " tip-bot for Fenghua Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120606095201.GI9495@gmail.com \
    --to=mingo@kernel.org \
    --cc=andi@firstfloor.org \
    --cc=fenghua.yu@intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.