Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5264587imm; Tue, 31 Jul 2018 08:07:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/SweqowPf3YPe6+vPqkfZM6EByB7mFWhJyQwEWh9VGfwZLUqLokfxT2E+q+xf18ggPuBb X-Received: by 2002:a63:231a:: with SMTP id j26-v6mr20590747pgj.138.1533049619981; Tue, 31 Jul 2018 08:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533049619; cv=none; d=google.com; s=arc-20160816; b=jd1IoP9Odm1TLyozKg0chqk4FBKvCbvcC2gbltdr7csq/ErWObwRlf/oNL98F0rl6c wJCpcwLyetEyWtQ7POZsc+laz8WhbDEfy/KYKl5g4EaF5h05gnmaiFVrGZw2jO5UIE7u ukWd7qsp89bEr3hbGLtbcImXaJsBjfFVaJpsXCMfZ3bRXTqhho6jUIMmr60YnXV8HsJx XVgZH5MCkY0SQ9seAe3q553lXtK7FKFjD3IRtyEcsPvmgqVztMkBjKP9ssLZT3xTMoHC 9KxYmT9Fdu3V2SZh8EmMsfiwwMnvRPVdQwt3bdy7ppdgR2uZKVvWmPIpgvymkrNRTwnH v1qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=+cMdTyIUVDzKVmgmL9p6STfx6PrfnxOtk/KHQV6RXrs=; b=AaDy/LxhRzpxllroHx/cs6lxkwCtaee8l8KGFiPS621ix7//JA7e/KgQ1Sngu5jAv7 my4lHuOJdbZd8ia2TJeek/UZt+cKUOW3PU5EVMzRJFFstYfhVWlMHiENRBW4ZAmjr7Ae wzzDheQm/m+gplLf6UIKi9Rk0Y0Cqzfpip4TdmP8DsOCgfJomh1Q8s0SrZKre5BqViK5 sAYVmbrCE6xMvx1EYbrtuEK9FjLn0lR0mftDnZXRSBIWxuyU4KW9k1IoHtOc/C0/wvRE 7SFHdbKoqScsh4sC0tDwntCYSyH0L2Icx1uQ659rEY9Xs3NBQaZDyK7kh4RBC0L9qm4B bwyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="eoU7DyD/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11-v6si12649493plg.301.2018.07.31.08.06.44; Tue, 31 Jul 2018 08:06:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="eoU7DyD/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732498AbeGaQpg (ORCPT + 99 others); Tue, 31 Jul 2018 12:45:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35906 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732302AbeGaQpg (ORCPT ); Tue, 31 Jul 2018 12:45:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+cMdTyIUVDzKVmgmL9p6STfx6PrfnxOtk/KHQV6RXrs=; b=eoU7DyD/HVjH82aESm5LIahaw krIFJkBf5X1zx4X91YAjtNJMj78MvElQIaiXv9YSqZanrP6ZL0zX2VgkWw7kLuwSv3ykg9hkXJVuF fnVc5MvIxfk31X6giXH84MVIwOgUHF5bulmOjMt75Y8XcE0ZSzr0FvjwIi7gPCVSUB+eJ01ipzADL XsnLQgI7UxckE/8CXg6Dk5cQGCXYXaw1LMRu2OB9ks5RixfKrKRd0HiQmNnpOxDCC6k2UTvwYZsyX bBWZb0F7CRMDf10hTWz1kPjEIUu4dsnayWL+KDQofberpMNUX0D40CCpvKQ/KUfydLzyy/d2aU9iM yngi3zK6w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkWCW-0001o0-Iy; Tue, 31 Jul 2018 15:04:40 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CA41720532353; Tue, 31 Jul 2018 17:04:38 +0200 (CEST) Date: Tue, 31 Jul 2018 17:04:38 +0200 From: Peter Zijlstra To: Srinivas Pandruvada Cc: Eero Tamminen , Mel Gorman , Francisco Jerez , lenb@kernel.org, rjw@rjwysocki.net, ggherdovich@suse.cz, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, juri.lelli@redhat.com, viresh.kumar@linaro.org, Chris Wilson , Tvrtko Ursulin , Joonas Lahtinen Subject: Re: [PATCH 4/4] cpufreq: intel_pstate: enable boost for Skylake Xeon Message-ID: <20180731150438.GE2458@hirez.programming.kicks-ass.net> References: <20180605214242.62156-1-srinivas.pandruvada@linux.intel.com> <20180605214242.62156-5-srinivas.pandruvada@linux.intel.com> <87bmarhqk4.fsf@riseup.net> <20180728123639.7ckv3ljnei3urn6m@techsingularity.net> <605cfcb3f315917c5970f452fab988ae1dc946ff.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <605cfcb3f315917c5970f452fab988ae1dc946ff.camel@linux.intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 30, 2018 at 07:06:21AM -0700, Srinivas Pandruvada wrote: > On Mon, 2018-07-30 at 14:16 +0300, Eero Tamminen wrote: > > Questions: > > > > * Does currently kernel CPU freq management have any idea which IO > > devices share TDP with the CPU cores? > No. The requests we do to hardware is just indication only (HW can > ignore it). The HW has a bias register to adjust and distribute power > among users. > We can have several other active device on servers beside CPU which > when runs need extra power. So the HW arbitrates power. That's not entirely accurate AFAIK. "No" is accurate for Intel, but the ARM people have their IPA thing (not a beer): https://developer.arm.com/open-source/intelligent-power-allocation drivers/thermal/power_allocator.c which IIUC interacts with their cpufreq driver to disallow certain OPP states. And note that I discourage intel_pstate active mode.