Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp581674ybl; Tue, 28 Jan 2020 08:16:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzvzjl/8ykiXg6oOpO65jPzej9Cr1u5a07Q4IjpBXbW18Dji65uRYxW4nYYRyb6uiLHvXcf X-Received: by 2002:aca:4b0f:: with SMTP id y15mr3227967oia.153.1580228216255; Tue, 28 Jan 2020 08:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580228216; cv=none; d=google.com; s=arc-20160816; b=U4aKajTXGPkRLA69/vMyTD3ZD2Q9YC18AVAjUD+X/gl2XVCaAjd1EZS4I18zOCDf2d Yci4ZY2vRTxR3kVKj2KSL/Eq7MN9fCaU5f36noeYljs4X7nvt1752oBHqnLA2KIwmVYE UjeI1wdKmGbSUzI6Suv45/5b4JNQVXRyNM1byHR7DCKSmvtgoVDVuUjzOMbVV12RfJdu POLzgT7yV5DB31zPe9SOFAmp2A3kJz/LF1u3c0k6tk2Bb71ySrF0RQl4oXidsI6ImEzT m5IzItse1GQ/CdoLsTFyOkOFDmUXKTqfPLDKS6PCBnI299h5vz9AhXXbllytXxvxGY0S +J8w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=VQsE5WdrTfyTQzHFG+gAhOvq1iICXs0Yiq8Xr4SAmB8=; b=LKS5utomAF1tgMz12dCXoCogGbIhaggRgs/4KLaPnj0lhmVPks8M2g6wO2IVhaFnzM BoVkqqlAVHYDXdXqWk9A9xBlc6Bz92rIG/kYZef7rA0XLSmLrmzlw5jiGHnyqHU/phcJ /yISLtqarJSXLTRbqiMCP2o1lIDfuzY9aMHFPJ9uCcVAF4lrhu9gkSX7mhkpHdqBA/r4 CeUgIPWmE8iQGekL1rIKtpW64lLz/Ovk39+sQMlPqVmxjkjeTljHz/ozlc6CvdfabrHM 3UY+J5cyPUwGRtFYaco9QLaeeKvlW4OdGAJ0c4AQkOJHp5/snvSjrsNXZDGjWPo5FbGv hLtQ== 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 l23si5943075otj.302.2020.01.28.08.16.42; Tue, 28 Jan 2020 08:16:56 -0800 (PST) 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 S1726291AbgA1QPQ (ORCPT + 99 others); Tue, 28 Jan 2020 11:15:16 -0500 Received: from foss.arm.com ([217.140.110.172]:60062 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbgA1QPQ (ORCPT ); Tue, 28 Jan 2020 11:15:16 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9E0791FB; Tue, 28 Jan 2020 08:15:15 -0800 (PST) Received: from [192.168.0.7] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AF54A3F68E; Tue, 28 Jan 2020 08:15:13 -0800 (PST) Subject: Re: [Patch v8 1/7] sched/pelt: Add support to track thermal pressure To: Thara Gopinath , Peter Zijlstra Cc: mingo@redhat.com, ionela.voinescu@arm.com, vincent.guittot@linaro.org, rui.zhang@intel.com, qperret@google.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, amit.kucheria@verdurent.com References: <1579031859-18692-1-git-send-email-thara.gopinath@linaro.org> <1579031859-18692-2-git-send-email-thara.gopinath@linaro.org> <20200116151724.GR2827@hirez.programming.kicks-ass.net> <5E2B405A.7040405@linaro.org> <6232d91d-2603-06ca-0e7c-66ec2a137759@arm.com> <5E3037F3.30507@linaro.org> From: Dietmar Eggemann Message-ID: <26e7d02f-3ecf-5769-424f-62fb98fe3ec2@arm.com> Date: Tue, 28 Jan 2020 17:15:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <5E3037F3.30507@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/01/2020 14:32, Thara Gopinath wrote: > On 01/27/2020 04:28 AM, Dietmar Eggemann wrote: >> On 24/01/2020 20:07, Thara Gopinath wrote: >>> On 01/23/2020 02:15 PM, Dietmar Eggemann wrote: >>>> On 16/01/2020 16:17, Peter Zijlstra wrote: >>>>> On Tue, Jan 14, 2020 at 02:57:33PM -0500, Thara Gopinath wrote: >> >> [...] >> >>>>>> +#ifdef CONFIG_HAVE_SCHED_THERMAL_PRESSURE >>>> >>>> I assume your plan is to enable this for Arm and Arm64? Otherwise the >>>> code in 3/7 should also be guarded by this. >>> >>> Yes. I think it should be enabled for arm and arm64. I can submit a >>> patch after this series is accepted to enable it. >>> Nevertheless , I don't understand why is patch 3/7 tied with this. >>> This portion is the averaging of thermal pressure. Patch 3/7 is to store >>> and retrieve the instantaneous value. >> >> 3/7 is the code which overwrites the scheduler default >> arch_cpu_thermal_pressure() [include/linux/sched/topology.h]. I see it >> more of the engine to drive thermal pressure tracking in the scheduler. >> >> So all the code in 3/7 only makes sense if HAVE_SCHED_THERMAL_PRESSURE >> is selected by the arch. IMHO, 3/7 and enabling it for Arm/Arm64 should >> go in together. > Hi Dietmar, > I will have to respectfully disagree here. We explicitly separated out > this stuff (updating and reading of instantaneous thermal pressure)from > scheduler. To me putting all this under HAVE_SCHED_THERMAL_PRESSURE is > equivalent to keeping this stuff in scheduler specific code. But I will > provide a patch enabling the option HAVE_SCHED_THERMAL_PRESSURE in > arm64/defconfig. arm is trickier though as it has a bunch of SoC > defconfigs. I will leave it out for now . If you enable HAVE_SCHED_THERMAL_PRESSURE for Arm64 w/ this patch-set then I don't see any disagreement here.