Received: by 10.223.176.5 with SMTP id f5csp2088995wra; Thu, 8 Feb 2018 08:16:33 -0800 (PST) X-Google-Smtp-Source: AH8x226JFIcQa+9tJfJAGnEuMvHWtaK9hQsE6o2f+BQ2Sfbv6wopYaCAghD3uyNFO9ZQDnLd2sO/ X-Received: by 10.99.113.7 with SMTP id m7mr899959pgc.403.1518106593081; Thu, 08 Feb 2018 08:16:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518106593; cv=none; d=google.com; s=arc-20160816; b=gMhNOyOcdDgvjogCgzYVIgrbOR2UioSOYSGrTuF+B5Bl3jCRojYbYTAoyQGiYdjqFu wGKcWhN58yAiljfho4bg2nrcB6KULH3OlDDHVPxhxJkeyxClKgZ4gt2gWZt7AonE4ttT 0rVN3ss/uuqm8yQ1EykNc9HfKGgUB71dXEHcDlgrWZsfMhXWISwy64oZlk5WIaaDcMTD TCihORAS1tzHCAxIi1rpTxKj+1eT7MLHN5TsVDthBbUeIvxbqR83ZtKKXWZ1MlrgnfIk rbM8U+QSPNCqRgyembfUomIsP66f7KVHCcNoDI8aQ5KZY1eqz2qjmqtrSeVjvs9pflt0 gDlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=FLsP/tjp9U9vcGFl6hes5eouZTLCX6cLZJwe+fNLOCQ=; b=KIGmMO+2D4ejKM1jJXOvvLxjgyObmvTmErAswdBhp8SNna4nC4h2BqkgfwsaJubVtP djBM7FrnvDxvk1gh0bulL0pUqRaJRQsEPBCP52JNxGm0roablp9Js1mcIQGtnhO/b2Ei Lhh2CCMFYZ4L1HPzmT/Tc3pSqFPcXa4c95GKZmi9rsfZ8tQxMT86cdbm/cOZ5OqpMZ2s dk1vvtvlj3KbMSC8XtpZCD69m3yRRENdzxgXXKPithnBpuevovh4jFgN8bgrO8b2xCMH A/tGU0AWfy1lh08nl39u9iBO9tfJ3J3b+/zPy1m71KOIzsv832TTtkOQgayDg3jMWoBz G4jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@evidence-eu-com.20150623.gappssmtp.com header.s=20150623 header.b=j/EwjruD; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u59-v6si152458plb.722.2018.02.08.08.16.17; Thu, 08 Feb 2018 08:16:33 -0800 (PST) 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; dkim=pass header.i=@evidence-eu-com.20150623.gappssmtp.com header.s=20150623 header.b=j/EwjruD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752003AbeBHQPD (ORCPT + 99 others); Thu, 8 Feb 2018 11:15:03 -0500 Received: from mail-wr0-f173.google.com ([209.85.128.173]:39990 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750847AbeBHQPB (ORCPT ); Thu, 8 Feb 2018 11:15:01 -0500 Received: by mail-wr0-f173.google.com with SMTP id o76so2168707wrb.7 for ; Thu, 08 Feb 2018 08:15:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evidence-eu-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FLsP/tjp9U9vcGFl6hes5eouZTLCX6cLZJwe+fNLOCQ=; b=j/EwjruDaoJi+gN6ZZk1tmwA4hSFUrPL8g8G+Ae/FKkfKm84lj6ITqE6gXv/6Jtr/T pHAC2IYw3ZVsPDpa83TQN3GXz+yvXUy0A90fbWPX5Sb22EIHGU1DWg1erngcX5t4baGt QdFBslmm7b5jpbVzlXhZA1BEAHe5yi6Sn6BgCfartBri6KplyBhBRWfWP0R8ZRpiQ4Ni 8rWjO4ijNItMXAMbnVD5S2HgaYzLrlLLIS2qu41IDdZuV8oEEKHEmca1ePD32QChfuro ggwiR0msGswL7C4xsXXr27eYUsKaCAwfsvbiw6bal94LhMh2eZdbQbq+AqUC7Iff1+Gd wePw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FLsP/tjp9U9vcGFl6hes5eouZTLCX6cLZJwe+fNLOCQ=; b=DyElyUCEOlqRcFcppxuCg73EolzYTZpavyhU7EyeeGdywmj3lyKq30VT2KeMCoYOha IcjVX55+O1ZXcEDkXLrP0PwiGKhu0oeL0ivz5DXpmZqPnL1DUI0bLv2kCHFwD9gj/+Rt 7gOpFPQP95vglT58UgY5kZLwGaByHQbNc0KRVT451ai53wnOWlYhCt5Lr13+JVkL48oh kWuDn3oFhjQUCZ/kUEY1xPdJjPJfWF+ka8GqwyOw7nSRqOW474JzafE+VTx2PnL+o0y9 WR+3XYlITZj1nUgw3Run4kLjEPmBMFh+4tKBvYRV/DUM4lE3fplp4MC7RNwLg1fomtbZ EwjA== X-Gm-Message-State: APf1xPBTi+W5y+n1lvhb0bdmfWbBhxtb8Mk7PESpcmRV9a6rMaKN9grF sFkRvFPLF3Jqcm2O3Wfb/pIJpA== X-Received: by 10.223.136.167 with SMTP id f36mr1328295wrf.200.1518106500348; Thu, 08 Feb 2018 08:15:00 -0800 (PST) Received: from [192.168.10.160] (host92-93-static.8-79-b.business.telecomitalia.it. [79.8.93.92]) by smtp.gmail.com with ESMTPSA id w74sm626382wmd.1.2018.02.08.08.14.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 08:14:59 -0800 (PST) Subject: Re: [PATCH v3 0/6] cpufreq: schedutil: fixes for flags updates To: Patrick Bellasi Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes References: <20171130114723.29210-1-patrick.bellasi@arm.com> <20171220153029.dqrtjbyowhqdl56r@hirez.programming.kicks-ass.net> <20180206154319.GF5739@e110439-lin> <68afaf84-893e-6770-b9f1-619cd2b6dc9c@evidence.eu.com> <20180206183623.GH5739@e110439-lin> From: Claudio Scordino Message-ID: <574fa064-3551-27e8-5abf-bd625ba928de@evidence.eu.com> Date: Thu, 8 Feb 2018 17:14:58 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180206183623.GH5739@e110439-lin> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: it-IT Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Patrick, Il 06/02/2018 19:36, Patrick Bellasi ha scritto: > On 06-Feb 19:14, Claudio Scordino wrote: >> Hi Patrick, > >>> At first glance, your proposal below makes to make sense. >>> >>> However, I'm wondering if we cannot get it working using >>> rq->dl's provided information instead of flags? >> >> Yes, we can use the value of rq->dl to check if there has been an increase of the deadline utilization. >> Even if schedutil might have been triggered by a different scheduling class, the effect should be almost the same. >> >> Below a potential patch. I've kept all frequency update decisions in a single point (i.e. sugov_should_update_freq). >> Not yet tested (waiting for further comments). > > I have a todo list entry to backport/test Peter's series on Android... > will add this patch too. Thanks. Please discard my latest patch, as the tests on Odroid have shown performance regressions (likely due to sugov_next_freq_shared being called more often) Never mind. I have already tested another (even simpler) patch. Sending soon as a new thread on LKML. Many thanks and best regards, Claudio