Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp501635imm; Fri, 1 Jun 2018 04:58:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK3zJD6mFleOQv+v2XyX4raLWN9wZXiNf8TXT9+KeYRqpttF1Llwf+OwV32p0U0gK3MWG1N X-Received: by 2002:a17:902:868b:: with SMTP id g11-v6mr10586378plo.305.1527854305196; Fri, 01 Jun 2018 04:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527854305; cv=none; d=google.com; s=arc-20160816; b=cBkP6zMyvLAYzYWDLNFtQm5wC4e7fx4LfK/dZa1dPttcQTAxVEmQE3bzF5kJAfHifC ALUOvotM1ulu8J7Wu4lQqY6apvV5XORuLE4IvSbE04K0i3tW6nl+ThgQDZJmec7bf933 DM3y+cmwG1fgEkOJLGXVRZHmYRjsz01kTJXACQLowj0zn/5xzyC4AF33KdcxV8HA/FFl WTaIqnRZNe/g8oGTowM6oWO6bELuRkOuZtTog+mGpHb34Wrzt7+r9hCxp/MSmRCJWubY GPOkqnmwc9aXYOmoEju/tYMBLjFVKthEFReXk/dRdcpwX5TCmpq5riXF7KpE+rbS1Qu6 S1LQ== 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:arc-authentication-results; bh=4LkkjT1FCWxkSiraQ0kfwHEmC8pRFDaLwkQs6FoJd0Y=; b=wbOTMbg9kiIhHnWGFnXyGrjKPc1g0ucwwNvSRFzlrLnuWhBCyn2qfJ5ZLhDgSq3nxW Sle8GLQG6Mfh3CvORcDIvTMfy6zg7Kdq7hg1QxVl6AhIk7gBkXJz4ZC1eN4lhiAMAuCT Cr4TKuZ4d764L9PuRQ6vuUrA0NAD3Q9TDBZ33qOKgeaW+GU2SK5lPKpwvygVfkbKq0Sf 1kPPwbxxIO7XY44PGCGMSf2jiUQ/N6T4TclAZYTr1mCrrAGfamLlUBDzKmHLc+jCN/4t aRkJuusQ+bfDsk99KeLHtLEdTFzkj292XRNuWQuGMOK+CgDJzMlT9OarDj0m84xvchY5 FYKg== ARC-Authentication-Results: i=1; mx.google.com; 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 d7-v6si40660438pfe.214.2018.06.01.04.58.10; Fri, 01 Jun 2018 04:58:25 -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; 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 S1751693AbeFAL5r (ORCPT + 99 others); Fri, 1 Jun 2018 07:57:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:60307 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbeFAL5p (ORCPT ); Fri, 1 Jun 2018 07:57:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 923CEAE5D; Fri, 1 Jun 2018 11:57:44 +0000 (UTC) Date: Fri, 1 Jun 2018 14:01:03 +0200 From: Giovanni Gherdovich To: Srinivas Pandruvada Cc: lenb@kernel.org, rjw@rjwysocki.net, peterz@infradead.org, mgorman@techsingularity.net, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, juri.lelli@redhat.com, viresh.kumar@linaro.org Subject: Re: [RFC/RFT] [PATCH v3 4/4] cpufreq: intel_pstate: enable boost for SKX Message-ID: <20180601120103.olsxfhj6b5d5tahz@linux-h043> References: <20180531225143.34270-1-srinivas.pandruvada@linux.intel.com> <20180531225143.34270-5-srinivas.pandruvada@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180531225143.34270-5-srinivas.pandruvada@linux.intel.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 03:51:43PM -0700, Srinivas Pandruvada wrote: > Enable HWP boost on Skylake server platform. > > Signed-off-by: Srinivas Pandruvada > --- > drivers/cpufreq/intel_pstate.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c > index 254e30a6c1e0..75c5a95bc0ac 100644 > --- a/drivers/cpufreq/intel_pstate.c > +++ b/drivers/cpufreq/intel_pstate.c > @@ -1794,6 +1794,11 @@ static const struct x86_cpu_id intel_pstate_cpu_ee_disable_ids[] = { > {} > }; > > +static const struct x86_cpu_id intel_pstate_hwp_boost_ids[] __initconst = { > + ICPU(INTEL_FAM6_SKYLAKE_X, core_funcs), > + {} > +}; > + > static int intel_pstate_init_cpu(unsigned int cpunum) > { > struct cpudata *cpu; > @@ -1824,6 +1829,10 @@ static int intel_pstate_init_cpu(unsigned int cpunum) > intel_pstate_disable_ee(cpunum); > > intel_pstate_hwp_enable(cpu); > + > + id = x86_match_cpu(intel_pstate_hwp_boost_ids); > + if (id) > + hwp_boost = true; > } > > intel_pstate_get_cpu_pstates(cpu); > -- > 2.13.6 > > I have a Skylake server, HWP capable, but it doesn't trigger this bit; I had to do "echo 1 > /sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost". Just out of curiosity, do you see reasons for leaving some SKL out of the default setting? Or maybe I'm missing something. /proc/cpuinfo says that the model name is "Intel(R) Xeon(R) CPU E3-1240 v5"; the outputs of `cpuid -1` and `cpuid -1 --raw` are in this pastebin: http://paste.opensuse.org/view/raw/34255499 Giovanni Gherdovich SUSE Labs