Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp689585imm; Fri, 1 Jun 2018 07:58:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKj0/Atjf7pEl2GT8XYesNSpdwGC1bumMIOSXNzZER7b1hxUH3Adz02uFqwjMBfrsl3VKKD X-Received: by 2002:a63:9e42:: with SMTP id r2-v6mr9172724pgo.436.1527865118466; Fri, 01 Jun 2018 07:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527865118; cv=none; d=google.com; s=arc-20160816; b=dL0YgCcCuKrI9d0SrWhgcSMffqH6H4Rd6azvW8Ycu87pR2SSUdwdF5cy+2oWrv+qeK vmCpCr2gAblzRaUzX+BiT6fCmRVCk3w+iFN4x4BLpLdmaZKeK8mg04BqOzU6fFtplD3o eSkre9Cagf8C57NUE6ras9z3W/FYcH3Qg/CHV6A3WiFjhvPI4+GYGScHTEiLASA0OZTP Qt86/GEwTQk1lBY3cFs0pLkT8NkERTSgejYnks+mNuog11weo6MLu/a+lc4w2vzb/DVz t1dOz5hi5mavsT070v0/AF08LnaU4YxzY5wDMF4M9+1zmth6/AvcRbmwlf71lQZ17Yxi iV7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=NAeRflZ9T5liyuPFDW0b6rm0e0bEVkkb9IhYKBjj9RA=; b=CDDPXftmhj+4fWh3IWncMwMaCEuL2jCN2ZNtb+b458EaBeC8i4zLB5BsiICTm/HJZp ULpI1y7m2qpvVolgAGtcTpZo242AKERpxgvWVqRAPdnt1tLyXSPhJoGE38/W4jZOnaxd ywP+XBxGOXAoehPcgDU2W5dadup5WkJwib+rcYgpAnnkndOVVUYBbChhbKZPgOCZfbiy /0rIi3BtfpLzlv+MAAGzxKPd5MEQgwvSkqlpdUJ4MgKhAI0S1VODBf4gO9FwmTJnjS5L wr/OU6ZXOeWcAuZJeARClLkQMBvJhU9/d2JFMtX29Cmg2UJWr6GdUq9IDJPv8c77JRo0 4cOw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g86-v6si11197254pfj.283.2018.06.01.07.58.24; Fri, 01 Jun 2018 07:58:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752252AbeFAO5v (ORCPT + 99 others); Fri, 1 Jun 2018 10:57:51 -0400 Received: from mga05.intel.com ([192.55.52.43]:44116 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752036AbeFAO5t (ORCPT ); Fri, 1 Jun 2018 10:57:49 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jun 2018 07:57:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,467,1520924400"; d="scan'208";a="43932700" Received: from spandruv-mobl.jf.intel.com ([10.254.106.145]) by fmsmga007.fm.intel.com with ESMTP; 01 Jun 2018 07:57:48 -0700 Message-ID: <1527865068.3871.3.camel@linux.intel.com> Subject: Re: [RFC/RFT] [PATCH v3 4/4] cpufreq: intel_pstate: enable boost for SKX From: Srinivas Pandruvada To: Giovanni Gherdovich 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 Date: Fri, 01 Jun 2018 07:57:48 -0700 In-Reply-To: <20180601120103.olsxfhj6b5d5tahz@linux-h043> References: <20180531225143.34270-1-srinivas.pandruvada@linux.intel.com> <20180531225143.34270-5-srinivas.pandruvada@linux.intel.com> <20180601120103.olsxfhj6b5d5tahz@linux-h043> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-2.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-06-01 at 14:01 +0200, Giovanni Gherdovich wrote: > 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 > .com> > > --- > >  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. This is entry level server using SKL desktop CPU model. We will see some improvements, but not as big as Xeon E5s. So we can add based on your test results. Thanks, Srinivas > > /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