Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp820919pxb; Wed, 8 Sep 2021 13:11:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTaKtvLZe6mSTibAjSm6IHFn/rw5UOHeMUUVdiQPOw0NBCX9IyPW8Dn4AtwetnEjk6/U26 X-Received: by 2002:a17:907:9882:: with SMTP id ja2mr1640589ejc.528.1631131888041; Wed, 08 Sep 2021 13:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631131888; cv=none; d=google.com; s=arc-20160816; b=qA4TK/Vh2+P0PmRYlZ1hcK+HiT7iaoV0B4BeqX3LXJqa2Qf200xbhznOJ3VRHk1HfX kFnpD3pMy+k6iGf+tPe6tYuXCyJRAb8GdEU9SKRh8+b600ZwVGk4eA5Fci79sAc3pJfw DQoIBlrUDWCJ51k8Cfb0FDWyC1Jgt1f5M7KChZqESneLlFlB8/TwUI2PJaw8i6ohx8/Q 5Gy5G8xf6i1taweJejRMskyBBt9ZEF7+4ifouEDWPp1INZVsySRwNM07cDqno+X9PMIa oCVBScfCXkQKkvud3CCjnmTGSUZU3jUWirZ6zEXb/6m/Ie4Fb4eePbdLSl78nZdssKrj tU5Q== 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:dkim-signature; bh=RtxwRt2rTuC496QAV96NN3FjKBQdlap5HoR2ATAA9hU=; b=C8q8dj5MKkzQsHQTE9QiiZxmkGIdZ4atJ6NnIQycwHgWob8Sa5ZcPElQzV/k9ZyhcZ igCuDEIQ7Eb3sZywtx4neo/ImLnn5GldWE+BfCyNCEs0X8TTd9rkHqyX0kJd79dQcoY9 SIcrdVN+MrAZjM9QajFAZKVBJsq2FwokiRIT288xO8s08h34q80VTrpSXJRBKW8COHbi 6pRVfOv3dguEKnjxDo+idi0mKYzyoBDmZGWfzM1NfDuvXmMDD7qPHkP1Lzz5qtSLJUot IqrNnO1zLjBL3/Iy8Tqi5OkeGNHqLwFH4Pis0NP4vGvlZPA1NvhZu9a4vaODziklbpf2 S3aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=RsOiPsYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id aq28si26502ejc.374.2021.09.08.13.10.59; Wed, 08 Sep 2021 13:11:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=RsOiPsYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349865AbhIHUBQ (ORCPT + 99 others); Wed, 8 Sep 2021 16:01:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343558AbhIHUBP (ORCPT ); Wed, 8 Sep 2021 16:01:15 -0400 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C76FC061575 for ; Wed, 8 Sep 2021 13:00:07 -0700 (PDT) Received: by mail-oo1-xc2f.google.com with SMTP id k20-20020a4ad114000000b0029133123994so1172094oor.4 for ; Wed, 08 Sep 2021 13:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RtxwRt2rTuC496QAV96NN3FjKBQdlap5HoR2ATAA9hU=; b=RsOiPsYODfTsIryeJE0IlLhSwf62h5Se7YksEGS0zegwU3Il8jCzlrJ5if1mEFhhWZ ydKf5ZGJ6tTV/T4rdQn0/ly2reLSXSyVv2w7UYsfWj56TP4Bkqsbt/pB9G03uZUbkKXL qWoY1WnDs4Stetsc1dJaf4YW/bNtlFlNXxvCk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RtxwRt2rTuC496QAV96NN3FjKBQdlap5HoR2ATAA9hU=; b=jnxhVEm/tmaQQtb/KB+auAjlVww6kT7eX4eZiGlxfQxSTsAJv25tAeX2N5fCpHG1Th Bt5oouBMf+s3ElVo6lq6FBtq43cHyZG3GIab6KvbG65z4sWp/H7rVe0qbSU2Knwx0+Up TzxZV2EkTYD7AZWkKB3Kri/QfKRIFALOevMKWAp/MOwn/gXfemiPAl2MLHtLNnjF6P2j x9ss0jvm4fkSV7EFKFNAalX0a8g+toKww2OYucEb+040RuOOKLDeD+cvf0lRBjxWwBFW oshN+TwlYUDlDtAnX3izshmnimVJa/Utm0k1uLjYLYJbvzRCv/NvCC+Sqz9AcU+cchO7 8OGQ== X-Gm-Message-State: AOAM530neg4JxubvInlMtaR8EImzXmUNIrfhDxRtenezBW5+mxM+63ys IDB59TKjQYUho8ZfSXkj+vCzow== X-Received: by 2002:a05:6820:613:: with SMTP id e19mr21508oow.67.1631131206643; Wed, 08 Sep 2021 13:00:06 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id z18sm14301oib.27.2021.09.08.13.00.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Sep 2021 13:00:06 -0700 (PDT) Subject: Re: [PATCH 01/19] x86/cpufreatures: add AMD CPPC extension feature flag To: Huang Rui , "Rafael J . Wysocki" , Viresh Kumar , Borislav Petkov , Ingo Molnar , linux-pm@vger.kernel.org Cc: Deepak Sharma , Alex Deucher , Mario Limonciello , Nathan Fontenot , Jinzhou Su , Xiaojian Du , linux-kernel@vger.kernel.org, x86@kernel.org, Shuah Khan References: <20210908150001.3702552-1-ray.huang@amd.com> <20210908150001.3702552-2-ray.huang@amd.com> From: Shuah Khan Message-ID: Date: Wed, 8 Sep 2021 14:00:04 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210908150001.3702552-2-ray.huang@amd.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/8/21 8:59 AM, Huang Rui wrote: > Add Collaborative Processor Performance Control Extension feature flag > for AMD processors. > Please add a couple of sentences about the feature and what it does. > Signed-off-by: Huang Rui > --- > arch/x86/include/asm/cpufeatures.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h > index d0ce5cfd3ac1..f7aea50e3371 100644 > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -313,6 +313,7 @@ > #define X86_FEATURE_AMD_SSBD (13*32+24) /* "" Speculative Store Bypass Disable */ > #define X86_FEATURE_VIRT_SSBD (13*32+25) /* Virtualized Speculative Store Bypass Disable */ > #define X86_FEATURE_AMD_SSB_NO (13*32+26) /* "" Speculative Store Bypass is fixed in hardware. */ > +#define X86_FEATURE_AMD_CPPC_EXT (13*32+27) /* Collaborative Processor Performance Control Extension */ > > /* Thermal and Power Management Leaf, CPUID level 0x00000006 (EAX), word 14 */ > #define X86_FEATURE_DTHERM (14*32+ 0) /* Digital Thermal Sensor */ > thanks, -- Shuah