Re: [PATCH 1/2] cpupower: Introduce powercap intel-rapl library helpers and powercap-info command

Shuah Khan
2022-07-14T16:10:07Z

Hi Thomas,

On 7/9/22 2:13 AM, Thomas Renninger wrote:
> Read out powercap zone information via:
> cpupower powercap-info
> and show the zone hierarchy to the user:
>
> ./cpupower powercap-info
> Driver: intel-rapl
> Powercap domain hierarchy:
>
> Zone: package-0 (enabled)
> Power consumption can be monitored in micro Watts
>
> Zone: core (disabled)
> Power consumption can be monitored in micro Watts
>
> Zone: uncore (disabled)
> Power consumption can be monitored in micro Watts
>
> Zone: dram (disabled)
> Power consumption can be monitored in micro Watts
>
> There is a dummy -a option for powercap-info which can/should be used to show
> more detailed info later. Like that other args can be added easily later as
> well.
>
> Signed-off-by: Thomas Renninger <trenn@suse.com>
> CC: Shuah Khan <skhan@linuxfoundation.org>
>

There are no problems adding this support. Can you please a bit more
information on how this feature would be helpful?

Also this patch seems to maformed - here is the git am output:

Applying: cpupower: Introduce powercap intel-rapl library helpers and powercap-info command
error: corrupt patch at line 7
Patch failed at 0001 cpupower: Introduce powercap intel-rapl library helpers and powercap-info command

In the email it wasn't clear to me, however the corruption was
very clear in patchwork view:

https://patchwork.kernel.org/project/linux-pm/patch/2991706.CnP8uJEn3U@c100/

thanks,
-- Shuah