From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH v5 06/16] x86/nops: init ideal_nops for Hygon Date: Tue, 4 Sep 2018 16:01:55 +0200 Message-ID: <20180904140155.GH32615@zn.tnic> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Pu Wen Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, pbonzini@redhat.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org List-Id: linux-arch.vger.kernel.org On Wed, Aug 29, 2018 at 08:44:07PM +0800, Pu Wen wrote: > The ideal_nops for Dhyana processors should be p6_nops. > > Signed-off-by: Pu Wen > --- > arch/x86/kernel/alternative.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c > index 014f214..3f51d1c 100644 > --- a/arch/x86/kernel/alternative.c > +++ b/arch/x86/kernel/alternative.c > @@ -222,6 +222,10 @@ void __init arch_init_ideal_nops(void) > } > break; > > + case X86_VENDOR_HYGON: > + ideal_nops = p6_nops; > + return; > + > case X86_VENDOR_AMD: > if (boot_cpu_data.x86 > 0xf) { > ideal_nops = p6_nops; > -- Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.skyhub.de ([5.9.137.197]:46132 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbeIDS1f (ORCPT ); Tue, 4 Sep 2018 14:27:35 -0400 Date: Tue, 4 Sep 2018 16:01:55 +0200 From: Borislav Petkov Subject: Re: [PATCH v5 06/16] x86/nops: init ideal_nops for Hygon Message-ID: <20180904140155.GH32615@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Pu Wen Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, pbonzini@redhat.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Message-ID: <20180904140155.0xSkvS-9brPrpqRRsiNKJvUKsisFCGJwCwdeAU2rCtg@z> On Wed, Aug 29, 2018 at 08:44:07PM +0800, Pu Wen wrote: > The ideal_nops for Dhyana processors should be p6_nops. > > Signed-off-by: Pu Wen > --- > arch/x86/kernel/alternative.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c > index 014f214..3f51d1c 100644 > --- a/arch/x86/kernel/alternative.c > +++ b/arch/x86/kernel/alternative.c > @@ -222,6 +222,10 @@ void __init arch_init_ideal_nops(void) > } > break; > > + case X86_VENDOR_HYGON: > + ideal_nops = p6_nops; > + return; > + > case X86_VENDOR_AMD: > if (boot_cpu_data.x86 > 0xf) { > ideal_nops = p6_nops; > -- Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.