Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp744923pxb; Thu, 9 Sep 2021 10:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzge95j8pc7ICySC8jpw2fv9zPEgiRcnHBBHyuP2AeZotFqJVLR/GL35tUByPz9L5IQJVAy X-Received: by 2002:a02:c64a:: with SMTP id k10mr1015189jan.112.1631210366717; Thu, 09 Sep 2021 10:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631210366; cv=none; d=google.com; s=arc-20160816; b=EtQ11UMsdYkd/WHhytB7oDsb5m1fu6/06PUcPO0auH94XOq1QVQE9SlZlC71WalML2 1H9pomXD8VdtNRVEW1IAgfTLEccEhEZxByMGb/Vhxy2Qn1fskezMw1mlHnmx3oQmQRSm dpfrX/mV9GPEeX4tA2bE+wXiaoojtEb0EkOWvNSTSLIGQ0Gcrz9rVfKTVKm9JqcOw7t+ gIHhX8YLPSdDj5YKdKA6bsmO8km5ny4Tsx03lUDTUZqEvXdmyUFQtWKUeAeowBCYM62s lkN2RaTtkVVy+/bWmD9PmGRx0oNm2uVvWBoqTfbVcWW7Qi3jLQD714ELcVNig7FRLn1b 5hHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SAQ32i/uilW2AnN+2fKp4zP0VR9Mk/umGQrt9CT52ew=; b=HhQkZQLUn8M5a0Nnv+YA9WV1QORXrwcP+T0RMdMB830MQw/xMvZNdAYKhN+Qid77Bs QAHgqu4a6RTwZJQ7ZvGCkNRfuld5EXF90vYrn5Y9+mHN6c2JJQEgZCnyepiYTnVMj5yl PWXI0EK2plhTv07WXL4w/t3FIgl6Am5nTAzzRUJ3kfxcYHkobbfIfKNOSzp/Vv5LXuXZ ytm5pBK4demFg004MQZhqoW5d0RckTy1UdsAAu9OmRj7mHTDxm6u49rV24A2FGNjpvju TJqU+w6fUkKGaHPYiIYKAq40OFDScMMClQSy7zFo1SihZzjZ6RhDGHwFZq/15+G6uxsp i90w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=JGKcL1wE; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si2831761ilk.152.2021.09.09.10.59.15; Thu, 09 Sep 2021 10:59:26 -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=@alien8.de header.s=dkim header.b=JGKcL1wE; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242042AbhIIR7n (ORCPT + 99 others); Thu, 9 Sep 2021 13:59:43 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35390 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237205AbhIIR7n (ORCPT ); Thu, 9 Sep 2021 13:59:43 -0400 Received: from zn.tnic (p200300ec2f0e45009795463d03f535a2.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:4500:9795:463d:3f5:35a2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 48C2A1EC04D6; Thu, 9 Sep 2021 19:58:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1631210308; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SAQ32i/uilW2AnN+2fKp4zP0VR9Mk/umGQrt9CT52ew=; b=JGKcL1wEwc2cxYXvu+M/NENv4Yz2GKdaToYJeE4yFTiJeIcfkNewGXeZchxnuON6ZZ8FT0 soQu/nDGee05dSCkX754alY3Z+y8jp+DNJTSa4o0LpTQ0Un8v7RcU6G6Ud1gCMePqOw726 /uEIBYsZXjcZ6Vzy+l6VSme7/c4nHxg= Date: Thu, 9 Sep 2021 19:58:19 +0200 From: Borislav Petkov To: Huang Rui Cc: "Rafael J . Wysocki" , Viresh Kumar , Shuah Khan , Ingo Molnar , linux-pm@vger.kernel.org, Deepak Sharma , Alex Deucher , Mario Limonciello , Nathan Fontenot , Jinzhou Su , Xiaojian Du , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH 01/19] x86/cpufreatures: add AMD CPPC extension feature flag Message-ID: References: <20210908150001.3702552-1-ray.huang@amd.com> <20210908150001.3702552-2-ray.huang@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210908150001.3702552-2-ray.huang@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 08, 2021 at 10:59:43PM +0800, Huang Rui wrote: > Add Collaborative Processor Performance Control Extension feature flag > for AMD processors. > > 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 */ Why not simply X86_FEATURE_AMD_CPPC ? -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg