Received: by 10.192.165.148 with SMTP id m20csp4087798imm; Tue, 8 May 2018 02:43:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrO3zV1O+bNX5AbP38OSTU2CPpfFSt+C9o2mJoNi/wOpB9MlPeTXvfW2jJnv3LTZdIxQdXT X-Received: by 2002:a17:902:694b:: with SMTP id k11-v6mr2579730plt.334.1525772607846; Tue, 08 May 2018 02:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525772607; cv=none; d=google.com; s=arc-20160816; b=p7xsAz6miIr31qw8UTpN24+q8oTPl6b061j7kwoIdo2wF8gNq0zTchxhYx0GWULX/X ZQvetaVF+ZshH49mnsMxm3P540H9ZzkLWkzMODGc0bEGqDYTQZ4UInFf3bcnsVNGUb8C zKsIDCIqQCa8p3hQEnGNJJOH8jK0ea4cZONXsUKQEafTczhaKKc2o7ToSEwg8ouBQHHH AHALa9BvhMnp6/8prfUPIbzkhrwUPaxMWjhCEtqyZImPWcPQymkleEbKJYamgZnJgUfr 0QXXE6pCwREx5qBtt2ZjDfU8Xia8DNrd55V8aV/NYq2l4ZirEnp6hHZjD03/fWd4Ju4i U/QA== 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=cqg2il7nXk3BKhyszC3w6p0SE8VMUwnEUGcp2V6AWYA=; b=l4BksadSXDfTtZj5CmUcCHr7z69nmhXFC3C/oPyv/pBM/oo0Cs3kGQBj1rqbHDX056 Vt/0dYcaS/NvkwTY0lQIfE9fnKL7KJ3TSI7pZJMm6ekFEjszfdR9SLWQuQG/YmI2j6xe 3+GVwMB9UpadXynT+QomJCkMCh+yX7d7XjgbPegJoPfuvXjZVOLlz5uD/uOLzKNvwcXQ h9gqB6Sy+23Y/TqQdE9fduCgSbRVd1CZRba24Mu+9jtCTQ+acaoyD7Pt57sy3ZJWvuTQ ufIUDJlf/wvGGjkp0rL9sBzyFhrDeGvPj7ojQfVbhDXe5SPr2CjzHV5faX3+NFo7echu n5+g== 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 f59-v6si23637141plb.106.2018.05.08.02.43.13; Tue, 08 May 2018 02:43:27 -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 S932085AbeEHJmr (ORCPT + 99 others); Tue, 8 May 2018 05:42:47 -0400 Received: from foss.arm.com ([217.140.101.70]:54992 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754413AbeEHJmq (ORCPT ); Tue, 8 May 2018 05:42:46 -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 C8CFF80D; Tue, 8 May 2018 02:42:45 -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 DABE03F318; Tue, 8 May 2018 02:42:43 -0700 (PDT) Date: Tue, 8 May 2018 10:42:37 +0100 From: Quentin Perret To: Dietmar Eggemann Cc: Viresh Kumar , 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: <20180508094237.GA3752@e108498-lin.cambridge.arm.com> References: <20180508073340.13114-1-dietmar.eggemann@arm.com> <20180508082242.bre6sjfvefhz6xc3@vireshk-i7> <8cf21b1a-ca6e-fed7-43c5-94c66ff5986b@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cf21b1a-ca6e-fed7-43c5-94c66ff5986b@arm.com> 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 11:09:57 (+0200), Dietmar Eggemann wrote: > On 05/08/2018 10:22 AM, Viresh Kumar wrote: > > On 08-05-18, 08:33, Dietmar Eggemann wrote: > > > This reverts commit e2cabe48c20efb174ce0c01190f8b9c5f3ea1d13. > > > > > > Lifting the restriction that the sugov kthread is bound to the > > > policy->related_cpus for a system with a slow switching cpufreq driver, > > > which is able to perform DVFS from any cpu (e.g. cpufreq-dt), is not > > > only not beneficial it also harms Enery-Aware Scheduling (EAS) on > > > systems with asymmetric cpu capacities (e.g. Arm big.LITTLE). > > > > > > The sugov kthread which does the update for the little cpus could > > > potentially run on a big cpu. It could prevent that the big cluster goes > > > into deeper idle states although all the tasks are running on the little > > > cluster. > > > > I think the original patch did the right thing, but that doesn't suit > > everybody as you explained. > > > > I wouldn't really revert the patch but fix my platform's cpufreq > > driver to set dvfs_possible_from_any_cpu = false, so that other > > platforms can still benefit from the original commit. > > This would make sure that the kthreads are bound to the correct set of cpus > for platforms with those cpufreq drivers (cpufreq-dt (h960), scmi-cpufreq, > scpi-cpufreq) but it will also change the logic (e.g. > sugov_should_update_freq() -> cpufreq_can_do_remote_dvfs()). > > I'm still struggling to understand when a driver/platform should set > dvfs_possible_from_any_cpu to true and what the actual benefit would be. I assume it might be beneficial to have the kthread moving around freely in some cases, but since it is a SCHED_DEADLINE task now it can't really migrate anywhere anyway. So I'm not sure either if this commits still makes sense now. Or is there another use case for this ? Thanks, Quentin