[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH v5 03/18] xen/cpufreq: extract _PSD info from "struct xen_processor_performance"


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Penny, Zheng" <penny.zheng@xxxxxxx>
  • Date: Tue, 17 Jun 2025 04:12:35 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Zk0xlGTq5pzlkgXqyM5YgTpnYBf/brnDSmoj+Cn1hdE=; b=j4JULHu125lEUL2dxoKHPfqaBuzx2V+7RUAn2JtZ/n9ztwK54IFWSB+wfK8MhIFMyv53zFw91FZ2f8rtJQZIc1skH+m4Jnhb4MUM3OWud3tYtmadsn2FXf1sTrhHYMkRZZQffnGt4SlnFfhiDUiu9P+hTEhigspZpzCRLTn2g3eNIpPaFUvAPBEbKXzL/3e6omeX7/tCK+XL5+DpyWh/Eh3oOlogirrHGbniteLfm+R+LsMUeoiyHDW+ljUzn0/oK7YrlSo6ho9FIrf5P2rWQCw12VcDiX1JmcvTriIlgoUrGm8kheyLwRw0MO5QatVQCzUHKNbzjlitBe+c4MFC/Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZduzlPCuMu9rBrvqPJk6WNEj1s2tUYX00TKjDRlXH7Fubsi3yVSTOn16PzptDvhnVCpS2PBf7oIrGPt6xaR2viiYK/EBcB6sXgn3K17lyootqPrgd9tqWu2NORj5ZrhekUZuxbiQ1CTGDFm+W3ZhHppHKV/X9vI/Hv2BuJ8AR01XFwH2fJbKR1/dH7hWwYSz/8WrxetmYkt6DIjyXonvbyCGwrtK94Y2DQh9sBRTuzleeQakITCyMxq16MSz6KDCEouxsqBN5cy/iiSeApfJM+qVAkr+fPFEFbJyi3eCNjbkGPhiZVVG9TLXoNBihDnQufq0PN++kQ1FV1cIBPa1wg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: "Huang, Ray" <Ray.Huang@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 17 Jun 2025 04:12:48 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels: MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Enabled=True;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SetDate=2025-06-17T04:12:28.0000000Z;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Name=Open Source;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ContentBits=3;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Method=Privileged
  • Thread-index: AQHbzuQ7tkLRAfE4aEeQu239amEhMrP+LqUAgAdzEsCAAAj3gIABLclw
  • Thread-topic: [PATCH v5 03/18] xen/cpufreq: extract _PSD info from "struct xen_processor_performance"

[Public]

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Monday, June 16, 2025 5:51 PM
> To: Penny, Zheng <penny.zheng@xxxxxxx>
> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH v5 03/18] xen/cpufreq: extract _PSD info from "struct
> xen_processor_performance"
>
> On 16.06.2025 11:43, Penny, Zheng wrote:
> > [Public]
> >
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: Wednesday, June 11, 2025 11:34 PM
> >> To: Penny, Zheng <penny.zheng@xxxxxxx>
> >> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx
> >> Subject: Re: [PATCH v5 03/18] xen/cpufreq: extract _PSD info from
> >> "struct xen_processor_performance"
> >>
> >> On 27.05.2025 10:48, Penny Zheng wrote:
> >>> @@ -545,14 +597,9 @@ int set_px_pminfo(uint32_t acpi_id, struct
> >>> xen_processor_performance *perf)
> >>>
> >>>      if ( perf->flags & XEN_PX_PSD )
> >>>      {
> >>> -        /* check domain coordination */
> >>> -        if ( perf->shared_type != CPUFREQ_SHARED_TYPE_ALL &&
> >>> -             perf->shared_type != CPUFREQ_SHARED_TYPE_ANY &&
> >>> -             perf->shared_type != CPUFREQ_SHARED_TYPE_HW )
> >>> -        {
> >>> -            ret = -EINVAL;
> >>> +        ret = check_psd_pminfo(perf->shared_type);
> >>> +        if ( ret )
> >>>              goto out;
> >>> -        }
> >>>
> >>>          pxpt->shared_type = perf->shared_type;
> >>>          memcpy(&pxpt->domain_info, &perf->domain_info,
> >>
> >> ... the need for this change. And even if there is a need, a
> >> follow-on question would be how this relates to the subject of this patch.
> >
> > I extracted this snippet out for sharing the same checking logic both
> > in Px and later CPPC. They both need _PSD info
>
> Right, and that (iirc) becomes visible later in the series. But it needs 
> saying here. As
> it stands the description talks of only get_psd_info() right now. And the 
> change
> above is also unrelated to the "extract" mentioned in the title.
>
> > I could change title to "xen/cpufreq: make _PSD info common" and also
> > add description in commit message for introducing check_psd_pminfo()
>
> The title was probably fine; it's the description which was lacking. In fact 
> I'd deem
> "make ... common" misleading when there's no 2nd user (yet).
>

How about:
"
Title: xen/cpufreq: export _PSD info and checking

_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.

In cpufreq_add/del_cpu(), a new helper get_psd_info() is introduced to
export _PSD info. While in set_px_pminfo(), check_psd_pminfo() is also 
introduced to
export _PSD value checking.
in the meantime, the following style corrections get applied at the same time: 
........
```

> Jan

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.