Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp285298ybd; Sat, 22 Jun 2019 03:18:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3uvtIpOIlNKvzCQJG3y9phBL795FawSQaJGlTyAw9YlqBKrLV0VBR54wNExkRnYKSaJPw X-Received: by 2002:a63:c302:: with SMTP id c2mr21414505pgd.300.1561198703093; Sat, 22 Jun 2019 03:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561198703; cv=none; d=google.com; s=arc-20160816; b=i8ZwOvXrW1qGss0JYBl3JQjxb5/3a68i5ICH8IFvKFcYp1GeP1oE92iRJ4opjL3HuC JgGhlitTQpwMG09Si3K1qZWESnaDSpOpV4HSeLTP5++Y7wKbiuvHL7eIKOnlvJZe/7eH K3XLBrOoqgq/uHm7d1cZ9aw8i4BYSUd1Fc16Z/7BGRCoW6tUZffu9gGQAyMHHCwX8yUs w7UNwzkRz1VxuRoE6xHJHIGh8LVFp+797/GMSh7Ov57G+AOvCeYsW3m0av/DGR0Kacea m+Mthjwp/8EjnN1EX7ONx/nqy25g7uE24rFHpKqOas62gsA6QRzVm2mKQUTWZdzgTLTB y5/Q== 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:dkim-signature:dkim-filter; bh=zgVpyglInROjudxCEYYGJTa1FJpVm0qGd01pxcrAV3Q=; b=wfUmoTdbJd1kUJBRNEk6F2Gvd/VRv1wXAQHK3O5tJDRJIsya7M53PwtqXTJFWbFtN0 pYoqVDhgnyjt1y6uUP54sn0GihpPav62XALMkSmMgN+bwvtbTcIb33tNScRDZviwrz0l SXrUotv8ALblxK8NRj21gh/kouCtUCqoZhjtUwcR5ksca1bBkdH1c6Jux3UGGcIj2zBn g6NZHv0wYjyCLZd1gf525oiTDeNDwLpckCr1uVC60DVpB0/HpiqJwthtADkzYfFV+r3F 8MyUQLu2NtRDIqRyCzFWt5jn39o+mLo9F2NnndKKGuDddoUCz9glK7PqNf9OIrT9f7SZ qL/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=HlqaBFCr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si5072697pjq.108.2019.06.22.03.18.07; Sat, 22 Jun 2019 03:18: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; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=HlqaBFCr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726350AbfFVKRw (ORCPT + 99 others); Sat, 22 Jun 2019 06:17:52 -0400 Received: from terminus.zytor.com ([198.137.202.136]:55707 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbfFVKRw (ORCPT ); Sat, 22 Jun 2019 06:17:52 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x5MAHhYQ2098813 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 22 Jun 2019 03:17:43 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x5MAHhYQ2098813 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019061801; t=1561198664; bh=zgVpyglInROjudxCEYYGJTa1FJpVm0qGd01pxcrAV3Q=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=HlqaBFCrU5FgLIuQ1WnHOlxNGZQcIlhntLqW1Yk+GPmvkAc2hCw5Bj1EhtjH5tBoH KYYeB7ntS9Fq+Qabntk2ikYzTbquL42soY9LKvg3qWKA5aVqo/h9bd3a3Lq3KFHy19 TB3gaCM1FfKCaxm5Si3WMcUi8YFVwytIMmtA7yVM7opMR/+kXmOHxMlsTkI15HVrPT 0TwQk9OoeUGKTPNMZElx97BbZ8AzOkbC5ukhQyyykegHQATlcUeG7GVdP8Lk2vRPJc MRZcmJ0zQTzU6eOqfkYOL1n5TMgUMO9wv/W37NkVBGAX92HsvvSWpfqSuq6VyciXv8 RlckHjiArVq/w== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x5MAHgXK2098810; Sat, 22 Jun 2019 03:17:42 -0700 Date: Sat, 22 Jun 2019 03:17:42 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Tony W Wang-oc Message-ID: Cc: gregkh@linuxfoundation.org, DavidWang@zhaoxin.com, HerryYang@zhaoxin.com, TonyWWang-oc@zhaoxin.com, CooperYan@zhaoxin.com, QiyuanWang@zhaoxin.com, linux-kernel@vger.kernel.org, hpa@zytor.com, rjw@rjwysocki.net, lenb@kernel.org, mingo@kernel.org, tglx@linutronix.de Reply-To: QiyuanWang@zhaoxin.com, gregkh@linuxfoundation.org, DavidWang@zhaoxin.com, hpa@zytor.com, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, lenb@kernel.org, HerryYang@zhaoxin.com, mingo@kernel.org, tglx@linutronix.de, TonyWWang-oc@zhaoxin.com, CooperYan@zhaoxin.com In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cpu] ACPI, x86: Add Zhaoxin processors support for NONSTOP TSC Git-Commit-ID: 773b2f30a3fc026f3ed121a8b945b0ae19b64ec5 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=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: 773b2f30a3fc026f3ed121a8b945b0ae19b64ec5 Gitweb: https://git.kernel.org/tip/773b2f30a3fc026f3ed121a8b945b0ae19b64ec5 Author: Tony W Wang-oc AuthorDate: Tue, 18 Jun 2019 08:37:14 +0000 Committer: Thomas Gleixner CommitDate: Sat, 22 Jun 2019 11:45:57 +0200 ACPI, x86: Add Zhaoxin processors support for NONSTOP TSC Zhaoxin CPUs have NONSTOP TSC feature, so enable the ACPI driver support for it. Signed-off-by: Tony W Wang-oc Signed-off-by: Thomas Gleixner Cc: "hpa@zytor.com" Cc: "gregkh@linuxfoundation.org" Cc: "rjw@rjwysocki.net" Cc: "lenb@kernel.org" Cc: David Wang Cc: "Cooper Yan(BJ-RD)" Cc: "Qiyuan Wang(BJ-RD)" Cc: "Herry Yang(BJ-RD)" Link: https://lkml.kernel.org/r/d1cfd937dabc44518d42038b55522c53@zhaoxin.com --- 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 6b3f1217a237..e7dc0133f817 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -64,6 +64,7 @@ static void power_saving_mwait_init(void) case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: + case X86_VENDOR_ZHAOXIN: /* * AMD Fam10h TSC will tick in all * C/P/S0/S1 states when this bit is set. diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index e387a258d649..ed56c6d20b08 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -196,6 +196,7 @@ static void tsc_check_state(int state) case X86_VENDOR_AMD: case X86_VENDOR_INTEL: case X86_VENDOR_CENTAUR: + case X86_VENDOR_ZHAOXIN: /* * AMD Fam10h TSC will tick in all * C/P/S0/S1 states when this bit is set.