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

RE: [PATCH v4 02/15] xen/cpufreq: extract _PSD info from "struct xen_processor_performance"


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Penny, Zheng" <penny.zheng@xxxxxxx>
  • Date: Wed, 14 May 2025 02:46:05 +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=RFyHfXkgoGtX6uQDPfT80OBoYCcwhwVaK7GSHcOxXI0=; b=jpOykjvLpuuaI4OnjHXdDJL1bE1xnwqN9rIY6nrOUhPzK/BulnGmeuVTOeie62v+7GfKShhVwwkjQj1BvA0CpPSmnU52YQFT2g25N/zxRxJQCF687MRYtDsJX/7OjYaJr1LxKGkjazXZZmjG81V9A7JoDXkyg5GnVs/oW+v0bLOVIACerFIPn379RV+Hyph7oEIaWPaGknEXyaaYPf3nWGCwJY4S4H6HRYyRtcz7m4/EYNXuuAuKQacOIDD0nd1tA1g0q6g2E9RgE//vkceIJHjfbzNXY+YJUBDAqzuoFf1WaqrmKOaTRDP1q7CEHWkkSK68/XmCRRUSGA5MnTlciA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Y7j+DuSbhq/RYIAALY9ibgh3R89ttu9LSclDlkFwhzCD/s3fC3eFFPLWRuWK4usCej0XEHSdkBud0U/BrZm373WBBMAqzOVd7c0F3jFDV7PiPA5kexMa2qa8TQttUAHVd3wUYy4PukaT+KLibD5Ves4JaYwU+e0VVRyVnfynWdYEP6FJhmfwpSHatf3gYY+6B1E/gEj+FkZTREtp/14Z6asn1Ep3sp1EY9jLssvhjniOzRlhZWd5t1XXmukvmT/QmU4+CVp6t/kQCrqNR1KFhg1I56aoyreyc9xLCeuUsE84qMyuYxTGm926e0CRpnYHpPv46PDzs6DwAV2aKdMU8Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: "Huang, Ray" <Ray.Huang@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Orzel, Michal" <Michal.Orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 14 May 2025 02:46:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels: MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ActionId=fdb35494-bfc1-4161-a69b-d10dbde4ffff;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ContentBits=0;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Enabled=true;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Method=Privileged;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Name=Open Source;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SetDate=2025-05-14T02:45:57Z;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Tag=10, 0, 1, 1;
  • Thread-index: AQHbrRCjQUXzVZg75kKZW3IeVU/v2LO5SzoAgAvud1CAChU8gIACS2EQ
  • Thread-topic: [PATCH v4 02/15] xen/cpufreq: extract _PSD info from "struct xen_processor_performance"

[Public]

Hi

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Monday, May 12, 2025 11:43 PM
> To: Penny, Zheng <penny.zheng@xxxxxxx>
> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; Andrew Cooper
> <andrew.cooper3@xxxxxxxxxx>; Anthony PERARD <anthony.perard@xxxxxxxxxx>;
> Orzel, Michal <Michal.Orzel@xxxxxxx>; Julien Grall <julien@xxxxxxx>; Roger Pau
> Monné <roger.pau@xxxxxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>; 
> xen-
> devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH v4 02/15] xen/cpufreq: extract _PSD info from "struct
> xen_processor_performance"
>
> On 06.05.2025 07:56, Penny, Zheng wrote:
> > [Public]
> >
> > Hi,
> >
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: Monday, April 28, 2025 11:32 PM
> >> To: Penny, Zheng <penny.zheng@xxxxxxx>
> >> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; Andrew Cooper
> >> <andrew.cooper3@xxxxxxxxxx>; Anthony PERARD
> >> <anthony.perard@xxxxxxxxxx>; Orzel, Michal <Michal.Orzel@xxxxxxx>;
> >> Julien Grall <julien@xxxxxxx>; Roger Pau Monné
> >> <roger.pau@xxxxxxxxxx>; Stefano Stabellini <sstabellini@xxxxxxxxxx>;
> >> xen-devel@xxxxxxxxxxxxxxxxxxxx
> >> Subject: Re: [PATCH v4 02/15] xen/cpufreq: extract _PSD info from
> >> "struct xen_processor_performance"
> >>
> >> On 14.04.2025 09:40, Penny Zheng wrote:
> >>> --- a/xen/include/public/platform.h
> >>> +++ b/xen/include/public/platform.h
> >>> @@ -440,6 +440,11 @@ struct xen_psd_package {
> >>>      uint64_t num_processors;
> >>>  };
> >>>
> >>> +/* Coordination type value */
> >>> +#define XEN_CPUPERF_SHARED_TYPE_HW   1 /* HW does needed
> >> coordination */
> >>> +#define XEN_CPUPERF_SHARED_TYPE_ALL  2 /* All dependent CPUs
> >> should
> >>> +set freq */ #define XEN_CPUPERF_SHARED_TYPE_ANY  3 /* Freq can be
> >> set
> >>> +from any dependent CPU */
> >>> +
> >>>  struct xen_processor_performance {
> >>>      uint32_t flags;     /* flag for Px sub info type */
> >>>      uint32_t platform_limit;  /* Platform limitation on freq usage
> >>> */ @@ -449,10 +454,7 @@ struct xen_processor_performance {
> >>>      XEN_GUEST_HANDLE(xen_processor_px_t) states;
> >>>      struct xen_psd_package domain_info;
> >>>      /* Coordination type of this processor */
> >>> -#define XEN_CPUPERF_SHARED_TYPE_HW   1 /* HW does needed
> >> coordination */
> >>> -#define XEN_CPUPERF_SHARED_TYPE_ALL  2 /* All dependent CPUs
> >> should
> >>> set freq */ -#define XEN_CPUPERF_SHARED_TYPE_ANY  3 /* Freq can be
> >>> set
> >> from any dependent CPU */
> >>> -    uint32_t shared_type;
> >>> +    uint32_t shared_type; /* XEN_CPUPERF_SHARED_TYPE_xxx */
> >>>  };
> >>>  typedef struct xen_processor_performance
> >>> xen_processor_performance_t;
> >>> DEFINE_XEN_GUEST_HANDLE(xen_processor_performance_t);
> >>
> >> What's this movement about? In the public interface nothing changes?
> >
> > As we will have shared type in "struct xen_processor_cppc" too, maybe
> > the definition would like to live at more common place, then it could be 
> > shared?
> > Living inside "struct xen_processor_performance" looks like internal values 
> > for
> internal field.
> > If it breaks the public interface some way, I'll change it back and
> > duplicate the definition in "struct xen_processor_cppc" too
>
> I don't think it would break anything, but I also don't see any need for the
> movement. And generally we prefer to avoid unnecessary code churn.

Understood, then I'll delete this change.

>
> Jan

 


Rackspace

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