* [PATCH resend] turbostat: fix PC6 displaying on some systems
@ 2022-03-08 11:41 Artem Bityutskiy
2022-03-08 13:32 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Artem Bityutskiy @ 2022-03-08 11:41 UTC (permalink / raw)
To: Rafael J. Wysocki, Linux PM Mailing List; +Cc: Len Brown, Yu Chen, Kin Cho
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
'MSR_PKG_CST_CONFIG_CONTROL' encodes the deepest allowed package C-state limit,
and turbostat decodes it.
Before this patch: turbostat does not recognize value "3" on Ice Lake Xeon
(ICX) and Sapphire Rapids Xeon (SPR), treats it as "unknown", and does not
display any package C-states in the results table.
After this patch: turbostat recognizes value 3 on ICX and SPR, treats it as
"PC6", and correctly displays package C-states in the results table.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
---
tools/power/x86/turbostat/turbostat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Note 1: I apologize for submitting this patch several times. I clearly forgot
how to use 'git send-email' and missed the '--dry-run' option. Sorry for this.
Note 2: this patch is a rebased version of the same patch I sent earlier:
https://patchwork.kernel.org/project/linux-pm/patch/20211004105224.3145916-1-dedekind1@gmail.com/
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 47d3ba895d6d..bc5ae0872fed 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -2323,7 +2323,7 @@ int skx_pkg_cstate_limits[16] =
};
int icx_pkg_cstate_limits[16] =
- { PCL__0, PCL__2, PCL__6, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLUNL, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV,
+ { PCL__0, PCL__2, PCL__6, PCL__6, PCLRSV, PCLRSV, PCLRSV, PCLUNL, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV,
PCLRSV, PCLRSV
};
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH resend] turbostat: fix PC6 displaying on some systems
2022-03-08 11:41 [PATCH resend] turbostat: fix PC6 displaying on some systems Artem Bityutskiy
@ 2022-03-08 13:32 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2022-03-08 13:32 UTC (permalink / raw)
To: Artem Bityutskiy
Cc: Rafael J. Wysocki, Linux PM Mailing List, Len Brown, Yu Chen,
Kin Cho
On Tue, Mar 8, 2022 at 12:41 PM Artem Bityutskiy <dedekind1@gmail.com> wrote:
>
> From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
>
> 'MSR_PKG_CST_CONFIG_CONTROL' encodes the deepest allowed package C-state limit,
> and turbostat decodes it.
>
> Before this patch: turbostat does not recognize value "3" on Ice Lake Xeon
> (ICX) and Sapphire Rapids Xeon (SPR), treats it as "unknown", and does not
> display any package C-states in the results table.
>
> After this patch: turbostat recognizes value 3 on ICX and SPR, treats it as
> "PC6", and correctly displays package C-states in the results table.
>
> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
> ---
> tools/power/x86/turbostat/turbostat.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Note 1: I apologize for submitting this patch several times. I clearly forgot
> how to use 'git send-email' and missed the '--dry-run' option. Sorry for this.
>
> Note 2: this patch is a rebased version of the same patch I sent earlier:
> https://patchwork.kernel.org/project/linux-pm/patch/20211004105224.3145916-1-dedekind1@gmail.com/
>
> diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
> index 47d3ba895d6d..bc5ae0872fed 100644
> --- a/tools/power/x86/turbostat/turbostat.c
> +++ b/tools/power/x86/turbostat/turbostat.c
> @@ -2323,7 +2323,7 @@ int skx_pkg_cstate_limits[16] =
> };
>
> int icx_pkg_cstate_limits[16] =
> - { PCL__0, PCL__2, PCL__6, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLUNL, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV,
> + { PCL__0, PCL__2, PCL__6, PCL__6, PCLRSV, PCLRSV, PCLRSV, PCLUNL, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV,
> PCLRSV, PCLRSV
> };
>
> --
turbostat material has been handled by Len so far, but I've queued up
this patch for 5.18.
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-08 13:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-08 11:41 [PATCH resend] turbostat: fix PC6 displaying on some systems Artem Bityutskiy
2022-03-08 13:32 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox