Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5362892iog; Wed, 22 Jun 2022 18:29:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sm8mmerM4F3Yv+EYNhK61LDhxEpyf2pXoa5vwOitOS94mepwTk2Dz4jsbmXSLmAhHld8cc X-Received: by 2002:a05:6402:3708:b0:433:2d3b:ed5 with SMTP id ek8-20020a056402370800b004332d3b0ed5mr7578950edb.246.1655947753546; Wed, 22 Jun 2022 18:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655947753; cv=none; d=google.com; s=arc-20160816; b=1BLw0bOVmRTgy6KkrZDdbby8Bzdti/yeJc6jVexGPqjcRmq/cKwumgoJeQK1hZsJ66 rXbLj+y0fnX69xJh79E8nX0akgd2tTuP2adV0gLLgM65MRbUUX5btEwCsDXUnd7SlSLB QBSVwqSmSIEcpReZrYUEuy6wAl1bjN/VVqsmj5nQVobEnwjF52gePwhoU9fdazRFarnU sjYhG3pAPIUbCBgeI2sIWBmWxrDvt7MtHCTs37rzt/nd+vcXhesHyS1tKnzhP4gJbJXU N+QDlWyIb7xfC5KJJl4Z9lNT2r3ZBPxCejJlqwVrSdIhzDeX5J/bHsnUr5EIoPefBsr8 0fPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=vejJGMqLA/8IHhfgJcP5XNBIEr4rJoSbUG8Ib0ofrvo=; b=b1uUYnHzHMrS8qb48WFdoeydbZdL8UcvpvfTRMBT9lWUO/VDP5svT46v9ulQZUEJqg HcpKggaKK9UgaHZkXbB8n8Oqj8wVIMyoFaJvbzmzuz0DHMDV9Gc5S6fBgqoiC4L9l+IE 1dB18gpILh3aRbqRuhi3SNc1ybjdeRLG/hVMJ5Wip93HAHHArsoLLBnoRkU1fim0JLKF fun2b3Pxtepnn+7QMdEAdqoisg2fCj5RHSLjlaagdPA+FZCpXVeA7eZFTBYMbM0gWejV fnIwBq6spEaFPDU0CB869rOrrh51lFvSK2q7wa0hG6qq1ApBx/LtYeCPlEA5IlCVAIs9 ejsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs9-20020a170906dc8900b006fa16afa43fsi5123977ejc.62.2022.06.22.18.28.48; Wed, 22 Jun 2022 18:29:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234308AbiFWBKq (ORCPT + 99 others); Wed, 22 Jun 2022 21:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiFWBKo (ORCPT ); Wed, 22 Jun 2022 21:10:44 -0400 Received: from ZXSHCAS2.zhaoxin.com (ZXSHCAS2.zhaoxin.com [210.0.225.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FFF230F68; Wed, 22 Jun 2022 18:10:41 -0700 (PDT) Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 23 Jun 2022 09:10:38 +0800 Received: from [10.32.64.1] (10.32.64.1) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 23 Jun 2022 09:10:36 +0800 Subject: Re: [PATCH] x86/cstate: Add Zhaoxin ACPI Cx FFH MWAIT support To: "Rafael J. Wysocki" CC: Len Brown , Pavel Machek , "Thomas Gleixner" , Ingo Molnar , "Borislav Petkov" , Dave Hansen , "the arch/x86 maintainers" , "H. Peter Anvin" , Linux PM , Linux Kernel Mailing List , , , , , ACPI Devel Maling List References: From: Tony W Wang-oc Message-ID: <61d5a117-c0d8-8752-5d70-b383530aef86@zhaoxin.com> Date: Thu, 23 Jun 2022 09:10:37 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.32.64.1] X-ClientProxiedBy: ZXSHCAS2.zhaoxin.com (10.28.252.162) To zxbjmbx1.zhaoxin.com (10.29.252.163) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/6/2022 21:38, Rafael J. Wysocki wrote: > Please CC linux-acpi@vger.kernel.org on ACPI-related changes (added now). Ok. > > On Wed, Jun 22, 2022 at 5:29 AM Tony W Wang-oc wrote: >> >> Recent Zhaoxin CPUs support X86_FEATURE_MWAIT that implies the >> MONITOR/MWAIT instructions can be used for ACPI Cx state. The BIOS >> declares Cx state in _CST object to use FFH on Zhaoxin systems. So >> let function ffh_cstate_init() support Zhaoxin too. >> >> Signed-off-by: Tony W Wang-oc >> --- >> arch/x86/kernel/acpi/cstate.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c >> index 7945eae..d4185e1 100644 >> --- a/arch/x86/kernel/acpi/cstate.c >> +++ b/arch/x86/kernel/acpi/cstate.c >> @@ -213,7 +213,9 @@ static int __init ffh_cstate_init(void) >> >> if (c->x86_vendor != X86_VENDOR_INTEL && >> c->x86_vendor != X86_VENDOR_AMD && >> - c->x86_vendor != X86_VENDOR_HYGON) >> + c->x86_vendor != X86_VENDOR_HYGON && >> + c->x86_vendor != X86_VENDOR_CENTAUR && >> + c->x86_vendor != X86_VENDOR_ZHAOXIN) > > Centaur is not mentioned in the changelog and it should be. Will add Centaur in the changelog. Thanks a lot. > >> return -1; >> >> cpu_cstate_entry = alloc_percpu(struct cstate_entry); >> -- > . > -- Sincerely TonyWWang-oc