Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp44822imm; Tue, 5 Jun 2018 14:44:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIgZddREwpyJlk1Zy0x6Ndn8N87epsIUQHlD74GJN7BIiJB3j6AgQ5h2u18O1L1ic+5xov1 X-Received: by 2002:a65:6356:: with SMTP id p22-v6mr296932pgv.20.1528235065562; Tue, 05 Jun 2018 14:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528235065; cv=none; d=google.com; s=arc-20160816; b=VpOc3R2VCTeLQr7NX22e6sxZX5daaVo/R7J8lmSLqWzcERBJXQyVuKsgN5iHDhEi1f A4T0TTu46Snno7Ma42uPxlhs4z4448pefJzn34Bc1pEjK8X2qtQFTiL5ukU4VD99AJaT 2quTDiOyyV1fzzzDYqZY2aanpjksQZhg/m6C3nXyIvZWZwxHxGq/Moe/gdNfcJn4YVHu iTOfw+kVmyVY/eZw+YsEM0fj1uUhisgmMmmrGMgV95PEiCqlC71yXmSNeepuFs4GMAO4 cSlG2qQkpd+5wE+9l452ZaMeeX/mESkmWH7n2dig+BhtX3gmAAt4r9Kma8EDrmARETOd wbXA== 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=hInjQL9bWpsZU285gK+m7JYL6iqcLptjmcO4heV/gfc=; b=DtmaUlfXH430bKvawi1qY6Mv1l9G0NQl2eD9SRdHPXpr2CoDyMSHIrEUwSfLCumayK H9uKNh9bmRDztwSpd09uf7juGtnU0njdb3fZbb+6qfGEfKDnUlasmUBykzsJqYwfcIsS G7CmqvIwV1mn06OqXVGFSfHj4bwkUKNnCqcHlZTD1Qr+jI8eOXdXwBLNgBwFwpR4mp6Z Ai0haMZdzrccwDLqOJZlX0Q1gbnH2mM8eeLVuTarQodpOsf48grcs7BXea41rFmVCSy2 jlM34aBzPiznxZCQ5xzEnJsASuojM+yAzVAViHUK7rmFIBBY6PsavPxZeoDHtzJ3Dqwc yx3Q== 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 m2-v6si50009427pfb.259.2018.06.05.14.44.11; Tue, 05 Jun 2018 14:44: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752636AbeFEVn1 (ORCPT + 99 others); Tue, 5 Jun 2018 17:43:27 -0400 Received: from mga04.intel.com ([192.55.52.120]:37416 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752365AbeFEVmv (ORCPT ); Tue, 5 Jun 2018 17:42:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jun 2018 14:42:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,479,1520924400"; d="scan'208";a="47023743" Received: from spandruv-desk.jf.intel.com ([10.54.75.31]) by orsmga008.jf.intel.com with ESMTP; 05 Jun 2018 14:42:49 -0700 From: Srinivas Pandruvada To: lenb@kernel.org, rjw@rjwysocki.net, mgorman@techsingularity.net Cc: peterz@infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, juri.lelli@redhat.com, viresh.kumar@linaro.org, ggherdovich@suse.cz, Srinivas Pandruvada Subject: [PATCH 4/4] cpufreq: intel_pstate: enable boost for Skylake Xeon Date: Tue, 5 Jun 2018 14:42:42 -0700 Message-Id: <20180605214242.62156-5-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180605214242.62156-1-srinivas.pandruvada@linux.intel.com> References: <20180605214242.62156-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 and workstations. Reported-by: Mel Gorman Tested-by: Giovanni Gherdovich Signed-off-by: Srinivas Pandruvada --- drivers/cpufreq/intel_pstate.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 70bf63bb4e0e..01c8da1f99db 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -1794,6 +1794,12 @@ 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), + ICPU(INTEL_FAM6_SKYLAKE_DESKTOP, core_funcs), + {} +}; + static int intel_pstate_init_cpu(unsigned int cpunum) { struct cpudata *cpu; @@ -1824,6 +1830,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