Received: by 10.192.165.148 with SMTP id m20csp5232047imm; Wed, 9 May 2018 01:26:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp8cLfzyo3J6lm2CjIuNMt0w/k23ByfdbseBcbeinzY5BPVoh6TaHq45bX2SppwgWqRYQzi X-Received: by 2002:a63:6445:: with SMTP id y66-v6mr35062265pgb.206.1525854382647; Wed, 09 May 2018 01:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525854382; cv=none; d=google.com; s=arc-20160816; b=Q8pjM/AIOAzk1IvX7EKNILAx2FJydONZMbnYwO5yk40S9LNaEg+2xcOIdHdTVssPKr inUHBEgFUQYo7lgjLLC/vrKYO7mtGxvYxhQp/MTD9qjMjARwOMzv+XoWaMzo78KJ9Dna Vmq5Dk5rIze1+5OI1FXAkNC/T6tnmR6nM5jhZMUgiz1HvE688gipI1iGHmGQF2u1fP81 KDGxUp4rDy1Q5LtH4WsAS9N5thckwmGy0JafDT/EEIaLj9WoveeC1zi6XcLOfYGI3EXA PgKt8vthp0VrwFXBszOj56BniRWg3n0EqzfGBfzlJ542fX/K9fkhWQgbQ+7A4ltvVphW ZF1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=9HzLnLIg2hrPxdYKJvygMIKYI/vRWxMnntRN6oU/yX8=; b=0ig9SwU/Ck/94Ohk2JvlIH4cEkAc81G2g/I0KSLMCMAy9xM3X4wO4nXXRW9l+E70p3 nCTCOODPKHKzranBWOPFCi8+jmmeNFjE5qqXec3EedwndJJqbcsnwSoFOtQwGLqQ4uwc iBRxXJQ5/kgIY6eeEQRAugEiFaq2StqFhMKgai1xjFbi83BT7fv6Obj917hywad7Dalz qU4jT7W33PnH097wy8IzPy0rd5WTijfjUJqpUhMaVBHks3h3Nd6CPOrFzz+4ZKEbBxs+ Fs/jF8i1PBf+iNPYRM6WCIpg9z+53LfPbYtEJ5qhXATIgIRdPuzvKR7pSFpU4IvlzVNP QOWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=biojA3y0; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38-v6si26238113pln.390.2018.05.09.01.26.08; Wed, 09 May 2018 01:26:22 -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=fail header.i=@gmail.com header.s=20161025 header.b=biojA3y0; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934114AbeEIIZX (ORCPT + 99 others); Wed, 9 May 2018 04:25:23 -0400 Received: from mail-ot0-f169.google.com ([74.125.82.169]:44740 "EHLO mail-ot0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933828AbeEIIZU (ORCPT ); Wed, 9 May 2018 04:25:20 -0400 Received: by mail-ot0-f169.google.com with SMTP id g7-v6so39213145otj.11; Wed, 09 May 2018 01:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=9HzLnLIg2hrPxdYKJvygMIKYI/vRWxMnntRN6oU/yX8=; b=biojA3y0/xHQjwJEwXHoROfpO2zpjZdY/xYez0HGwb9+Iiqmhbz9dKuwv8eVr4WbjC bPbm5He1nhGWPUjAHy0f505IWTnIJPH8PZDnNGgTPYwa838L7Kb2cav+ut5WASudKwPz dWvNw4CO3WeeBVvn414oeH9GsEzmliQDKJ2SgFedbiOQD7frdwXc/Js+w3TEW6h1O5x+ 2eCmn1zp3tBa94I8S8yvOKIE44pdZ3tygGrOqFEMZ+SQ3vo4McsEhXa/i6zYRYgeLvjE iNAJjE2BpgOACSJxTwfCclqOUeNgBfqhZTqZ0vJVilMsGkl2/E7SABkIkePc05Gszrhe cyZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=9HzLnLIg2hrPxdYKJvygMIKYI/vRWxMnntRN6oU/yX8=; b=VQ8EFS5tqeWNzWe5sLOk2aZhnxepfvwt9HAyicqe9vV7WRJP+iNYCFiZvqycfzEztn Z/ag87H7+pzvx6ZZgmllSixBue0cae5vt2LNRjBYhaCKLGQbl92dzqvxz8Ztprpyvtpx NozmpqoLhkyNmrWphDBGSqmENpQOD69WAZurO5BdOSxsiuu+PTZ6vrpqD3ysYG54gJvy yjpOtd92gwLRyoPt4JH0r+k9tZGg9g1EwmVizH8+0dkkaA4aCNZxsgpt4KN6iwDjCgpO Y3JmSbGhUZcWNfbPD0FPP7H/pRGxD/iVnrjRAgVEkH5jjFnHBcQD0YVvcCYI0jWq2YD/ iWzQ== X-Gm-Message-State: ALQs6tDXFkM8l9zDDjQhmcx8DTc0B3dSymDrusAsl1Bh2icme0PYAQyh sPd2pYtZlLu0yKDsTU5WWbZnfkMt5GqABgbG23A= X-Received: by 2002:a9d:1025:: with SMTP id h34-v6mr29667887ote.364.1525854319712; Wed, 09 May 2018 01:25:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1468:0:0:0:0:0 with HTTP; Wed, 9 May 2018 01:25:19 -0700 (PDT) In-Reply-To: <20180509082350.GB1681@localhost.localdomain> 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> <20180509070113.GB52784@joelaf.mtv.corp.google.com> <20180509082350.GB1681@localhost.localdomain> From: "Rafael J. Wysocki" Date: Wed, 9 May 2018 10:25:19 +0200 X-Google-Sender-Auth: V_M-M2wU6cnn7boljd2qydW8_n8 Message-ID: Subject: Re: [RFC PATCH] sched/cpufreq/schedutil: handling urgent frequency requests To: Juri Lelli Cc: "Rafael J. Wysocki" , Joel Fernandes , Viresh Kumar , Claudio Scordino , Linux Kernel Mailing List , "Rafael J . Wysocki" , Peter Zijlstra , Ingo Molnar , Patrick Bellasi , Luca Abeni , Joel Fernandes , Linux PM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 9, 2018 at 10:23 AM, Juri Lelli wrote: > On 09/05/18 10:05, Rafael J. Wysocki wrote: >> On Wed, May 9, 2018 at 9:01 AM, Joel Fernandes wrote: >> > 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.. >> >> Why is it? >> >> In the non-fast-switch case the "commit" only means queuing up an >> irq_work. Which BTW is one of the reasons for having work_in_progress >> even if your kthread can handle multiple work items in one go. >> >> You may try to clear work_in_progress in sugov_irq_work() instead of >> in sugov_work(), though. >> >> BTW, I'm not sure if the comment in sugov_irq_work() still applies. Juri? > > It doesn't anymore. sugov kthreads are now being "ignored". Should have > remove it with the DL set of changes, sorry about that. No worries, you can still do that. ;-)