From patchwork Tue Nov 3 09:27:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: plongepe X-Patchwork-Id: 7541031 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8B008BEEA4 for ; Tue, 3 Nov 2015 09:33:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 869642094B for ; Tue, 3 Nov 2015 09:33:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2FDF20954 for ; Tue, 3 Nov 2015 09:33:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751112AbbKCJ03 (ORCPT ); Tue, 3 Nov 2015 04:26:29 -0500 Received: from mga02.intel.com ([134.134.136.20]:49435 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751568AbbKCJ00 (ORCPT ); Tue, 3 Nov 2015 04:26:26 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 03 Nov 2015 01:26:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,238,1444719600"; d="scan'208";a="810475505" Received: from tllab185.tl.intel.com ([10.102.161.157]) by orsmga001.jf.intel.com with ESMTP; 03 Nov 2015 01:26:26 -0800 From: Philippe Longepe To: linux-pm@vger.kernel.org Cc: srinivas.pandruvada@linux.intel.com, Stephane Gasparini Subject: [PATCH v1 2/2] intel_pstate: Change the setpoint for the cores Date: Tue, 3 Nov 2015 10:27:20 +0100 Message-Id: <1446542840-14982-2-git-send-email-philippe.longepe@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446542840-14982-1-git-send-email-philippe.longepe@linux.intel.com> References: <1446542840-14982-1-git-send-email-philippe.longepe@linux.intel.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Change the setpoint to 60 accordingly to the new core busy scaled formula. The new formaula is based on the number of cycles per seconds (average frequency) divided by the requested frequency. So, we need to chose a setpoint more aggressive to improve performance. Measured with this parameter, we noticed an improvement in Browsermark for power and perf compared to the old formula: Score without the patch: 3517 Power without the patch: 6856 mW Score with the patch: 3719 Power with the patch: 6265 mW Signed-off-by: Philippe Longepe Signed-off-by: Stephane Gasparini --- drivers/cpufreq/intel_pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 421903f..43f0067 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -872,7 +872,7 @@ static struct cpu_defaults core_params = { .pid_policy = { .sample_rate_ms = 10, .deadband = 0, - .setpoint = 97, + .setpoint = 60, .p_gain_pct = 20, .d_gain_pct = 0, .i_gain_pct = 0,