From: Jacob Shin Subject: Re: [PATCH 1/2] cpufreq, powernow: enable/disable core performance boost for all cpus in policy Date: Thu, 20 Jun 2013 10:32:44 -0500 Message-ID: <20130620153244.GB7239@jshin-Toonie> References: <1371672887-1774-1-git-send-email-jacob.shin@amd.com> <20130619230711.GA14918@jshin-Toonie> <51C2D13802000078000DF3EA@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <51C2D13802000078000DF3EA@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Liu Jinsong , Suravee Suthikulanit , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, Jun 20, 2013 at 08:54:00AM +0100, Jan Beulich wrote: > >>> On 20.06.13 at 01:07, Jacob Shin wrote: > > On Wed, Jun 19, 2013 at 03:14:46PM -0500, Jacob Shin wrote: > >> Currently, enable/disable turbo mode on AMD is broken: > >> > >> $ xenpm enable-turbo-mode 0 <-- works and proper CPU MSR bit is set > >> $ xenpm enable-turbo-mode 1 <-- silently broken, MSR bit not set > >> > >> Since ->turbo is per policy, when user requests to enable/disable > >> turbo mode, we need to set the bit in all of the ->cpus that this > >> policy affects. > > > > Sorry, I'll have to re-do this [PATCH 1/2], as it does not solve the > > problem on platforms with a separate policy per CPU. > > But isn't a separate policy per CPU meaning that indeed you want > to only fiddle with the one CPU that the policy is getting changed > for? Yes, this is okay if the end user realizes that on current AMD parts, disabling turbo on one core means that it affects all other sibling cores that are on the same node. $ xenpm disable-turbo-mode 0 > > 1. We'll have to either globally enable/disable boost for all CPUs, or > > That's clearly not a good path, as the interface is specifically > intending to allow per-policy control. Okay. > > > 2. [if there is a easy way to do so] find all Node siblings and set > > their bits and policy->turbo as well. > > That would be the way to go, pending clarification on the above. Let me know what you think about my blurb above. Thanks!