Received: by 10.192.165.148 with SMTP id m20csp4089925imm; Tue, 8 May 2018 02:46:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8HjHy52ZGs9MmVVVS3mcB9ZH7XhAULBXOxYi3TdKlLVKJg3FzbjUG329OKTmx937NMAyL X-Received: by 2002:a63:41c5:: with SMTP id o188-v6mr32205157pga.280.1525772769466; Tue, 08 May 2018 02:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525772769; cv=none; d=google.com; s=arc-20160816; b=cjcEXsyW4NvkUZEYDwioADt9GOR7OiwDk2PY25GNDa3hwxr4gDui85ASmi8+yDMvCv LuPVBCiCwJuHyjN96Smtjb4QfFQo+SR5o/R+5t2KJ3awYNwjmEDmhCvUlJTi9ULmEqpw 0HM4Rx3t5aRLgCmFu+JOTL0Ir1nadJtZ1vG//NO0Knmp9hjTGqHARePUSfzHmFrVVQzE dUHk+lw8TVLANu62cJ3npfwm9ZqndjHAs9ox9G2xWslUhskmiJdBj0AqjZXRj8qOZAS2 ihw+d5gkcNI2OZbtMrOjHb9RWfhn7vnDs4ZlVP6bywqBFp/vIxlG3n1H7xrMIV2FQu+H cO/A== 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:arc-authentication-results; bh=Rv4GZMzuFJQPsjapuQiN9sdcQcW2ds+Zpb4SjdSeMQc=; b=mb1JSk9baYsgWlXMnxM5HdNHer0tfGXw7vHioiXmXj2G3vYDHaqume8s2yXYVKryb9 PxInq3MeHs8z4hC+yxdnCCr5SS2JwUe2eCh7i8R//j3W9qMGHBYmbh+hr+pNehigHtxd cFejkzp3DOGsvrn48MPzLvsTM15lFJya9oG7qWOABcAYOyKed6SEcf6J8cCAVFocgjhd SuYn97hnU4QPE25fwA45HwffQZDo+dEIZwyZUJGELukGqslaC+F3MnJjUnpOtG1g56Fv mTvlPTQM7nNs5MbX3lAYfRSMBMFB6C6FkglbMBFht+2K0zydzIWC1l06Xym9lIVcmTj6 zSLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UL1KsIS6; 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 n128-v6si19041735pgn.15.2018.05.08.02.45.55; Tue, 08 May 2018 02:46:09 -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=UL1KsIS6; 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 S1754874AbeEHJpb (ORCPT + 99 others); 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 Received: by mail-pl0-f66.google.com with SMTP id q18-v6so1910515plr.6 for ; Tue, 08 May 2018 02:45:29 -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=Rv4GZMzuFJQPsjapuQiN9sdcQcW2ds+Zpb4SjdSeMQc=; b=UL1KsIS61MQppqXSBdhwNtPo+msV5mfQ0iNS+dpGrukMgmn6nWFnSNN4ZWVGPe56Pu ekAbukNhmS1Y4KEJuUMHIAxBayC1mVeM2h/pNJ3PNJ9UXSYrZAZ/u1gf7zfJk2iIk+iH MIwnLxGXq8RWQV9ZPhbVDD9rnNiSOyGQI/EkY= 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=Rv4GZMzuFJQPsjapuQiN9sdcQcW2ds+Zpb4SjdSeMQc=; b=A6kWLtHo/Hkz9o7WpxxqOLe9gj5SIcWfJt95A3QeXfun01qdxcE9FsKRNxJfg0ibFy v2V4EjRr2xCXZHxW3QYpoCLDp3oZaZI3EmbSw/4s7XLQMPXLNz1xVrjmV5rNFply0Qqf PiOq9l5UyWh3ip8eY057lxeCj2c5vvSKKAyK/p2lH0+sRLp/dec2vG/dHnbgKbDp6anF VuSt00WtdCn7H9L6PAcf7mYipW5rYnCUiqtoE7k0QZ9e4/IPQeen7h5WpLaGe73O4/Kw HdgVAYuSmZHUzdHAR6GCNsLqys3x9OJEveQQkg21ipXrCP3MmgOBbJe5Eg/b3RXbhlyy hnnQ== X-Gm-Message-State: ALQs6tCcV2/ttPZC8TPc2T7wiNlTJs9KGeq8oZkgN/T76Tq4H8CiSU2J 2k34mm6jw3eDWeTdpGKRZrlU7A== X-Received: by 2002:a17:902:3f83:: with SMTP id a3-v6mr40931690pld.279.1525772729139; Tue, 08 May 2018 02:45:29 -0700 (PDT) Received: from localhost ([122.167.163.112]) by smtp.gmail.com with ESMTPSA id y7-v6sm39204110pgr.26.2018.05.08.02.45.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 02:45:28 -0700 (PDT) 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 Precedence: bulk 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