Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3648296imm; Thu, 17 May 2018 12:10:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpBins9ZVKnWVwEyv/ODOfvboy/KEXsmhK+fb8hCq9V04RW0YQM4Z9Wc26YLhG2vdKZOqLF X-Received: by 2002:a62:f80c:: with SMTP id d12-v6mr6315149pfh.159.1526584255886; Thu, 17 May 2018 12:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526584255; cv=none; d=google.com; s=arc-20160816; b=cDPvdhU+gVUQ+nuLMJteTmcjv6WJaZPP4Q+lLrLH8vQ5LAhHTBp9c0mluE0NBZCXzz 9pmJAUdghdmWeD+a0MjKnyKfrjqO8EmSbNDvdZBb4s0tW8Exlz7AiS4FEnlBJFyudJIS eeiiWbC9/CPwHNAvHtgpmVCAAHQzXO66x36d3UQbOUZzjA+JdtMeW6QQRoDRqs+9CV1/ 5T495hMTyaXLh4r9SqXTz9J1LvqkqKy2W2r5yWwSLrMj4A7nc2ivyfPRqj693auwFemf Tv7aanR1cYkkiTBUXhk6UqpbtuEOjTeevZG2r6VHEQhcVZ6lp2eUHZDmEVpJAKWd34Tm EuHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=iQgp+ffxevBzFp/QnKAI5+wrP+lgn8pUzQdJQkjaTIw=; b=DA6riWgnINCZYrv2mGXSGbm7xOp+CjRozdI/zf7vFu/zFthmsgOLmO6KzUdja2cxOR cY4g88Y4vmpMOYHQ2990TbTYc++n/vCmbHLHuO8v5V6M9TCXkBK7U7C5jJqdK2dPnBVg pTJGb/qOPmfO4gPFAOI4Z2aMnsMSXB8tD96lHJ3AytqAC9c82oiRfp4dcKlNywi8FXot d69Fi1tG7CVEOmyR24JoYk0GB1S4PiWFuWdZ7r2d4T7i5FxEya8MahBDX35EhK2C42fE yy/JOIbTa3TFrOGFhSQuPyyPNoWs+9AxkdW6QEb87fqggckEfFxiBwJTD3nIclXvuF6O 9XrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oEt7BEXG; dkim=pass header.i=@codeaurora.org header.s=default header.b=YcZJXmu6; 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-v6si5456930pld.296.2018.05.17.12.10.38; Thu, 17 May 2018 12:10:55 -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=@codeaurora.org header.s=default header.b=oEt7BEXG; dkim=pass header.i=@codeaurora.org header.s=default header.b=YcZJXmu6; 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 S1752112AbeEQTK1 (ORCPT + 99 others); Thu, 17 May 2018 15:10:27 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58150 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbeEQTKZ (ORCPT ); Thu, 17 May 2018 15:10:25 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8268760F6D; Thu, 17 May 2018 19:10:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526584224; bh=mN/9LtaLvkZBs6prLG4TJ9yYXk91Z0SgHKYdVybpsz4=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=oEt7BEXGPazVUzTkMjShjOBV0vfWdipOxz3CS+w5BpvEagi2lfqFcbI7FnUIkFIAk iU4rou5ZBvtkJPbUyq94IMGjjpOKD/fDHHK5qaTiVg709IlmCbXygZKu+E0jLpTZ7Z t+QvD1nTXmEqcSMS80RS5NsG4kseQ/fz0V/+We6U= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.134.64.210] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skannan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0FFCC601D7; Thu, 17 May 2018 19:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526584223; bh=mN/9LtaLvkZBs6prLG4TJ9yYXk91Z0SgHKYdVybpsz4=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=YcZJXmu6lyJ2OjfcwUgAkSfqEd1dYT+iX+9pniCcnGdQoyoY+pUHFEB284zBGagbw 55m12q2HlRsni4BZMsdB17l6cMM31WRVaJXwBCYjcmly5Vq3Zdvk6L6hmJEn2guxsM e3eEKxsYXJbO0XckK2nXmV+kQz1EQUxTvJ9WOTLw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0FFCC601D7 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=skannan@codeaurora.org Message-ID: <5AFDD39E.6040203@codeaurora.org> Date: Thu, 17 May 2018 12:10:22 -0700 From: Saravana Kannan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Joel Fernandes CC: Quentin Perret , Dietmar Eggemann , 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" References: <20180508073340.13114-1-dietmar.eggemann@arm.com> <20180508082242.bre6sjfvefhz6xc3@vireshk-i7> <8cf21b1a-ca6e-fed7-43c5-94c66ff5986b@arm.com> <20180508094237.GA3752@e108498-lin.cambridge.arm.com> <20180513051933.GA64158@joelaf.mtv.corp.google.com> In-Reply-To: <20180513051933.GA64158@joelaf.mtv.corp.google.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/12/2018 10:19 PM, Joel Fernandes wrote: > On Tue, May 08, 2018 at 10:42:37AM +0100, Quentin Perret wrote: >> 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 ? > > The usecase I guess is, as Dietmar was saying, that it makes sense for > kthread to update its own cluster and not disturb other clusters or random > CPUs. I agree with this point. I agree with Viresh. Also, why exactly did we make it deadline instead of RT? Was RT not getting scheduled quick enough? Is it because Android creates a lot of RT threads? -Saravana -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project