* [PATCH] platform/x86: amd-pmc: Add a message to print resume time info
@ 2021-09-21 12:00 Sanket Goswami
2021-09-28 11:31 ` Hans de Goede
0 siblings, 1 reply; 2+ messages in thread
From: Sanket Goswami @ 2021-09-21 12:00 UTC (permalink / raw)
To: Shyam-sundar.S-k, hdegoede, mgross
Cc: platform-driver-x86, linux-kernel, Sanket Goswami
Add a message to print the resume time information obtained from the
smu_metrics structure.
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
---
drivers/platform/x86/amd-pmc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/platform/x86/amd-pmc.c b/drivers/platform/x86/amd-pmc.c
index bc7c4498067b..27c04ff57ffb 100644
--- a/drivers/platform/x86/amd-pmc.c
+++ b/drivers/platform/x86/amd-pmc.c
@@ -174,6 +174,8 @@ static int smu_fw_info_show(struct seq_file *s, void *unused)
"Unknown/Fail");
seq_printf(s, "Time (in us) to S0i3: %lld\n", table.timeentering_s0i3_lastcapture);
seq_printf(s, "Time (in us) in S0i3: %lld\n", table.timein_s0i3_lastcapture);
+ seq_printf(s, "Time (in us) to resume from S0i3: %lld\n",
+ table.timeto_resume_to_os_lastcapture);
seq_puts(s, "\n=== Active time (in us) ===\n");
for (idx = 0 ; idx < SOC_SUBSYSTEM_IP_MAX ; idx++) {
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/x86: amd-pmc: Add a message to print resume time info
2021-09-21 12:00 [PATCH] platform/x86: amd-pmc: Add a message to print resume time info Sanket Goswami
@ 2021-09-28 11:31 ` Hans de Goede
0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2021-09-28 11:31 UTC (permalink / raw)
To: Sanket Goswami, Shyam-sundar.S-k, mgross
Cc: platform-driver-x86, linux-kernel
Hi,
On 9/21/21 2:00 PM, Sanket Goswami wrote:
> Add a message to print the resume time information obtained from the
> smu_metrics structure.
>
> Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
> Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Thank you for your patch, I've applied this patch to my review-hans
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.
Regards,
Hans
> ---
> drivers/platform/x86/amd-pmc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/platform/x86/amd-pmc.c b/drivers/platform/x86/amd-pmc.c
> index bc7c4498067b..27c04ff57ffb 100644
> --- a/drivers/platform/x86/amd-pmc.c
> +++ b/drivers/platform/x86/amd-pmc.c
> @@ -174,6 +174,8 @@ static int smu_fw_info_show(struct seq_file *s, void *unused)
> "Unknown/Fail");
> seq_printf(s, "Time (in us) to S0i3: %lld\n", table.timeentering_s0i3_lastcapture);
> seq_printf(s, "Time (in us) in S0i3: %lld\n", table.timein_s0i3_lastcapture);
> + seq_printf(s, "Time (in us) to resume from S0i3: %lld\n",
> + table.timeto_resume_to_os_lastcapture);
>
> seq_puts(s, "\n=== Active time (in us) ===\n");
> for (idx = 0 ; idx < SOC_SUBSYSTEM_IP_MAX ; idx++) {
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-28 11:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21 12:00 [PATCH] platform/x86: amd-pmc: Add a message to print resume time info Sanket Goswami
2021-09-28 11:31 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).