Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp110179iog; Wed, 29 Jun 2022 19:22:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1szXfQego8341aVL17IEx7UTov26c/xpVXUv0GYu/7HMp+hzCLxMsFY6qnFtzc06ciy1uIc X-Received: by 2002:a63:af1c:0:b0:40c:f9d6:9f07 with SMTP id w28-20020a63af1c000000b0040cf9d69f07mr5396506pge.384.1656555746505; Wed, 29 Jun 2022 19:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656555746; cv=none; d=google.com; s=arc-20160816; b=t5ds2J5RaDYq4EENERJ1CAL0Bnn+eo2rPxB6c7+J8lfvmSVTbQvAI+eqSqmkqEmUYh 3dHmDQMT5XAzN8LeyrTHkxjjyjxKP/jqbO2Kb39oyUw3r4Ui4ZkSPLZRFd1LTHnxIuX3 JUblJiyJ0aVEic18nTEfTA99PG+I0B6KtlLYR+XntnVK/jc79BcjKqylPBUZZIbAaeny NPpSO4MDbGK50WVSBJSh8cITDpxE1DexVZvLqg3nDEBSWo2Jc7JMvVFu9ctYSrwjxZ1X YCIaDVVXlTuJSUGloDADFEwTembIkNiCBwvWxYrJ3gTtFftilRp1ca1vSCGwJPnkRI6D WbJQ== 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=oL+7TQQZgbKFm05AxqR50EUXWVozfis/XB3XrToeckQ=; b=qjso6J0+0lLuzfJBxd0qFJaZ9sUsfsvVbqzTFcNL9DQ0kpnu8P2w37KRkqpw8neJvz 89xgjL+SC+0K9XdOI2RZvQ1g25bqcyJOXOqV01rxnRLSrpkvKNsSzbGfuFlR7iD4filO r5AYSb1WksXCPxD80jv75ylg4oGr4NJOknvmkoAtlIrZEGsVkmCT8p2yg6VmkJziryeq 9i93IKiLSD6qWBMFklab8AMm/MOg8QegIaf/O8cesJchfiT16smgbrLrglUOJ4z6kMj7 +BnE+kzt25dhR/R/mmOyeStCRnCa8BLcKaODqecuYbMSp8dybA0Dye6DfZRVo7medOPD Rh0w== 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 ja1-20020a170902efc100b0016a613012a7si22655031plb.414.2022.06.29.19.22.07; Wed, 29 Jun 2022 19:22:26 -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 S230124AbiF3B6P (ORCPT + 99 others); Wed, 29 Jun 2022 21:58:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiF3B6M (ORCPT ); Wed, 29 Jun 2022 21:58:12 -0400 Received: from ZXSHCAS1.zhaoxin.com (ZXSHCAS1.zhaoxin.com [210.0.225.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D80C248; Wed, 29 Jun 2022 18:58:06 -0700 (PDT) Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS1.zhaoxin.com (10.28.252.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 30 Jun 2022 09:58:03 +0800 Received: from [10.32.56.37] (10.32.56.37) 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, 30 Jun 2022 09:58:01 +0800 Subject: Re: [PATCH V2] cpufreq: Add Zhaoxin/Centaur turbo boost control interface support To: "Rafael J. Wysocki" CC: Viresh Kumar , Linux PM , Linux Kernel Mailing List , , , , , ACPI Devel Maling List References: From: Tony W Wang-oc Message-ID: <2d961645-75e4-de10-47d5-b3351c54fa0b@zhaoxin.com> Date: Thu, 30 Jun 2022 09:58:00 +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.56.37] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) 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 30/6/2022 02:16, Rafael J. Wysocki wrote: > On Thu, Jun 23, 2022 at 3:21 AM Tony W Wang-oc wrote: >> >> Recent Zhaoxin/Centaur CPUs support X86_FEATURE_IDA and the turbo boost >> can be dynamically enabled or disabled through MSR 0x1a0[38] in the same >> way as Intel. So add turbo boost control support for these CPUs too. >> >> Signed-off-by: Tony W Wang-oc >> --- >> drivers/cpufreq/acpi-cpufreq.c | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c >> index 3d514b8..1bb2b90 100644 >> --- a/drivers/cpufreq/acpi-cpufreq.c >> +++ b/drivers/cpufreq/acpi-cpufreq.c >> @@ -78,6 +78,8 @@ static bool boost_state(unsigned int cpu) >> >> switch (boot_cpu_data.x86_vendor) { >> case X86_VENDOR_INTEL: >> + case X86_VENDOR_CENTAUR: >> + case X86_VENDOR_ZHAOXIN: >> rdmsr_on_cpu(cpu, MSR_IA32_MISC_ENABLE, &lo, &hi); >> msr = lo | ((u64)hi << 32); >> return !(msr & MSR_IA32_MISC_ENABLE_TURBO_DISABLE); >> @@ -97,6 +99,8 @@ static int boost_set_msr(bool enable) >> >> switch (boot_cpu_data.x86_vendor) { >> case X86_VENDOR_INTEL: >> + case X86_VENDOR_CENTAUR: >> + case X86_VENDOR_ZHAOXIN: >> msr_addr = MSR_IA32_MISC_ENABLE; >> msr_mask = MSR_IA32_MISC_ENABLE_TURBO_DISABLE; >> break; >> -- > > Applied as 5.20 material. > Thanks a lot. > However, I had to manually fix up the formatting of the patch. > Sorry for inconvenient. > Can you please configure your e-mail client so that this is not > necessary in the future? > Was using the Thunderbird client to send patch, and will use git send-email in the future. > Thanks! > . > -- Sincerely TonyWWang-oc