[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: Tue, 6 May 2025 05:56:52 +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=DUBl8Rnqs0qCWPJqYo6r4GSSt71kGKV1pI1VJVeKVAk=; b=e89YLewZcDoF1vSA32OgvxlES2NPAtyX3mpRqaW2WtzexOl4Ks61UO+mX1Y4tVoLNEJHbANLUtyj60wOqVLgny2knRxNKuZ8pb7x+qmGtb4FQj5LnupJlPo27+Vcqdgb06j2KEd/Pp5XDS8WLTM35iTqlIC6N/qFv/uVq5v2fYpF4rJa8rHbQ9kH9TjzwvkTKEMCpSetzPHigdQo4nQy3KfcoKBM6Ed1JdGLf4oeVL6A9SUZkD6bKfYXqStuonSaoDKmJV9HPhMbfRDZXcrkTOMcBB5iSQ3Vcggp3c4rZ9XeZ96ay57YN/ekjK7uQGUZ3/N2xBvqVqYLMtDGxGrqeQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GUY/UTHb4nVEXSkyeDqEpuEGfSW06l+0kGqWquyWVeYELp5NUpHsK+XUJ5c427eXRvZ7NEQ1rFpU5K/ScIpvcjmjjFOavTt2ywNOqBDUfeZKKzbScW1zQGpYjTDlboAU8XF09XHZ3StFH5Bp6QTHZ5qnjYGTIwS3oPUuNet7QT8I76syvc5eiTh+GYDHbbXoiKoN0UfPOa5Nn8gydPnd0eAetspEryUjKAyUWXDbChZxRkZGlC4MtohtV7fyZ0o0VfYqAdtrXsDC0QXhBai8DqVn2cl5TnkIbjb1v7oXcMYhcaXigGMjy/ucS8WGPgZ/KCaoyTfX+4QCtB/+OVCVhQ==
  • 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: Tue, 06 May 2025 05:57:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels: MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ActionId=45b0fe01-60a5-49de-bfe8-30ff36e8e4ae;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-06T05:56:44Z;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/v2LO5SzoAgAvud1A=
  • 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, 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

> Jan

 


Rackspace

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