Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp265500ybt; Thu, 25 Jun 2020 21:52:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxA1ZvioXah5327VOuOF9E82Cny5ixJaFnx9YsZzeyzUU2Zg3V212SVt4zRe4W0sIPz0ra X-Received: by 2002:a17:907:20ee:: with SMTP id rh14mr987903ejb.395.1593147166357; Thu, 25 Jun 2020 21:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593147166; cv=none; d=google.com; s=arc-20160816; b=LLd4dLi3LhNaOE5hYUoq9WzKk1JDsdXvl8+7DgwOg01U2BjSdgfCidmJng12heFhak P3k5AKfaVxLWA1BqRMYiXYSA2FHiX/rgbvrFUNp4PQZvKuAcxa+y/w6/pPmsma9sZYcX gM4fhLf5NH79sOE8V0J4/eKiUSxyAmkjl0xfgiN6Hjl5sVehsiXaYIJ9xoOUqzj3M8GI HlEt/0GveKGvqenvS1YnHjDtM0qExujCqOvG62jTCpzUxkNuzt4oVoJOwAvToEnkziaW 45xPi44KqAmK340E9UbTSpcIzlV4GkWxkgJxqajBFNFiESOfJM7C+CdvfI5Rtqh8emgV fo3Q== 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 :in-reply-to:references:mime-version:dkim-signature; bh=5dyXISEFPO4zN8NJzbUQLcaTnJQH628lZUaCtOB5NIs=; b=p+onAWBAmr+qCuf8MfZIoknl9uFLTzf15j7rZAnX4s+ag9FfAKdS8j6FaZ/7I+Bub6 hniyQGhA20tO0PMFcYy8v88nb3mzZI7PRMfx+vv3b0ptTG0GbThmNasrHObX1z6+Lqrc O4YaFIeTl+i90XwJsqXOVq81iOpFz1TIPfsZqU1iTe9VWkljzNSfeVK9pxUy5UTQJgJO a8QHbQdrM3Z77ki7x8Y9ZxCk6PBsyegSbm/NKuRKsBiV0IWbneod7uQHELlXERDpyIO8 L41E1jHdgE8X3SRhO5EZz7UL0AY2Fsw8XmapkpTsB+tjXYavtJDbytaLwiwvm1TB+KMu K3wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Xl8bCjfJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si15810529eds.465.2020.06.25.21.52.23; Thu, 25 Jun 2020 21:52:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Xl8bCjfJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726566AbgFZEPW (ORCPT + 99 others); Fri, 26 Jun 2020 00:15:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726431AbgFZEPW (ORCPT ); Fri, 26 Jun 2020 00:15:22 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0560FC08C5DB for ; Thu, 25 Jun 2020 21:15:21 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id l12so7999558ejn.10 for ; Thu, 25 Jun 2020 21:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5dyXISEFPO4zN8NJzbUQLcaTnJQH628lZUaCtOB5NIs=; b=Xl8bCjfJJjilv9lKWhwjcP/+CuLRgyomgZeuj1L9+0F71WtVlIZsKDDYLnnfAIarMr q3sw2+60tHQzQSf6tqxEsyV/Pd/bOkOw1SRi2uXmDjiYwz4o4Nf7CqCbjd/WD+r2KRSH u0O6wDAKMG/bDNOxopybeMC7eSoFxhfAFLV9Vv7KadH/iYG9jVWjEd/CX/9CIGGMbMqq y52eXj8jaAZ18IH4ffNzHyelT3PwwJwKqLRWMtuw2OJ2c9SE6CoFAUDJDkL13xz8C2wD I5RKKBwaeedhmeg43keuqZQDlnA6T+aoLzjWeVwlTQ9tcPw7qRfltesEVVvB6LhoBYz6 TA0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5dyXISEFPO4zN8NJzbUQLcaTnJQH628lZUaCtOB5NIs=; b=PUhvfXa0+ByVVacYhlU6+B01UiGJqEX9RVq0UZgVCTzZ6WBnasrPLJ+Hgb+M0ihUak kcr7U++RB1H26Iw6dRavoASpRbU2a1RUFTCOSPAuqmphcmHHzk3sywhZv/jxuHRFb1Wm FLQuWqtaOKg4+HHvRyPI77ZdZxWv8Dnll1AxqxaQm/4llIsZXCScwV8Ca7oMiiOxp87L D8YhVXTE6llye4HzuCzEiiNPyTTAfK4iV2ItU42hNHYTy1MB40ZvoS00KMRQp4kTwDIR e1sBoUjjXBI6mYR+POeOoPMZM4MsiUuP2H2C/TFJFlqF509UkAH+Bd+jGb2pIbmMbYsS Zb7w== X-Gm-Message-State: AOAM5318ni4VkRUgI0Qt63GwLAUymgyhYsLARtAJ7g6C1lTMfq2Vahy5 by6sb4TQs8oVdpUtuXfv8Dz9B4xpmoVhsj2EaLKGAA== X-Received: by 2002:a17:906:d204:: with SMTP id w4mr898177ejz.117.1593144920242; Thu, 25 Jun 2020 21:15:20 -0700 (PDT) MIME-Version: 1.0 References: <20200625064614.101183-1-wvw@google.com> <20200625102305.gu3xo4ovcqyd35vd@vireshk-i7> <20200626021428.tnecyy3wt42slvik@vireshk-i7> <20200626023219.wvhzomwzlw24bzrv@vireshk-i7> In-Reply-To: <20200626023219.wvhzomwzlw24bzrv@vireshk-i7> From: Wei Wang Date: Thu, 25 Jun 2020 21:15:09 -0700 Message-ID: Subject: Re: [PATCH] cpufreq: schedutil: force frequency update when limits change To: Viresh Kumar Cc: Wei Wang , dsmythies@telus.net, "Rafael J. Wysocki" , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , "Joel Fernandes (Google)" , Linux PM list , LKML 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 Thu, Jun 25, 2020 at 7:32 PM Viresh Kumar wrote: > > On 26-06-20, 07:44, Viresh Kumar wrote: > > On 25-06-20, 13:47, Wei Wang wrote: > > > On Thu, Jun 25, 2020 at 3:23 AM Viresh Kumar wrote: > > > > I am sorry but I am not fully sure of what the problem is. Can you > > > > describe that by giving an example with some random frequency, and > > > > tell the expected and actual behavior ? > > > > > > > The problem is sugov thought next_freq already updated (but actually > > > skipped by the rate limit thing) and all following updates will be > > > skipped. > > The rate-limiting thing is specific to android and not present in > mainline. Even in android I see next_freq getting updated only after > rate-limiting is verified. > > I think you maybe trying to fix an android only problem in mainline, > which may not be required at all. And I am not sure if Android has a > problem as well :) > Yes, that is Android specific, I added you to the Gerrit already. Thanks! -Wei > > I am sorry, can you please give a detailed example with existing > > frequency and limits, then the limits changed to new values, then what > > exactly happens ? > > > > > Actually this is specifically for Android common kernel 4.19's issue > > > which has sugov_up_down_rate_limit in sugov_update_next_freq, let's > > > continue discussion there. > > > > If it is a mainline problem, we will surely get it fixed here. Just > > that I am not able to understand the problem yet. Sorry about that. > > -- > viresh