Received: by 10.192.165.148 with SMTP id m20csp4154096imm; Tue, 8 May 2018 04:00:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpni3+7POPFrBqam2PvAR12fmTHMJIVGlv1Wkod+/UmfWXMfspneObwmswbW5r/tXJpuz8X X-Received: by 2002:a63:442:: with SMTP id 63-v6mr1330824pge.156.1525777249616; Tue, 08 May 2018 04:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525777249; cv=none; d=google.com; s=arc-20160816; b=pPF40JaRuEPEOsPjaWcBxza1fcKdpG5VV6BTtoVeb8AQwKLPGKHQrYT3+4zQ3MfcxD k/fXKN1ndGmwtnOQG5WCZ1e6g6pD4xOR5g0DG1AZj9w4uNRT+MPgO43+TDK3XEyQeS1e xdL+eyr7GRW9KFmtqP+S4YO706JGDmh0w8LtT7YRLbaXnWtOCfbZ0ESNLv0gXD64oMGG ZDoDjxwFcVabE+g5XswX/tMG3dMOpnXS3m3HM/gAvF96c8Ibnnt2meszoDo5Pe1wCl5+ yChrRVyAH0gs1FDYQ87aCgROMJnU/YDPrPoeEWMTNIh1WEg1V2RO9nFKE13ObUvyFMca /7iA== 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:arc-authentication-results; bh=aMNWN45BucLV08sYZdKCdfyHVS1eVniM5lYaDAw1cGA=; b=jK4jSq93SzvuH7X93umdYL9LBBYvxuHth0OBpun4vAhsg9M69pBJjc9wbF3P6Xb3JK cvoODU2TEbAEa1/6jNE1c5ShMpJL8Qcu/hxn+6QN5rK5+M67lPCd4rtpRypN6wSztd3/ TcMLSM1xAVHUJZnZuwB05omVy92qX1d1RDxY7CoxYUS+fgMF5A66GWVhnphdJQLpJTIn joGt3mwZQF0m52oej3IzfeS3ragiZvvEqUF1PavVA6sb+PXc2k7KSRarSNh7d7JX98IB UVuHbnx1Q+/gEK98Qa19OvGwkvh2zLC8CRXQwoSE6hrxgXWvJ0XpN6cCfzRI04kvRTnV 3EyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y67-v6si19161553pgb.35.2018.05.08.04.00.34; Tue, 08 May 2018 04:00:49 -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; 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 S1752381AbeEHLAI (ORCPT + 99 others); Tue, 8 May 2018 07:00:08 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56250 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750973AbeEHLAH (ORCPT ); Tue, 8 May 2018 07:00:07 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0443615AB; Tue, 8 May 2018 04:00:07 -0700 (PDT) Received: from e108498-lin.cambridge.arm.com (e108498-lin.cambridge.arm.com [10.1.210.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 16ECE3F592; Tue, 8 May 2018 04:00:04 -0700 (PDT) Date: Tue, 8 May 2018 12:00:03 +0100 From: Quentin Perret To: Viresh Kumar Cc: Dietmar Eggemann , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , linux-pm@vger.kernel.org, Pavan Kondeti , "Rafael J . Wysocki" , Juri Lelli , Joel Fernandes , Patrick Bellasi Subject: Re: [PATCH] Revert "cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily" Message-ID: <20180508110003.GC3752@e108498-lin.cambridge.arm.com> References: <20180508073340.13114-1-dietmar.eggemann@arm.com> <20180508082242.bre6sjfvefhz6xc3@vireshk-i7> <8cf21b1a-ca6e-fed7-43c5-94c66ff5986b@arm.com> <20180508094526.ajyjrwytguhv4xpe@vireshk-i7> <20180508100227.GB3752@e108498-lin.cambridge.arm.com> <20180508103427.w2rq3vz3f66y4cxh@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508103427.w2rq3vz3f66y4cxh@vireshk-i7> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 08 May 2018 at 16:04:27 (+0530), Viresh Kumar wrote: > On 08-05-18, 11:02, Quentin Perret wrote: > > The sugov kthreads are DL tasks so they're not impacted by EAS. But even > > if you take EAS out of the picture, those kthreads are assigned to a > > "random" CPU at boot time and stay there forever (because that's how DL > > works). Is this what we want ? > > Okay, I didn't knew that DL threads don't migrate at all. I don't > think that's what we want then specially for big LITTLE platforms. But > for the rest, I don't know. Take example of Qcom krait. Each CPU has a > separate policy, why shouldn't we allow other CPUs to run the kthread? Right, I see your point. Now, with the current implementation, why should we randomly force a CPU to manage the kthread of another ? IIUC deadline should assign the kthreads to CPUs depending on the state of the system when the task is created. So, from one boot to another, you could theoretically end up with varying configurations, and varying power/perf numbers. > > > Looking at the commit you mention below it seems that you did the > > testing on the old hikey which has only one cpufreq policy. Did you try > > on other platforms as well ? > > Yeah, the testing wasn't performance oriented but rather corner case > oriented and it made sense to allow other CPUs to go update the freq > for remote CPUs. And that's true for big LITTLE as well, the only > question here is which CPUs we want the thread to run on. > > -- > viresh