Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4088289rdh; Tue, 28 Nov 2023 11:26:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHG4RdYh1gr15PnPHuJfYrSpHE1GY/0uVX3aFfQgR/l9xj7RG/iisK/CxSuboRP9G8Lk3v/ X-Received: by 2002:a05:6a20:5490:b0:135:1af6:9a01 with SMTP id i16-20020a056a20549000b001351af69a01mr17172525pzk.8.1701199583731; Tue, 28 Nov 2023 11:26:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701199583; cv=none; d=google.com; s=arc-20160816; b=yaOT6DvmjYj+3RABq2Ligt0OHtFQK0YEbAXCnaljklwmCisrMrbcP6HABhF71HFHIq TKzLLWgDRJcWi52/QtH7J69vExBY3f5iQdQ7GB+l8q/R7GR1YwG/YlMs0JbmgrYHJfNe MNPWKg4d5vYKb0qXqBu8Vcnh8/169Dhb3JITqCuKJ8OI9wVat6RL11E7unDu872Mf9D3 w7IRjn0ENXQuQ5RZVcuV8+hwtZTQgN7HIq/IengKf9bOHXr/esVcSM90Pl5J19n7kozN 5D4JAGw85BHjNAycEQsftf4VWzh/LHQ0brbktEtymUJT1gdzDw97Nzv/chpfoVj13BAi wo8g== 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=uQqHyUnBcC5+Tc/MRgY7Ozq1kU1lZvk8RP3QeaWX2CI=; fh=zzUmWEFgqCBvFMOJA+A7lFMgHnk2M3oR0nZZUGRyYHE=; b=jRBp7pz+GJJt76/no0PvQz2kA2BCBd7lnYirVQw20ebVLi3SgpnLf0MZhHTb6ofyHH wozuujgI1IfR0VwIawtaGxW1jymSvhGELd1Jrc1wwRYd1l2mX3KaPO+vDB4w98F8Pw6/ LTJzZosN5Yceu2uifJOSJNEr8VD5R8L2UVJ5jSwg5/+hRu0172TRmeJs+8w0qi0IvH8i 71uVWEPjxV7D28cJ7s0k6jSh8MNfPK/4WUPv/8PDY6vegUAzoJXDmcMUOYXzQfzWHp5D SH3SQt0TxWCKz3rrECrSLZqxpycHye714feY5EghGORlXzUDD/hqXyNv8g0Ug0Nx6vWR jzgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=qUruDslY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id w18-20020a17090aea1200b0027769032e57si13350440pjy.52.2023.11.28.11.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 11:26:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=qUruDslY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9D7E7807D567; Tue, 28 Nov 2023 11:25:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376308AbjK1TZh (ORCPT + 99 others); Tue, 28 Nov 2023 14:25:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345355AbjK1TZg (ORCPT ); Tue, 28 Nov 2023 14:25:36 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B74F7D66 for ; Tue, 28 Nov 2023 11:25:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1701199540; bh=HL/CGZhmPlcfwhxS6h/5muHzHjE+rCyLtoaXJR1cAb4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qUruDslYbG90Sh/mmWWflfZn689jhEl5CIH8VGmZJLPlfvSAA+dHVXjeOsldRrYSV geom4+RamjxS44oPu/L9pHxroNWPpHl/8xTEkGfkrjvuRDsb+0cLxgLDExWYimoPhS Jm2ZDG+8KA8k7Zv9mqJlXvef9ONGaaT5gVvJ67R4= Date: Tue, 28 Nov 2023 20:25:40 +0100 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/cpu: Update power flags Message-ID: <15ea49d1-5c6e-4459-8ef1-4bca573b8b93@t-8ch.de> References: <20231128-powerflags-v1-1-87e8fe020a3d@weissschuh.net> <20231128191217.GDZWY7kYC9bE9Qkg25@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231128191217.GDZWY7kYC9bE9Qkg25@fat_crate.local> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 28 Nov 2023 11:25:59 -0800 (PST) On 2023-11-28 20:12:17+0100, Borislav Petkov wrote: > On Tue, Nov 28, 2023 at 07:54:54PM +0100, Thomas Weißschuh wrote: > > As described on page 99 of > > "Processing Programming Reference (PPR) for AMD Family 19h Model 61h, Revision B1 Processor". > > (AMD Documentation Hub Document 56713) > > > > Tested on an "AMD Ryzen 7 7840U w/ Radeon 780M Graphics". > > > > Signed-off-by: Thomas Weißschuh > > --- > > arch/x86/kernel/cpu/powerflags.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/arch/x86/kernel/cpu/powerflags.c b/arch/x86/kernel/cpu/powerflags.c > > index fd6ec2aa0303..0c98405aeae2 100644 > > --- a/arch/x86/kernel/cpu/powerflags.c > > +++ b/arch/x86/kernel/cpu/powerflags.c > > @@ -21,4 +21,7 @@ const char *const x86_power_flags[32] = { > > "eff_freq_ro", /* Readonly aperf/mperf */ > > "proc_feedback", /* processor feedback interface */ > > "acc_power", /* accumulated power mechanism */ > > + "connected_standby", /* connected standby */ > > + "rapl", /* running average power limit */ > > + "fast_cppc", /* fast collaborative processor performance control */ > > No need. > > The beginning of Documentation/arch/x86/cpuinfo.rst tries to explain > why. Isn't this introduction more about the cpuinfo "flags" fields? These power management flags have their own field "power management". Without the patch it looks like this on my machine in cpuinfo: power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14] [15] So they are already reported, but only their numeric value. Anyways, if it's not correct to have them then let's drop the patch. Thomas