Received: by 10.192.165.148 with SMTP id m20csp4108470imm; Tue, 8 May 2018 03:07:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqSBsyyVsFhsrH4jHTGFSU9LlNiLA8OKyGc4XJcho311n6OlODs7LaHZi7b19bXnlNRveaT X-Received: by 2002:a65:5645:: with SMTP id m5-v6mr1653129pgs.175.1525774052584; Tue, 08 May 2018 03:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525774052; cv=none; d=google.com; s=arc-20160816; b=lCoJoJjl23TxDW8welJgUKrPQlbQ4w9BPgZM+yC2t6dieLWBoZmMBWRwHi1nZhB3ix o7A4tBno1x+qA3CktHOpTJdqGVWPwmopIBW8rP8LEKe7KfMVnVnzUV5/uFycuGevPD7F aRHy/vdH8bTdiUB2ymXd0CPvc9cj+YTfOrM4pLIB9v1ZkEjwSKGLFTxM4KVkiqgl/P3Y xMO0ckNGpusprkJsdADVilqCPZiSsqWUyMjqhVB0Z4jcP1+I0jifx1AdyVnnftc0kr+/ mAT9txipV1GXsQc/1rpQ/adCWF9UHz186e9dIIqzmpJq2l317IBq2TgZqbRRluSJvT+w eEjg== 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=hI4fEVr0vbsKXRUqv7dWkZKuBPXJMxhWxvA5giTiVig=; b=ub9VsNicsT92S0QXvlvq5bVzyHtCZ0MVn1bKnatmXKGVtyjD3JWPk2hahaFs0YWgvs C9WgA18Iol/YC0V8mglnmi+AOraJ1uxrfe91gIqVxY6NhWRKV0DRmZFvcPvo2NiTMABg gSYFLd0gFklI0b9M6DlALoRG8hmi0xol4qBjnBVU+HnngxVAHMhV1CUBRxl7QrUYWVMs mP2+mZMf65JFAkdOk9Ra2qplU0S7f0kmgy8jADLj/jH86MorDulG8xx02VO5hfmoLd3W THHSG7zrq3saitK0ebY2grwxMElw1heX1GCTFkJ8N4CKuk/vSObVA7uS+d/2/P9ov+nN S0gg== 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 m3-v6si4168199pgd.58.2018.05.08.03.07.18; Tue, 08 May 2018 03:07:32 -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 S1754601AbeEHKCc (ORCPT + 99 others); Tue, 8 May 2018 06:02:32 -0400 Received: from foss.arm.com ([217.140.101.70]:55270 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754211AbeEHKCb (ORCPT ); Tue, 8 May 2018 06:02:31 -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 2DE2B80D; Tue, 8 May 2018 03:02:31 -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 3C6E13F318; Tue, 8 May 2018 03:02:29 -0700 (PDT) Date: Tue, 8 May 2018 11:02:27 +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: <20180508100227.GB3752@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508094526.ajyjrwytguhv4xpe@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 15:15:26 (+0530), Viresh Kumar wrote: > On 08-05-18, 11:09, Dietmar Eggemann wrote: > > 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()). > > Yeah, I misunderstood your patch a bit. So you are not disabling > remote updates but only limiting the CPUs where the kthread runs. > > That still looks to be a big little specific problem to me right now > and I am not sure why should we specially handle these kthreads ? > Isn't the same true for any other threads/tasks in the kernel which > may end up running on big CPUs ? And this problem still occurs with > the EAS patches applied ? As I thought we may end up keeping such > small tasks on little cores then. 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 ? > > > 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. > > Ideally it should be set by default for all ARM platforms at least > which have more than one cpufreq policy, 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 ? > as there is no hardware > limitation for changing frequency from other CPUs. If you look at the > commit logs of patches which added remote updates, you will see > interesting cases where this can be very useful. > > commit 674e75411fc2 ("sched: cpufreq: Allow remote cpufreq callbacks") > > -- > viresh Thanks, Quentin