Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3341630ybl; Mon, 27 Jan 2020 02:07:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzNfyFhOavBhTviZ8vO5n8wiDvx/OEA+J6MSSjBnG2r0IxSrohxpJcbfLxnCO1CBieWOHcw X-Received: by 2002:a9d:7851:: with SMTP id c17mr12509644otm.58.1580119675727; Mon, 27 Jan 2020 02:07:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580119675; cv=none; d=google.com; s=arc-20160816; b=ZE+zifhluHR8bXoZQ2jzgs8yNDf+zwigJzn690JFvfTrZSytHDNXlQYBM9VRM21Txe 7U1KkKWYI3PXL4Q/LGEd483wZeulwxh4rqeERhbiywZ5Rb3ZCp7WK/r/VsYZn5Mt3g/H 2GR5i/pSxCgGTcUZWob2H6PhAmxXAXL8/llcupHghC2lL9gUPYzUoOpWUf9teeKKBdhQ j8D2T1Gh4NcTIdoDRJ6N1qm9XHJs0Co1proYhTb7X9k4zWRmaiqK/0Gv3IUlaIz01OQM RmKQpr5tCrBmIxLyE1FTaElgCxdc0QdvW75Ds/rX2QtIfLF4SOUiMB56Q67CxMAf+qCn uwyw== 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=x6wgQumMCur7gkodumRw7W7Wzf5DPByIJIDMvmKayjE=; b=nZqXrRbdmpOwesgBm20UIC9U/4pcQZXtLKLTqddt89bSRr5jvqYd0g8tK14+M1X4jH W+AB/aaWwhYvs4b+MtuGRA0N/nMPrX2qopnkznunVzqO1b5PkSQWRwGj25hnRdYG8xj4 y5p/DlSIe9ktDRDE0mDigVi1GjF8lw0MmvRsn0IjBLowMDKkYUFq3AAggpPzVQcTa68n pg9iCWTwYxT326hKf/RpZ9RufkKpH9wveIPDIh5jKsORKwrPiLYfT+ZplH8pr1xTONyG hyMePF5679fpHoXm+R7dksudWrIGkYucwY7JYPns7eLoo6pmCCx4m+A+Z5x0OM4I9vHE ZDIQ== 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 h8si2776237oib.104.2020.01.27.02.07.43; Mon, 27 Jan 2020 02:07:55 -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 S1729559AbgA0J2w (ORCPT + 99 others); Mon, 27 Jan 2020 04:28:52 -0500 Received: from foss.arm.com ([217.140.110.172]:41436 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729378AbgA0J2v (ORCPT ); Mon, 27 Jan 2020 04:28:51 -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 7515A31B; Mon, 27 Jan 2020 01:28:51 -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 837493F67D; Mon, 27 Jan 2020 01:28:49 -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> From: Dietmar Eggemann Message-ID: <6232d91d-2603-06ca-0e7c-66ec2a137759@arm.com> Date: Mon, 27 Jan 2020 10:28:34 +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: <5E2B405A.7040405@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 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. >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >> index e688dfad0b72..9eb414b2c8b9 100644 >> --- a/arch/arm64/Kconfig >> +++ b/arch/arm64/Kconfig >> @@ -164,6 +164,7 @@ config ARM64 >> select HAVE_FUNCTION_ARG_ACCESS_API >> select HAVE_RCU_TABLE_FREE >> select HAVE_RSEQ >> + select HAVE_SCHED_THERMAL_PRESSURE >> select HAVE_STACKPROTECTOR >> select HAVE_SYSCALL_TRACEPOINTS >> >> Currently it lives in the 'CPU/Task time and stats accounting' of >> .config which doesn't feel right to me. > > It is cpu statistics if you think about it. It is also the same .config > where CONFIG_HAVE_SCHED_AVG_IRQ is defined. OK, makes sense.