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

RE: [PATCH v8 1/8] xen/cpufreq: introduce new sub-hypercall to propagate CPPC data


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Penny, Zheng" <penny.zheng@xxxxxxx>
  • Date: Wed, 3 Sep 2025 03:16:45 +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=3MKx7kjQDyAnmV3fL3rzYARSgLguR1FN9t/RRvMOIP8=; b=qbcqddfGjrwYiQdXh9oMxbnNA85+GsM/fJZ5xbJQkiH4ZxJPvt5qSadsSeTQtHrVOPGnjBRRU5EEQ+7Nes2LAZ/yeFSQmi+BScVfA8zGuW03IotzxnMO4JT53OO9hfRzYkMA/Onj2Jh3qnkSkWeIUi1+eRIUXEAKM5OjrjOSY9ucBz+JxxoJN1doNuMi6DVWu9Gr36Pk3h7zvBeksXHf67cBQEIUNe85NwbEg/nAa54OdYJyeti52btuGCXosnf99GlLSGZukPd1WpBX+prz+g+EM7GWJKWvQeVdT2y30Ooja0eUaCJ7aih1y7hmP3+KIf1Yah1K5zBfW9UzN3XmCA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=k5Dlr+a1cpKF4zqvwow11H4lhwMh64Pg8DZPRme+0PxPcCdyyF819Yx/e3S42uUVHtCjZOQ161jAaXIV12QtuZoSpP//nMeq20ygn7+AfyNyqJZX/5iCzcaBnlX5obIyXQLnj/SQ6mTe691r3idd/5z3wQ0ktGvu9xdTmDcYWOgWBtoooc/MzaLLDAz+PSooCol8LtdVX/g27kWglJ2nA+2ACK8+Kn10Adz+WsDPQRYruDgFI6ohzDFT+TmOGMpXkwtkIUhTy2uSANPip9cWviLsmS3VSMpBHcilxZ65af/O5ey75kaeHLJFBnaNxJ/AA6SvmjCTS52AOKlPqdxccg==
  • 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>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Orzel, Michal" <Michal.Orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 03 Sep 2025 03:16:53 +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-09-03T03:16:40.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: AQHcGAMFn6LyRgMx2kqwcXFBCS++s7R4BJqAgAjNW6A=
  • Thread-topic: [PATCH v8 1/8] xen/cpufreq: introduce new sub-hypercall to propagate CPPC data

[Public]

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Thursday, August 28, 2025 8:50 PM
> To: Penny, Zheng <penny.zheng@xxxxxxx>
> Cc: Huang, Ray <Ray.Huang@xxxxxxx>; Andrew Cooper
> <andrew.cooper3@xxxxxxxxxx>; Roger Pau Monné <roger.pau@xxxxxxxxxx>;
> Anthony PERARD <anthony.perard@xxxxxxxxxx>; Orzel, Michal
> <Michal.Orzel@xxxxxxx>; Julien Grall <julien@xxxxxxx>; Stefano Stabellini
> <sstabellini@xxxxxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH v8 1/8] xen/cpufreq: introduce new sub-hypercall to 
> propagate
> CPPC data
>
> On 28.08.2025 12:02, Penny Zheng wrote:
> > @@ -693,6 +699,120 @@ int acpi_set_pdc_bits(unsigned int acpi_id,
> XEN_GUEST_HANDLE(uint32) pdc)
> >      return ret;
> >  }
> >
> > +static void print_CPPC(const struct xen_processor_cppc *cppc_data) {
> > +    printk("\t_CPC: highest_perf=%u, lowest_perf=%u, "
> > +           "nominal_perf=%u, lowest_nonlinear_perf=%u, "
> > +           "nominal_mhz=%uMHz, lowest_mhz=%uMHz\n",
> > +           cppc_data->cpc.highest_perf, cppc_data->cpc.lowest_perf,
> > +           cppc_data->cpc.nominal_perf, 
> > cppc_data->cpc.lowest_nonlinear_perf,
> > +           cppc_data->cpc.nominal_mhz, cppc_data->cpc.lowest_mhz); }
> > +
> > +int set_cppc_pminfo(unsigned int acpi_id,
> > +                    const struct xen_processor_cppc *cppc_data) {
> > +    int ret = 0, cpuid;
>
> Eclair doesn't like this:
>
> Reports for service MC3A2.R5.3
>
> service MC3A2.R5.3: (required) An identifier declared in an inner scope shall 
> not
> hide an identifier declared in an outer scope (1 of 1 violation)
>
>  violation for MC3A2.R5.3 untagged
> xen/arch/x86/include/asm/processor.h:130.20-130.24:
> non-compliant function `cpuid(unsigned, unsigned*, unsigned*, unsigned*,
> unsigned*)' (unit `xen/drivers/cpufreq/cpufreq.c' with target
> `xen/drivers/cpufreq/.cpufreq.o.tmp'): there is another identifier `cpuid'
> xen/drivers/cpufreq/cpufreq.c:726.18-726.22:
> non-compliant local variable `cpuid': there is another identifier `cpuid'
>
> I'm fixing this up for you, but I have to admit that I'm getting tired of 
> doing such
> cleanups for supposedly-ready-to-commit patches.
>

So sorry. I was missing such misra CI in our internal. I'll add it to avoid 
such errors

> Jan

 


Rackspace

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