From: Jan Beulich <jbeulich@suse.com>
To: Penny Zheng <Penny.Zheng@amd.com>
Cc: ray.huang@amd.com, xen-devel@lists.xenproject.org
Subject: Re: [PATCH v6 06/19] xen/cpufreq: make _PSD info common
Date: Wed, 16 Jul 2025 17:07:48 +0200 [thread overview]
Message-ID: <b6572156-e0cb-409f-b6ff-c6f2ad85cb22@suse.com> (raw)
In-Reply-To: <20250711035106.2540522-7-Penny.Zheng@amd.com>
On 11.07.2025 05:50, Penny Zheng wrote:
> _PSD info, consisted of "shared_type" and "struct xen_psd_package", will not
> only be provided from px-specific "struct xen_processor_performance", but also
> in CPPC data.
>
> Two new helper functions are introduced to deal with _PSD. They will later be
> re-used for handling the same data for CPPC.
> In the meantime, the following style corrections get applied at the same time:
> - add extra space before and after bracket of if()
> - remove redundant parenthesis
> - no need to put brace for printk() at a seperate line
>
> Signed-off-by: Penny Zheng <Penny.Zheng@amd.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
with one further remark:
> --- a/xen/drivers/cpufreq/cpufreq.c
> +++ b/xen/drivers/cpufreq/cpufreq.c
> @@ -226,9 +226,29 @@ int cpufreq_limit_change(unsigned int cpu)
> return __cpufreq_set_policy(data, &policy);
> }
>
> -int cpufreq_add_cpu(unsigned int cpu)
> +static int get_psd_info(unsigned int cpu, uint32_t *shared_type,
Here any below I question the need to use a fixed-width type. "unsigned int"
will do fine here, I expect, and that's what ./CODING_STYLE also mandates in
such cases. I may take the liberty and change that while committing.
Jan
next prev parent reply other threads:[~2025-07-16 15:08 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-11 3:50 [PATCH v6 00/19] amd-cppc CPU Performance Scaling Driver Penny Zheng
2025-07-11 3:50 ` [PATCH v6 01/19] xen/amd: introduce amd_process_freq() to get processor frequency Penny Zheng
2025-07-11 3:50 ` [PATCH v6 02/19] tools: drop "has_num" condition check for cppc mode Penny Zheng
2025-07-11 6:42 ` Jan Beulich
2025-07-28 12:53 ` Anthony PERARD
2025-07-11 3:50 ` [PATCH v6 03/19] tools: optimize cpufreq average freq print Penny Zheng
2025-07-16 14:43 ` Jan Beulich
2025-07-28 13:03 ` Anthony PERARD
2025-07-11 3:50 ` [PATCH v6 04/19] x86/cpufreq: continue looping other than -EBUSY or successful return Penny Zheng
2025-07-16 14:47 ` Jan Beulich
2025-07-11 3:50 ` [PATCH v6 05/19] xen/cpufreq: refactor cmdline "cpufreq=xxx" Penny Zheng
2025-07-16 15:00 ` Jan Beulich
2025-08-04 5:47 ` Penny, Zheng
2025-08-04 7:19 ` Jan Beulich
2025-08-04 6:04 ` Penny, Zheng
2025-08-04 7:17 ` Jan Beulich
2025-07-11 3:50 ` [PATCH v6 06/19] xen/cpufreq: make _PSD info common Penny Zheng
2025-07-16 15:07 ` Jan Beulich [this message]
2025-07-11 3:50 ` [PATCH v6 07/19] cpufreq: rename "xen_cppc_para" to "xen_get_cppc_para" Penny Zheng
2025-07-16 15:10 ` Jan Beulich
2025-07-28 13:09 ` Anthony PERARD
2025-07-11 3:50 ` [PATCH v6 08/19] xen/cpufreq: rename cppc preset name to "XEN_SYSCTL_CPPC_SET_PRESET_ONDEMAND" Penny Zheng
2025-07-16 15:18 ` Jan Beulich
2025-07-11 3:50 ` [PATCH v6 09/19] xen/cpufreq: neglect unsupported-mode request from DOM0 Penny Zheng
2025-07-16 15:19 ` Jan Beulich
2025-07-11 3:50 ` [PATCH v6 10/19] xen/cpufreq: introduce new sub-hypercall to propagate CPPC data Penny Zheng
2025-07-16 15:39 ` Jan Beulich
2025-08-04 6:47 ` Penny, Zheng
2025-08-04 7:25 ` Jan Beulich
2025-07-11 3:50 ` [PATCH v6 11/19] xen/x86: introduce "cpufreq=amd-cppc" xen cmdline and amd-cppc driver Penny Zheng
2025-07-16 15:59 ` Jan Beulich
2025-08-04 8:09 ` Penny, Zheng
2025-08-04 8:48 ` Jan Beulich
2025-08-05 6:31 ` Penny, Zheng
2025-08-05 7:42 ` Jan Beulich
2025-08-04 8:48 ` Jan Beulich
2025-07-11 3:50 ` [PATCH v6 12/19] xen/cpufreq: implement amd-cppc driver for CPPC in passive mode Penny Zheng
2025-07-17 12:55 ` Jan Beulich
2025-08-11 8:23 ` Penny, Zheng
2025-07-11 3:51 ` [PATCH v6 13/19] xen/x86: implement amd-cppc-epp driver for CPPC in active mode Penny Zheng
2025-07-17 13:35 ` Jan Beulich
2025-08-12 7:40 ` Penny, Zheng
2025-07-11 3:51 ` [PATCH v6 14/19] xen/cpufreq: get performance policy from governor set via xenpm Penny Zheng
2025-07-23 15:44 ` Jan Beulich
2025-07-11 3:51 ` [PATCH v6 15/19] tools/cpufreq: introduce helper to deal with CPPC-related parameters Penny Zheng
2025-07-23 15:56 ` Jan Beulich
2025-08-12 9:56 ` Penny, Zheng
2025-08-12 10:11 ` Penny, Zheng
2025-07-11 3:51 ` [PATCH v6 16/19] xen/cpufreq: introduce GET_CPUFREQ_CPPC sub-op Penny Zheng
2025-07-24 13:31 ` Jan Beulich
2025-07-24 14:17 ` Jason Andryuk
2025-07-24 14:47 ` Jan Beulich
2025-08-12 10:15 ` Penny, Zheng
2025-07-11 3:51 ` [PATCH v6 17/19] xen/cpufreq: introduce helper cpufreq_in_cppc_passive_mode() Penny Zheng
2025-07-24 13:57 ` Jan Beulich
2025-07-11 3:51 ` [PATCH v6 18/19] xen/cpufreq: bypass governor-related para for amd-cppc-epp Penny Zheng
2025-07-24 14:09 ` Jan Beulich
2025-08-13 6:57 ` Penny, Zheng
2025-07-24 22:36 ` Jason Andryuk
2025-07-11 3:51 ` [PATCH v6 19/19] xen/cpufreq: Adapt SET/GET_CPUFREQ_CPPC xen_sysctl_pm_op for amd-cppc driver Penny Zheng
2025-07-24 14:44 ` Jan Beulich
2025-08-14 3:13 ` Penny, Zheng
2025-08-14 6:40 ` Jan Beulich
2025-08-14 7:34 ` Penny, Zheng
2025-08-14 8:29 ` Jan Beulich
2025-08-14 8:32 ` Penny, Zheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b6572156-e0cb-409f-b6ff-c6f2ad85cb22@suse.com \
--to=jbeulich@suse.com \
--cc=Penny.Zheng@amd.com \
--cc=ray.huang@amd.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.