Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1117340imm; Thu, 31 May 2018 15:54:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKnwRcjBBJy7R1bLOffOlXILZTrGPePUkoKP9Kxa62Y+L40oi8uwyzBAn0sDcehBx+9e+jh X-Received: by 2002:a62:fd12:: with SMTP id p18-v6mr8452266pfh.152.1527807283732; Thu, 31 May 2018 15:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527807283; cv=none; d=google.com; s=arc-20160816; b=0BtdAJsjoY4Y1o+ggIBCxGv0n100DzD1B0AlqlG/giiHVWvREdk4qYal48ZTBhCXLr xUEF2uNc7ZAe1DoZ6w7YcvjUrT14iEuqigNlNTFGQt5x5DMQMU8ck1ovH98G/noH9YWm PaeY7I4I1i9kwfrlRKAbTx+7LsF6Y58TDp6ZiMnqsMMp3+VgzkX5HRUjm0ntlXGEqbe3 Wny6w4WOs2/vPME/wp+d9qnssYv6GAOHAa5E7FlaacJLoj+cijGuIuqdJFKvbpax1K5y vdykNb6GmiUwlkx5C+I0A05OfPgYAu2PcwOsQF+sQsAhpRPv6rqaCd4YF9JDcFgcSjcH cxcw== 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=GpFthHXGT/Dm5gkig7b+nwLIQNE7wp4GaEZPYsucbpw=; b=YVf+bqg+NP+DSK2IwrjsYw/Y9sfV8d5G/7b5K+AQbsOjQ+BDbA8RlggOBfABqPLa1p fA4sCX7RkBZnHbpQKg2e6D9v8Xb3Kn/yr8sLOZ1jD8CzL53dtv7jBWn684/qVqMi4UmS rzcrkUUkIHqViDHLdY6u1GlxkUOB7VArhrIo00dnZfaCSWTpRpnwnd2dyf4Ue4vR0L+B 09U+hCmrfAo1oh3zLidvZkUW0pQagIixwyr8S1NrjL5ib4nxySP4Tws+7zIddnyaLg1U ZfT3nyWvZ9Lbijl51GccX+MQmwDpYitqCt+unpzV6XXhu63fwxvPbh8sV/UeGwXQyOZn yxkQ== 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 z12-v6si29722620pgu.115.2018.05.31.15.54.29; Thu, 31 May 2018 15:54:43 -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 S1751305AbeEaWw3 (ORCPT + 99 others); Thu, 31 May 2018 18:52:29 -0400 Received: from mga14.intel.com ([192.55.52.115]:6566 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751209AbeEaWvy (ORCPT ); Thu, 31 May 2018 18:51:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 May 2018 15:51:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,464,1520924400"; d="scan'208";a="233413426" Received: from spandruv-desk.jf.intel.com ([10.54.75.31]) by fmsmga005.fm.intel.com with ESMTP; 31 May 2018 15:51:52 -0700 From: Srinivas Pandruvada To: lenb@kernel.org, rjw@rjwysocki.net, peterz@infradead.org, mgorman@techsingularity.net Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, juri.lelli@redhat.com, viresh.kumar@linaro.org, Srinivas Pandruvada Subject: [RFC/RFT] [PATCH v3 4/4] cpufreq: intel_pstate: enable boost for SKX Date: Thu, 31 May 2018 15:51:43 -0700 Message-Id: <20180531225143.34270-5-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180531225143.34270-1-srinivas.pandruvada@linux.intel.com> References: <20180531225143.34270-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 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