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

RE: [PATCH v3 12/15] xen/x86: implement EPP support for the amd-cppc driver in active mode


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Penny, Zheng" <penny.zheng@xxxxxxx>
  • Date: Tue, 8 Apr 2025 10:32:27 +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=ev7nvsJKZBmuBBVLRoLK7K9PkOBUVIAuA45RqMOyAgw=; b=gcqPoiMs60qyNT8IDC8RnE0MWmvOb80Pmne2I5vg1Ai0dM5ren3JS/ucK1Um+sxcH8w/ESkGMSqoncaIlO6BsbgLn4kJi1D7kTSrGW/8o09TSgg0MC+9Oaf/attZUeNxGJ5erhb6ECywLTrDIrpFQ4fbejONU7pi+nIuXd5Ad3UXrrHjV6o9o/GqoCzWs02DFlywEZ5DLnTjNKNZLngAQudtdpykJAHxt3qVwuKP+HHvIqSlAEYWmR6+bcNVMGWRxsbOae8XFe/1oklNxkHEKwryEe15qAIXNgv7ygtbGRh8Z3K6wpWk+fMl7+AldM83zR/QYkhQgIBQc3FAlVyu5Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KJhXm1+rAkaudxiU+s7TrZjTcsXwqA2JClZN+su25637WUiHwca+rYSDeZR0ITKNfs211jOrAd1VJ4EVijp2K2qE3BKGTDqdDbDYgnUmHzponjiP5p1OKK3QbUJKz566UmrnPZsNKhouDDY6NMQA/F9wJYfc2tvdSyYtXyyfAG752ljNtoxk0l3/lIXTq6XpnzJ4t/6Rj+rzOQjn+80fuq13Iub0ko9IxaNQ8aLmNZK2QaEr8lUvzhq3+1Cy5EkhuSmpiOUYs1e5uux/31xUlRXf/5haNrZomiXgEHum03yAUi76jqqVqZckA9o5lNwke3KrU3JZ5Jg4uIByub7sJw==
  • 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, 08 Apr 2025 10:32:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_labels: MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ActionId=3a8dd3f6-df18-4998-a1ff-938efd1d046f;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-04-08T10:31:43Z;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: AQHbjnN37UHiYLzXuU6NGNUDEkiF17ODyhuAgAMeFYCAAV4OAIARekvw
  • Thread-topic: [PATCH v3 12/15] xen/x86: implement EPP support for the amd-cppc driver in active mode

[Public]

Hi,

> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Friday, March 28, 2025 3:18 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 v3 12/15] xen/x86: implement EPP support for the amd-cppc
> driver in active mode
>
> On 28.03.2025 05:07, Penny, Zheng wrote:
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: Tuesday, March 25, 2025 6:49 PM
> >>
> >> On 06.03.2025 09:39, Penny Zheng wrote:
>
> >>> +    {
> >>> +        /* Force the epp value to be zero for performance policy */
> >>> +        epp = CPPC_ENERGY_PERF_MAX_PERFORMANCE;
> >>> +        min_perf = max_perf;
> >>> +    }
> >>> +    else if ( policy->policy == CPUFREQ_POLICY_POWERSAVE )
> >>> +        /* Force the epp value to be 0xff for powersave policy */
> >>> +        /*
> >>> +         * If set max_perf = min_perf = lowest_perf, we are putting
> >>> +         * cpu cores in idle.
> >>> +         */
> >>
> >> Nit: Such two successive comments want combining. (Same near the top
> >> of the function, as I notice only now.)
> >>
> >> Furthermore I'm in trouble with interpreting this comment: To me "lowest"
> >> doesn't mean "doing nothing" but "doing things as efficiently in
> >> terms of power use as possible". IOW that's not idle. Yet the comment
> >> reads as if it was meant to be an explanation of why we can't set
> >> max_perf from min_perf here. That is, not matter what's meant to be
> >> said, I think this needs re- wording (and possibly using subjunctive mood).
> >
> > How about:
> > The lowest non-linear perf is equivalent as P2 frequency. Reducing
> > performance below this point does not lead to total energy savings for a 
> > given
> computation (although it reduces momentary power).
> > So we are not suggesting to set max_perf smaller than lowest non-linear 
> > perf, or
> even the lowest perf.
>
> In an abstract way I think I can follow this. In the context of the code being
> commented, however, I'm afraid I still can't make sense of it. Main point 
> being that
> the code commented doesn't use any of the *_perf values. It only sets the 
> "epp"
> local variable. Maybe the point of the comment is to explain why non of the 
> *_perf
> are used here, but I can't read this out of either of the proposed texts.
>

I've checked some internal test suites for CPPC in windows. Maybe setting 
max_perf = nominal_perf
is a fair option for powersave mode

> Jan

 


Rackspace

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