From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757515AbbCDOAJ (ORCPT ); Wed, 4 Mar 2015 09:00:09 -0500 Received: from mail.skyhub.de ([78.46.96.112]:50431 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756745AbbCDOAH (ORCPT ); Wed, 4 Mar 2015 09:00:07 -0500 Date: Wed, 4 Mar 2015 14:58:53 +0100 From: Borislav Petkov To: Ingo Molnar Cc: X86 ML , Andy Lutomirski , LKML , Linus Torvalds Subject: Re: [PATCH v2 15/15] x86/lib/memcpy_64.S: Convert memcpy to ALTERNATIVE_2 macro Message-ID: <20150304135853.GF3516@pd.tnic> References: <1424776497-3180-1-git-send-email-bp@alien8.de> <1424776497-3180-16-git-send-email-bp@alien8.de> <20150304072633.GB22014@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150304072633.GB22014@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 04, 2015 at 08:26:33AM +0100, Ingo Molnar wrote: > Since most CPUs we care about have ERMS, wouldn't it be better to > patch in the actual memcpy_erms sequence into the primary memcpy() > function? It's just about 9 bytes AFAICT. Actually, most set REP_GOOD - all Intel family 6 and all relevant AMDs. And only the newer Intels have ERMS. My SNB, for example doesn't while IVB has it. So I'd guess everything >= IVB would have it. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --