Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1505720imm; Tue, 15 May 2018 21:52:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoGL99xrEvKwzc/NsswjWRglgIzut+LBZFmDJOxds+DohPFkXtXXnulQLKuSPzMKnBdqJYD X-Received: by 2002:a17:902:5e3:: with SMTP id f90-v6mr2139083plf.175.1526446325591; Tue, 15 May 2018 21:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526446325; cv=none; d=google.com; s=arc-20160816; b=vrVwJiXla7fVpYNSU/fMq8+ZCfb6QWGrAeTZapITtDgA00RP4XdC2xokRKWuM9EbIK M/JY53hG9U2CvtQf2wfDiSm3KS7EkKe+mFpVSaWnPn4YNy0u+V/AUB0XZdNfJz7Il6Vf a1FpDRVEqsNvNZUYESV8ffwf2luiELYDGvk8nb1aj7tuCtbaBaIoc2j9uI8My2xDgkkV GxNeEq5ohDzpnSA8tg9hemSvC+Crtl1HukL6//YCcYLH9nKbMRDk2wpb35wFrxPgeUQq ow1XZZwBCEFLhP7W/s0wOlmH+uLkhILIrKSbk5VPomLAmXtSFevWy9ErDQvuq33RyuOp a94g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=TvDgrm/5TFxiF1fjh9+h3yX9QGadK6Cx6PB/z0EY2kg=; b=vRYdTxcoEfEV7aOj276rK+oUIcUbxYJLbaXmTgHF3VDkp/R2hO32A8Yoal3SZKq1Pd WWL4NyEm53bOzLDK3Vy+q1fRNR3y1GHKlGmw9vPEmh811OxVBpX9UjRlHTy9mX21p9tp cqlAY7SAIBoyFWc81d35nMHJt1J57GKljjGbh6IvU0iP6IMvA+MYUr5LYbuWAo2y2bSx KsdkFyfbH6qYDkyy91QwEv5L8XWr7vyBUlhAQLdl36sY/kAJXN79drxGmhJxT/vM1TTh b9IB5C9vN4pbheO3RGpHZnQk1roV6QANvlfCGs/YGr02XL0eYuzA2wbqJ7J+XqCY8Pov pL1A== 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 s129-v6si1813406pfc.33.2018.05.15.21.51.51; Tue, 15 May 2018 21:52:05 -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 S1752208AbeEPEtg (ORCPT + 99 others); Wed, 16 May 2018 00:49:36 -0400 Received: from mga04.intel.com ([192.55.52.120]:1168 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046AbeEPEtW (ORCPT ); Wed, 16 May 2018 00:49:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 May 2018 21:49:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,404,1520924400"; d="scan'208";a="41300353" Received: from sunandaa-mobl.amr.corp.intel.com (HELO spandruv-mobl.jf.intel.com) ([10.252.135.192]) by orsmga007.jf.intel.com with ESMTP; 15 May 2018 21:49:20 -0700 From: Srinivas Pandruvada To: srinivas.pandruvada@linux.intel.com, tglx@linutronix.de, mingo@redhat.com, peterz@infradead.org, bp@suse.de, lenb@kernel.org, rjw@rjwysocki.net, mgorman@techsingularity.net Cc: x86@kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, juri.lelli@arm.com, linux-kernel@vger.kernel.org Subject: [RFC/RFT] [PATCH 10/10] cpufreq: intel_pstate: enable boost for SKX Date: Tue, 15 May 2018 21:49:11 -0700 Message-Id: <20180516044911.28797-11-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180516044911.28797-1-srinivas.pandruvada@linux.intel.com> References: <20180516044911.28797-1-srinivas.pandruvada@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 65d11d2..827c003 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -1863,6 +1863,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; @@ -1893,6 +1898,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.9.5