Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2280048imm; Thu, 27 Sep 2018 10:09:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV609wIY+LmXryPmZ5Lu8m5GIdigjQKcwl6grWuKWETJG+q9GGpADrrH280jH1xJTn7bfA501 X-Received: by 2002:a63:4cb:: with SMTP id 194-v6mr11229436pge.183.1538068148919; Thu, 27 Sep 2018 10:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538068148; cv=none; d=google.com; s=arc-20160816; b=hhFDFpvXW1pjRNxtDo5JSHq2hGaxgAjdXhq0l0Z56/22Lx2jA1i93tunTVSh1Rny7Y qIbuVqeTM8w3bg9Cw/oH9n29ea5K3m9wlHtIzXgzeywMki4XpqA3m8Q2tBPpvoVvecOl gg0ttinnwuM/DTil8LSQKOy2ONMA8yd0MiqKLOA9yPMERHb+Ko8G3++gJUxsr4arn+Vx scBZQlMcJiB0Ei8pjmCC667j8xK6l0k2H9EkyArVubNb/TwvE+tw4XogFv04I9hrPbAt 5Dv8E/mr038gbC8d9zGxlM0wNXC4Tv/RSWDOVyqFlT4z+66edDJUozYj91Y242EcDmkU 1L5g== 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=A26XyJJTxqkqxPoB4jA6FtU4vScYM8B9B1RhuHoZZqw=; b=EjxrGmvSQW5t/heHeroCxs+Kgx26x0v5wJizR5U4cpeuIiUnv0ZDou3mxL6lrPP+QD DYDukAweUvsdeLXofpBFP3/2W4FpZ42C4zJz+jQTG1VptlYtip14fpyfD+Pybe0e89X0 cUn4QQE3UWiRwLSuu6nvaM+GeZII10pqmL5GtV9nKZGOcoin6m37ptkxb6EUewzpZVOY r5A7tAgEP+m3eyzdEhMBfm2jYj/MrpmwZC8sUuToJkgpVsgwaoyYphHGPlNbxmtzW3+y Ycj13Bxl8FEj00vq0WtdOxgojIosgod4PTYY0dDWrB36i2wARv0zu57Hn4J7gRJb0WcI UsjQ== 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 i82-v6si2616780pfj.190.2018.09.27.10.08.53; Thu, 27 Sep 2018 10:09:08 -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 S1728357AbeI0X1l (ORCPT + 99 others); Thu, 27 Sep 2018 19:27:41 -0400 Received: from terminus.zytor.com ([198.137.202.136]:57135 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727320AbeI0X1l (ORCPT ); Thu, 27 Sep 2018 19:27:41 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w8RH8GcS102368 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 27 Sep 2018 10:08:17 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w8RH8GWZ102365; Thu, 27 Sep 2018 10:08:16 -0700 Date: Thu, 27 Sep 2018 10:08:16 -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: bp@suse.de, hpa@zytor.com, rafael.j.wysocki@intel.com, puwen@hygon.cn, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org Reply-To: puwen@hygon.cn, mingo@kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, bp@suse.de, hpa@zytor.com In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cpu] ACPI: Add Hygon Dhyana support Git-Commit-ID: 7377ed4bd56e6cc1ddbb63f03626fc5b92d3d6fe 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: 7377ed4bd56e6cc1ddbb63f03626fc5b92d3d6fe Gitweb: https://git.kernel.org/tip/7377ed4bd56e6cc1ddbb63f03626fc5b92d3d6fe Author: Pu Wen AuthorDate: Sun, 23 Sep 2018 17:37:05 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 18:29:00 +0200 ACPI: Add Hygon Dhyana support The Hygon Dhyana CPU has NONSTOP TSC feature, so enable the ACPI driver support to it. Signed-off-by: Pu Wen Signed-off-by: Borislav Petkov Acked-by: Rafael J. Wysocki Cc: rjw@rjwysocki.net Cc: tglx@linutronix.de Cc: mingo@redhat.com Cc: hpa@zytor.com Cc: x86@kernel.org Cc: thomas.lendacky@amd.com Cc: lenb@kernel.org Cc: rafael@kernel.org Cc: linux-acpi@vger.kernel.org Link: https://lkml.kernel.org/r/cce6ee26f4e2ebbab493433264d89d7cea661284.1537533369.git.puwen@hygon.cn --- drivers/acpi/acpi_pad.c | 1 + drivers/acpi/processor_idle.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 552c1f725b6c..a47676a55b84 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -70,6 +70,7 @@ static void power_saving_mwait_init(void) #if defined(CONFIG_X86) switch (boot_cpu_data.x86_vendor) { + case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: /* diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index abb559cd28d7..b2131c4ea124 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -205,6 +205,7 @@ static void lapic_timer_state_broadcast(struct acpi_processor *pr, static void tsc_check_state(int state) { switch (boot_cpu_data.x86_vendor) { + case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: case X86_VENDOR_CENTAUR: