Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2318324imm; Tue, 4 Sep 2018 02:17:23 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb6Sz5ICCbHM+h8hacoh9TEliLCodfq0GllD4RYheWEQRJkWgecqNZ6VekLisezL7b8mxIa X-Received: by 2002:a62:c9:: with SMTP id 192-v6mr33491898pfa.99.1536052643374; Tue, 04 Sep 2018 02:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536052643; cv=none; d=google.com; s=arc-20160816; b=GwMBSroxznrw8SCjqIgJIWbGKy4KA9bqkoQf+NO9Wp36wn3bsXKuevsp2Oo6jQ76/C /Tmw6P3NbehTkIiqYETpKwdpkyThaGuTZoMkAFZ4/zm+46f11m+pOIvdD3uVsTIr+0dP Ri4HzRUxZR36+CJ60hczNvw81HsqAVy8XYpLB16XKQuU2HyFt9ERRxP00oJcO52jcsj4 5+P4B9+5yZhbJfkVHpzmjFPiR7yQjZjFwt3Atnk5swK7jKgQm4OhP4VoIc2aQZi8r19b BOtTGDtIFx5jZjeZgA+Dk3QI3bwVxvCmNaVYHr7rUvw46i5TgvSkOFfcGyzIX4Mgu0nm jfjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=HTEpK4Tjli4crmwlIExLL0Jv3Py1wnxZrhMFVR27SC8=; b=TJVfmNp45T1on1uEpS74TW1QOGugm48z1qKwfJrjBSiwIK7Dyk9XaB0a/Ydpq0kIuc VvmIZf7VCFI1dToSKm8PmdxwYBy+rxPwg7r9y+xcWR5DqLLi80MKcbOpsJn7PglMphXP NtD0GNBwtNVsK31UWlSq6qyK/cdOTQNUZ/31cd4VqWNSuAOIxf14x7MTu4hIQPdB3WIP BnkmpetwTtp6XRIQe4ik9hwR0dLim7tZrtmEPL0YVDo0/kW4BoomgZFnfITxHuM/MFwB pPgTK0FyvHiQQuHQtdBEuLD0dGE23SsGUZInq2OvBfLFjmyg3dsK37NUzSJ4YWsHuX7a Ms+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63-v6si20788083plb.106.2018.09.04.02.17.07; Tue, 04 Sep 2018 02:17:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727234AbeIDNkP (ORCPT + 99 others); Tue, 4 Sep 2018 09:40:15 -0400 Received: from mail.skyhub.de ([5.9.137.197]:36192 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726295AbeIDNkP (ORCPT ); Tue, 4 Sep 2018 09:40:15 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yb5bC5t3mX_e; Tue, 4 Sep 2018 11:15:42 +0200 (CEST) Received: from zn.tnic (p200300EC2BC9A500329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bc9:a500:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 605DF1EC01AF; Tue, 4 Sep 2018 11:15:42 +0200 (CEST) Date: Tue, 4 Sep 2018 11:15:36 +0200 From: Borislav Petkov 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 Subject: Re: [PATCH v5 04/16] x86/smpboot: smp init nodelay and no flush caches before sleep Message-ID: <20180904091536.GE32615@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 29, 2018 at 08:43:41PM +0800, Pu Wen wrote: > Dhyana use no delay in smp_quirk_init_udelay(), and return in > mwait_play_dead() as AMD does. > > Signed-off-by: Pu Wen > --- > arch/x86/kernel/smpboot.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c > index f02ecaf..5369d7f 100644 > --- a/arch/x86/kernel/smpboot.c > +++ b/arch/x86/kernel/smpboot.c > @@ -676,6 +676,7 @@ static void __init smp_quirk_init_udelay(void) > > /* if modern processor, use no delay */ > if (((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) && (boot_cpu_data.x86 == 6)) || > + ((boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) && (boot_cpu_data.x86 >= 0x18)) || > ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) && (boot_cpu_data.x86 >= 0xF))) { > init_udelay = 0; > return; > @@ -1592,7 +1593,8 @@ static inline void mwait_play_dead(void) > void *mwait_ptr; > int i; > > - if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) > + if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD || > + boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) > return; > if (!this_cpu_has(X86_FEATURE_MWAIT)) > return; > -- Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.