Received: by 10.192.165.148 with SMTP id m20csp5169697imm; Wed, 9 May 2018 00:02:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoF6LYxq1Ilv3hidCuPJoao2rK7t43siNjUYUuWUoPjEQzvRKAbW3LIKoZHjKctvgbMTyjL X-Received: by 2002:a63:a60a:: with SMTP id t10-v6mr12558223pge.351.1525849329337; Wed, 09 May 2018 00:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525849329; cv=none; d=google.com; s=arc-20160816; b=WuKX2YM83qe+2jJHbUzFp1LeHbjRl0si4EoPm4pT4GiviW4+0dQdLVp0tT6SxdFTIC mpXChib1tN/KzcZw6srpsr5NpyAFl/L352JrablIyBxCuPn8LPrM5F7GRm5G5GTMJVMG U4GckPKfjF0PeFvUrUXWf0Z3M2+pKB2S/bkaY4zvXEzCjjKWE0g9AYWJFDDPz4MK0eij JeP62TLbjIJkSOjWHovj/D8LMNIUljv+ZvdAMwPnsoI30bJ0DjUuOGGOjEhqI/GVrO26 pWJ97/kvrJkLFQrAkFz5V5vZ80wxCrPqznVNvj0BpidYaXVi5KYUNXlVncW/mXdfJrvL GoNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=WnQY+eCMucXIPESDD0SiRXSQNQa7WLL8h3B3R3tJU5E=; b=ymIsDNkQSUo8cUWKleg7qk7tlYk7/qgJXUo2FQ36uwwevML2vhPK/5R/NjjdBUmH2n rQc0lOl51yFkIBjQti4BPBK27G+7s5+qktRljabk1W1ChkLqGCUfe+p+oIvZMi6unSEk YxQeroN30fY/Ud3rTUbNrWUWvNgQiOd3ptcYyW30ztEqm1HyEIx2vysvmRdN8Yz7JwRp eJBIbw4Gtr4hsxfA9PDwrw1lljyDvokI5y78oLAcNxBgtgXLiNtcSj+Xnup9v/ashTCO IunCxiT8fgoK+oYx23cTXu2CNFjvIkYl3/QoxLIoOEgCygfUjyGDEcbQaN+vnQJj8py4 6Kvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes-org.20150623.gappssmtp.com header.s=20150623 header.b=lMACZPba; 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 p1si17768644pfe.158.2018.05.09.00.01.54; Wed, 09 May 2018 00:02:09 -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; dkim=pass header.i=@joelfernandes-org.20150623.gappssmtp.com header.s=20150623 header.b=lMACZPba; 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 S1756159AbeEIHBQ (ORCPT + 99 others); Wed, 9 May 2018 03:01:16 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:34227 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753289AbeEIHBO (ORCPT ); Wed, 9 May 2018 03:01:14 -0400 Received: by mail-pl0-f67.google.com with SMTP id ay10-v6so3736976plb.1 for ; Wed, 09 May 2018 00:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WnQY+eCMucXIPESDD0SiRXSQNQa7WLL8h3B3R3tJU5E=; b=lMACZPbalAgyCwe1jwSfsZzBJ7OHL6euyTp12xJhnPbLf/X1U8gp1ItomMkfYxmN+h 5T0kiX2Quur2VUwPs+8nDL/awA+Oj/ZK8kWY0hLXkByeXt6yRb922i+fEwEoNNOAPcbD mRURoJfnR2Vh8WKouRzP+b3KFSEG3TBsgCHQ3PvXSyxw44g6nm0DPNwI16BtWt1AFe4X R92ebX9bOKKD259xlVgEQg/8lKOWsLlLgD9H2jGQFk+urRfkg5P9oJJJ2UMRVvYB7b+M XWbnU+RpDD6nP90wa9ItnxnGl/S/p3QnFJLBbjUDrECoTLVWTzGSTxBznJoa1P3TIAZo ZdJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WnQY+eCMucXIPESDD0SiRXSQNQa7WLL8h3B3R3tJU5E=; b=lshPckVloDDNC0ByvsnyvgLWBHnVsAAq4Uk7xM7ST5RbuQBEOkO5ucGStvAMJo0WXN erkWRRaXCrgqDkYW9mTcks4f+TXkcbtdZu1UVIkQvVbiDxAPey8fR5WNqNNaHM2zYfnL SEjCRLH5d7/0bALeF8Mjz0V8UmL3kFX71ROU+A/5nzVoIUcJF/kvitGHo/eXbVwaMr05 rt3vb8myM3lq1T8972iDstaKfQWYeLPnZHS2GJZeDMlwI4tw0cOfPGLVi5RfIceWYI6F O9WjdbbGen16K5Mg9zY1DVmmWymJbZ+7QiK07ImJScZLhan/HL+91kmGBzgLfAqYP1uC 35Yg== X-Gm-Message-State: ALQs6tDm3DMcpsYXBQrqzXQOCmNaZ/c8+52PmgYNU/KyuiLhJHntcxHx ydtKSOPfY5JZc5q5d1GLWj03JA== X-Received: by 2002:a17:902:2826:: with SMTP id e35-v6mr18935249plb.348.1525849274502; Wed, 09 May 2018 00:01:14 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id y7sm50814099pfy.55.2018.05.09.00.01.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 May 2018 00:01:14 -0700 (PDT) Date: Wed, 9 May 2018 00:01:13 -0700 From: Joel Fernandes To: Viresh Kumar Cc: Juri Lelli , Claudio Scordino , linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Peter Zijlstra , Ingo Molnar , Patrick Bellasi , Luca Abeni , Joel Fernandes , linux-pm@vger.kernel.org Subject: Re: [RFC PATCH] sched/cpufreq/schedutil: handling urgent frequency requests Message-ID: <20180509070113.GB52784@joelaf.mtv.corp.google.com> References: <1525704215-8683-1-git-send-email-claudio@evidence.eu.com> <20180508065435.bcht6dyb3rpp6gk5@vireshk-i7> <20180509045425.GA158882@joelaf.mtv.corp.google.com> <20180509064530.GA1681@localhost.localdomain> <20180509065449.c5zotxqmuyatjgfd@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509065449.c5zotxqmuyatjgfd@vireshk-i7> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 12:24:49PM +0530, Viresh Kumar wrote: > On 09-05-18, 08:45, Juri Lelli wrote: > > On 08/05/18 21:54, Joel Fernandes wrote: > > Isn't this potentially introducing unneeded irq pressure (and doing the > > whole wakeup the kthread thing), while the already active kthread could > > simply handle multiple back-to-back requests before going to sleep? > > And then we may need more instances of the work item and need to store > a different value of next_freq with each work item, as we can't use > the common one anymore as there would be races around accessing it ? Exactly. I think it also doesn't make sense to over write an already committed request either so better to store them separate (?). After the "commit", that previous request is done.. - Joel