From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754879AbeEHJpb (ORCPT ); Tue, 8 May 2018 05:45:31 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39576 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754706AbeEHJp3 (ORCPT ); Tue, 8 May 2018 05:45:29 -0400 X-Google-Smtp-Source: AB8JxZqp/dkgLokajHOZA5m+vTJzucO3hkLbA/MSzd+DE6sWGWrXxm99WUEAyPei5PQuWnkMIuowAQ== Date: Tue, 8 May 2018 15:15:26 +0530 From: Viresh Kumar To: Dietmar Eggemann Cc: 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 , Quentin Perret Subject: Re: [PATCH] Revert "cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily" Message-ID: <20180508094526.ajyjrwytguhv4xpe@vireshk-i7> 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: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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, 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