Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4855549iog; Wed, 22 Jun 2022 07:09:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vsuaAszxZ5fL1RuxA/0xnoq61UFO7fu9C0+GLVeBMcV0GYemaFHFiCzh6hYSMk7lvR2H5/ X-Received: by 2002:a17:90a:ac04:b0:1ec:81d2:739 with SMTP id o4-20020a17090aac0400b001ec81d20739mr28789702pjq.171.1655906961917; Wed, 22 Jun 2022 07:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655906961; cv=none; d=google.com; s=arc-20160816; b=d06RHvXVKmQU9ktXWUUF1AvWxQw9IrJ9YWn5CEtJzKmm3nr0RLX291uG7mEvyGZldZ gI9aCcDE1HGSgXb+x9OtkGI7tvJRs8ebGMc2bPQgPzMjeoMuvT4LCy0+Veo2zpzgcrkT mse2X4AlVe5ohjQ7vg08Qicg9ZrA9D5ImkQiuBgMvQtxkPXxecYL2H/LR7YT4J8pEJaQ iqErzzRmRj+UHQCHo7i/tsect38geAX+HLrWLO+Rs97aTsKtSjHey7hvM1fYwB7k2/SR 6ZkL6jDouge/SXgGCJCTU9ctgTQWsrUpKBiCj1xb30+aWJ0lpidKz6rRQHXb5HhJwQCT WsUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=SWQHo4/Ll0U0MjHnO1yt+1E/OpL+I/MzfVL3cp/Dgl4=; b=cwl9LgPJRCvF64lK/hhQUmKh4n/X9GyW4tTGh++k0DVWRd6uRuDjDXHcXeCfKbEKpq Loe+FiOX1qb4xqdc7QRN3EUtxn7aXMru1Nd2GWSdwOWwsUUjw3+Hw7H/EmpBz4GOp22E v1RRGwxmRCk5+tKC0DIkYHSybOez5XTmvHL18GxuahNw7nd8ixhp8KqTkAoW/myf+PCj NBL2KGZWim/0R6j3r42CTJ6zSmiTy02h1yLA7AVtaW+OxnyDtqC03HJusLhALbcjtquD aoQxF0nubhwhw3VwdXcoWCfA6tFn0FKBnTPBz1iTChRSVj8jR7gHssq4tiZeRBrLCHDW Yr3A== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i20-20020a63e454000000b00408d37d1fa1si22683832pgk.785.2022.06.22.07.09.07; Wed, 22 Jun 2022 07:09:21 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241637AbiFVNjr (ORCPT + 99 others); Wed, 22 Jun 2022 09:39:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356463AbiFVNik (ORCPT ); Wed, 22 Jun 2022 09:38:40 -0400 Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A764F6579; Wed, 22 Jun 2022 06:38:39 -0700 (PDT) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-31780ad7535so136828197b3.8; Wed, 22 Jun 2022 06:38:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SWQHo4/Ll0U0MjHnO1yt+1E/OpL+I/MzfVL3cp/Dgl4=; b=bZ8egskKF1xMps8RZY/NhbRj+jYJx5az6SEnJkGDk+gBDfNbKROyAiI5fV/u2v6GHK SGUa2Rv+jwJ2qTaVeS2dxpfzGmL+TI0mxFqhCLCilo2Wv5aiiTlJ0rtvSHf9OfvKWren UyXXEu+hJCxHKBWeI0bv5sDM+A15578MhdXvFEPzbkXiKuYi0MS4MnUneylB2S1wWS/1 sj3d2LJmINdGvyTA+zKjGEpuEg9NfBBkiu6u/enxFe5jwBemwp++bF5Gd4VVFncqKA1s Xd4l8q7i8VdMm4P/WK5XynBxrc71WUJGbtWAgk0P1Xl0UfSlYmqD2Y+UJm95dK+Q6q91 RLPw== X-Gm-Message-State: AJIora8yw0HDa58CGmtUKRHKLGBWvsiNLUgunE7sM2KtT9kQrcOiTy74 p6WKfdkhjExEQwwO52FyDPSywI4/u0flPO+F4uU= X-Received: by 2002:a81:68d7:0:b0:318:11df:a40d with SMTP id d206-20020a8168d7000000b0031811dfa40dmr4453973ywc.196.1655905118755; Wed, 22 Jun 2022 06:38:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 22 Jun 2022 15:38:27 +0200 Message-ID: Subject: Re: [PATCH] x86/cstate: Add Zhaoxin ACPI Cx FFH MWAIT support To: Tony W Wang-oc Cc: "Rafael J. Wysocki" , 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 , CobeChen@zhaoxin.com, TimGuo@zhaoxin.com, LindaChai@zhaoxin.com, LeoLiu@zhaoxin.com, ACPI Devel Maling List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Please CC linux-acpi@vger.kernel.org on ACPI-related changes (added now). 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. > return -1; > > cpu_cstate_entry = alloc_percpu(struct cstate_entry); > --