From patchwork Fri Jun 9 10:15:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 103451 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp134276qgd; Fri, 9 Jun 2017 03:16:09 -0700 (PDT) X-Received: by 10.98.66.76 with SMTP id p73mr41723095pfa.180.1497003368997; Fri, 09 Jun 2017 03:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497003368; cv=none; d=google.com; s=arc-20160816; b=yzGtNkU+j4+n0txgF6/5uEUL6NkFUzc92u/0e3fpeYxB6dAIdiPKEBSqIApph8dVfm w83/bioGHr3i+jBztzJjD6D6i+WsuCyOn6OT6XhOOKNQmNh6Lj8WrFBpY6dToctk0SjZ r6SrG8FHnPuwxETkkxxUFu0b4PRS9XmzfQCuncvWuwxsrPGO8gSRZTzplwTMQf57Nsnu QMHYbYP5FVnU6nI/JEKf+EzQcP3+VCi0sB6xHja+yEMQ5aVwt2D2xyBQCnmhSydiEpn4 CnFoqHFHlL1/fCdxFr/sHz80FkORE/O4iYaI7nE7R1BED1fLcXp0+mk5b7h0Wfd1r2Rf Vbdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=RG7GWQWTkRh5N7bcaBy6RMe82zBf8znCq6EaDg4MsiY=; b=GD1m2WKt7uFj/GHE92Ms/xPdX9MNpZBZ6p1StcF67s5dJ+39Lfx9PQNcFEKklz3MWj ggpl1uz+QXaOYbLqvALaKSjFaLj/6WnxEf9a8pBZ7V6suc8R2FicqINYABaCXmf0gOXW lLXAjOn/m49vxpCEbYKXk1kblq4FHwxsh7QfIHs6cISsdNMULGctu/trvlnD7KMgIUg1 iAi+9HPB7qgW+i+TSVeOndlb2WY5FxG+sxD8n4E/iHe0ekp1qvmqm66KDZzZeO7dI9By E3pZJD4VUkzog0BLCblG4El+JOL/W8wwvQhVxgAFpzDSiyIURYOYq0iVkk18rM+7YLrf 2DIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o20si632681pli.251.2017.06.09.03.16.08; Fri, 09 Jun 2017 03:16:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751539AbdFIKQH (ORCPT + 14 others); Fri, 9 Jun 2017 06:16:07 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:34840 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbdFIKQG (ORCPT ); Fri, 9 Jun 2017 06:16:06 -0400 Received: by mail-pg0-f46.google.com with SMTP id k71so25273000pgd.2 for ; Fri, 09 Jun 2017 03:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=RG7GWQWTkRh5N7bcaBy6RMe82zBf8znCq6EaDg4MsiY=; b=PuW8vL1x+KbaWOmAF9LtpYljhpVSP5ocLyPPUR3EaJHnrlzxdKD6ElamaMP1l6bRGZ nGm1wHkWSRRuxNTsuUwbNs0dqrkbUeZfj48bS7x/169gH/gIIM8L+j4nMPgTzvTSVdgM cC23Xi51m/0ML1f7A3aIRlo70LWzcArVKn9bo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RG7GWQWTkRh5N7bcaBy6RMe82zBf8znCq6EaDg4MsiY=; b=mJYJ+QM3ji0X9mpehq7dGcNqp+Xn/vCOcWKYvX4wl0w5MKv5O4fdU4fP9i2qa2ZIdu vMr/V2Upojlwkys68hrKA4JglFAXorIgouSXk1jM6rm4QMWBIcHkojx6DZOcVj7yEHE0 HuxUQOMzHCkcP1p1QuihmrJN5yySSp/1gzOdGlHP2njubG35I6ZsVOyGWrL8gpLYqbLA YaIkboGXZNT84isMmE6q0g6sN+J6hhN7KQmuCp2yoyk7rMiAIB2butM4YL2PQwaV0Hum HUOKmJZfoWbSBdEgiKWNlC3eH1xY8oO5gjfhS4SFroF05esSrr6KWGMFqRDL4mRoCFwk BeHw== X-Gm-Message-State: AODbwcAZcLKFNWnly4cv8QBAQHy4VTMH36aq+gm54IFvicnywMCzYC/v 60WKoLOSXwF5rr12 X-Received: by 10.99.119.130 with SMTP id s124mr31575264pgc.33.1497003365779; Fri, 09 Jun 2017 03:16:05 -0700 (PDT) Received: from localhost ([122.172.91.138]) by smtp.gmail.com with ESMTPSA id i186sm3293423pgc.4.2017.06.09.03.16.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 03:16:04 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , Juri Lelli , Ingo Molnar , Peter Zijlstra , patrick.bellasi@arm.com, john.ettedgui@gmail.com, Srinivas Pandruvada , Joel Fernandes , Morten Rasmussen Subject: [PATCH 0/3] cpufreq: schedutil: Fix 4.12 regressions Date: Fri, 9 Jun 2017 15:45:53 +0530 Message-Id: X-Mailer: git-send-email 2.13.0.70.g6367777092d9 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi Rafael, I have identified some regressions with the schedutil governor which happen due to one of your patches that got merged in 4.12-rc1. This series fixes all the drivers which provide a ->target_index() callback but doesn't fix the drivers which provide ->target() callback. Such platforms need to implement the ->resolve_freq() callback in order to get this fixed and I only had hardware for testing intel_pstate, which I fixed in this series. I am wondering if there is another way to fix this issue (than what I tried) or if we should revert the offending commit (39b64aa1c007) and look for other solutions. Anyway, this series has the necessary patches to fix it. Viresh Kumar (3): cpufreq: schedutil: Restore cached_raw_freq behavior cpufreq: schedutil: Fix selection algorithm while reducing frequency cpufreq: intel_pstate: Provide resolve_freq() to fix regression drivers/cpufreq/intel_pstate.c | 14 +++++++++++++ kernel/sched/cpufreq_schedutil.c | 45 +++++++++++++++++++++++++++++++++------- 2 files changed, 52 insertions(+), 7 deletions(-) -- 2.13.0.70.g6367777092d9