Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2274810imm; Thu, 27 Sep 2018 10:04:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV63oABh8Kp5C+3un1qvU8fZkQwEQix339CX4cnskQpOMwbUYwj8nGmyBgjwnx1dSzAsJE0fC X-Received: by 2002:a63:fb09:: with SMTP id o9-v6mr3490441pgh.333.1538067877447; Thu, 27 Sep 2018 10:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538067877; cv=none; d=google.com; s=arc-20160816; b=tAk2B71CY+Tigyl/UNO8stgUuFlFoiwE+Hk1+N8aX6rx1kG2pCTc14DaKJQCAmtOpd wkC48FJPeiCvEERxJBapuBCpPYdEg6k51QB79pzifuESy3mIkPh07KWGMgoxkTSpIqA0 6lwvumM8tjCKn3BSOuauoOIWO7Hfnw4Ud9hjBKn1dvbYp/WLQS9U6hOW6e7dD1hIaeDo tSTEjhi6knXWoHTCqO7ZCjmkprCeDxGkvZ7gnscm9svNVK/HjT1wmVc0aXqGbQoA3mr1 drcijlBoM84aIrjMIVKXQkQZ9cA6kzLaMYWNefyjtwkHomoV+3IfUlKqieKpKVOlKf68 KXnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=Lm2uoGCRPR3iUXOpXHxspw3HX19JQOhb92C/+iIpasU=; b=omEVplNlCzcyLR9tWruN92KvkihuhwdYxqJLSIV0qBW6itH21hsTUzew/BMbVGpMMX 4EhQUFbDddyxyyezwhsrHFQXQn+uIgcTodofBW6OQlZg2ENfSDBrZ/tEQxSJsqXPOx8O xYyliphTF5iwIBypOX14wRKsnvPk49+T73Md8QdtSap/0tvj8LINg8CSlRSFO3HePZ/j MCbLrJIpewL6BFyqbeumDo+hVd8rXAPfa7zBj1RS4AWYTwztMEYikbpW+vDrhNKEy7DZ RwbpEa5pQzRkHdMzjJteOXnlroE4c3hSixVpeAprE15XBihep3/0VmEY4SAOfULyaKvs 2AhQ== 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 a98-v6si2652586pla.396.2018.09.27.10.04.21; Thu, 27 Sep 2018 10:04:37 -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 S1728434AbeI0XXL (ORCPT + 99 others); Thu, 27 Sep 2018 19:23:11 -0400 Received: from terminus.zytor.com ([198.137.202.136]:42781 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727480AbeI0XXL (ORCPT ); Thu, 27 Sep 2018 19:23:11 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w8RH3pDG100180 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 27 Sep 2018 10:03:51 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w8RH3ptB100177; Thu, 27 Sep 2018 10:03:51 -0700 Date: Thu, 27 Sep 2018 10:03:51 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Pu Wen Message-ID: Cc: tglx@linutronix.de, puwen@hygon.cn, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, bp@suse.de Reply-To: bp@suse.de, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, puwen@hygon.cn, hpa@zytor.com In-Reply-To: <79e76c3173716984fe5fdd4a8e2c798bf4193205.1537533369.git.puwen@hygon.cn> References: <79e76c3173716984fe5fdd4a8e2c798bf4193205.1537533369.git.puwen@hygon.cn> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cpu] x86/alternative: Init ideal_nops for Hygon Dhyana Git-Commit-ID: c3fecca457c1aa1c1a2f81bfe68393af244a263e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_24_48 autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: c3fecca457c1aa1c1a2f81bfe68393af244a263e Gitweb: https://git.kernel.org/tip/c3fecca457c1aa1c1a2f81bfe68393af244a263e Author: Pu Wen AuthorDate: Sun, 23 Sep 2018 17:35:01 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 18:28:58 +0200 x86/alternative: Init ideal_nops for Hygon Dhyana The ideal_nops for Hygon Dhyana CPU should be p6_nops. Signed-off-by: Pu Wen Signed-off-by: Borislav Petkov Reviewed-by: Borislav Petkov Cc: tglx@linutronix.de Cc: mingo@redhat.com Cc: hpa@zytor.com Cc: x86@kernel.org Cc: thomas.lendacky@amd.com Link: https://lkml.kernel.org/r/79e76c3173716984fe5fdd4a8e2c798bf4193205.1537533369.git.puwen@hygon.cn --- 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 b9d5e7c9ef43..184e9a06b0ff 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;