Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8439257ybi; Tue, 23 Jul 2019 08:33:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0yHCakNCfxf3gDMJHGv3oycKMsRo9qUpDm53ygqkqUYYOybed2MkvDea1f4sE4rkjxpgG X-Received: by 2002:a17:902:8f81:: with SMTP id z1mr79445830plo.290.1563896011557; Tue, 23 Jul 2019 08:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563896011; cv=none; d=google.com; s=arc-20160816; b=zyILXqr2eRM0IZH1lU0Ujv60S9QFSgbRTKwoho5A/HD7ipFVMKgz6nuQnLTI9iXDe3 x75SRuHuRw0h9kUjjbJ+Gn4WjYgJgYnYP4BjBwRfO4hxGHvqdBTtyJ0reHOsOxAstfIM FPv1NGg9puJuzzQkLpnqoss6ObX8DYautRuxuDJ6hLXujF8B+uvKMFeMsCQarv4FXd3h yr/BhnPh1xzSFJR7dYLiTYdgzvoAWCGVQwqvwunlbXtasnmobeXH7ZOfZ78QLO9uJ4W6 BFLOKhs+2ZVOmcaISM58efnw/a6/tovW+hNr418P4BBusdjgZyD5R2nbftKdtjvs7aTm hW/Q== 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; bh=fkSxgqWnfvZd2cjTyVDsfDKJ19ZkRmGA1pV7ZfRj0rw=; b=Y7CFgSdNgfo+VFjQG9DuLil8CTJbt1g+fXxYaa/LawIAeVyRJDNrMFi4VWQrmWGrjq PogPJvWhdQPLBjul4/uNsfTgIb7DmT3a1HHBK7jEoyaM0IF6FHMG7t3AhITSiZLFTyc/ diT6CrABWNrpYQGLuOZXqJQ9VCP2ExR225YZ3PM902pVhJ8rYA7f4YLlf8QdbLu/COwH WQ5VLHtWEKSBwOlKnMSaAUbng12Yy/lIF11hrfkqXnPIfeSvkPmM0+RdBf8Vw3OF9Xah tq0nmhDrg/kliDFbrzFHZOioNUkY2Rd0lK4rbcatxG85ESzeu2ul8KPv/7M5vAzrxca5 gVtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LR3qimyh; 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=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 f4si13683003plb.38.2019.07.23.08.33.15; Tue, 23 Jul 2019 08:33:31 -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=@linaro.org header.s=google header.b=LR3qimyh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388814AbfGWJPz (ORCPT + 99 others); Tue, 23 Jul 2019 05:15:55 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43384 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729835AbfGWJPy (ORCPT ); Tue, 23 Jul 2019 05:15:54 -0400 Received: by mail-pg1-f195.google.com with SMTP id f25so19102997pgv.10 for ; Tue, 23 Jul 2019 02:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fkSxgqWnfvZd2cjTyVDsfDKJ19ZkRmGA1pV7ZfRj0rw=; b=LR3qimyh3XF2uYyuQtngaGPLFqSqqg9O4NhCfdSjR37DxYIMgAAdwtAG2Riqs+o9Hz pfESUB7ttcZ4wZKT6D+9gw/aDDFbZ0XiRsgR59njw1yIGJifQIaU6lcenoVqDtGR4sW9 ankV0TAOpdNKQpEFTjaHYaiHAm0t6bWSXW1cjtNjWsNqYtVeCEn1qlSPGe7I6p2M7Pac DegOaHz4KWMQPowIp8fj/GULDemiIUwXZ0xGql1XUhAMsQKuLJ77pMv+wwxTdreey74y DU5rcREeQ3OPHbP6AWcm3dzh87xDh4Iw3KQvcfC+4Bj3owNwRf8p0JKaBMg2tky/olLC zJHA== 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=fkSxgqWnfvZd2cjTyVDsfDKJ19ZkRmGA1pV7ZfRj0rw=; b=T4JhmTQeXw+BjEnfVtEdvC3jmFSIetprNWcrajwcV7DPAjnPFU3n+liXCEHnWDENSj Dt31vwFR+xyG4/0WVCTgHvg5h6+c6100SW1jrSZ2BjoOS/8IcXvZpsHdw2wgjciocz3d /a1yFzCHp+IHj7VmZCVHlWCnC5LA+85YvepIiIUqQAFUt1PfN04KlYGBsCIfKGQBQ3Pp mU3tPxhuBTl9IKfShPh8YO/lVtM7d0jv4Q7jLZSjNW857Wjxttxww5bhts1Yotk4jb4N TtvqQ7HfQN+cyMsUYoJleDpHjJJHt/yPoqgby3lft70Ynr40DUqikgWVP2ofPaUChnf6 tFjw== X-Gm-Message-State: APjAAAU5RjmKas8lRcYP31yu79mI9toq7F7JUbnlqsNLOqzBFBlhuqze cL1bpXBx9jcXJ2qebEpdVxh3yw== X-Received: by 2002:a62:5c47:: with SMTP id q68mr4857251pfb.205.1563873354211; Tue, 23 Jul 2019 02:15:54 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id v18sm35637116pgl.87.2019.07.23.02.15.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jul 2019 02:15:53 -0700 (PDT) Date: Tue, 23 Jul 2019 14:45:51 +0530 From: Viresh Kumar To: Doug Smythies Cc: 'Rafael Wysocki' , 'Ingo Molnar' , 'Peter Zijlstra' , linux-pm@vger.kernel.org, 'Vincent Guittot' , joel@joelfernandes.org, "'v4 . 18+'" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: schedutil: Don't skip freq update when limits change Message-ID: <20190723091551.nchopfpqlmdmzvge@vireshk-i7> References: <1563431200-3042-1-git-send-email-dsmythies@telus.net> <8091ef83f264feb2feaa827fbeefe08348bcd05d.1563778071.git.viresh.kumar@linaro.org> <001201d54125$a6a82350$f3f869f0$@net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001201d54125$a6a82350$f3f869f0$@net> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23-07-19, 00:10, Doug Smythies wrote: > On 2019.07.21 23:52 Viresh Kumar wrote: > > > To avoid reducing the frequency of a CPU prematurely, we skip reducing > > the frequency if the CPU had been busy recently. > > > > This should not be done when the limits of the policy are changed, for > > example due to thermal throttling. We should always get the frequency > > within limits as soon as possible. > > > > Fixes: ecd288429126 ("cpufreq: schedutil: Don't set next_freq to UINT_MAX") > > Cc: v4.18+ # v4.18+ > > Reported-by: Doug Smythies > > Signed-off-by: Viresh Kumar > > --- > > @Doug: Please try this patch, it must fix the issue you reported. > > It fixes the driver = acpi-cpufreq ; governor = schedutil test case > It does not fix the driver = intel_cpufreq ; governor = schedutil test case > > I have checked my results twice, but will check again in the day or two. The patch you tried to revert wasn't doing any driver specific stuff but only schedutil. If that revert fixes your issue with both the drivers, then this patch should do it as well. I am clueless now on what can go wrong with intel_cpufreq driver with schedutil now. Though there is one difference between intel_cpufreq and acpi_cpufreq, intel_cpufreq has fast_switch_possible=true and so it uses slightly different path in schedutil. I tried to look from that perspective as well but couldn't find anything wrong. If you still find intel_cpufreq to be broken, even with this patch, please set fast_switch_possible=false instead of true in __intel_pstate_cpu_init() and try tests again. That shall make it very much similar to acpi-cpufreq driver. -- viresh