Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp974819ybl; Fri, 24 Jan 2020 13:01:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwhmKDm+W7TOWJX+nuL/N7ALi9aNqhpasM/m+PfzrUWymcwJP+nfnL5YH4PSHV7wgsh9jkW X-Received: by 2002:aca:ba46:: with SMTP id k67mr548798oif.38.1579899710716; Fri, 24 Jan 2020 13:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579899710; cv=none; d=google.com; s=arc-20160816; b=t0yh9QBHDIj+JFbmchoSwrSZZ2lQqsWb+075A5E/a6vIc0pCC4MR5DAWf+Hp0Nl+mu fnGyJBzUix8vpbxtoB7RijdqcSN3xO4uYjvl2Pjr1jcXIA87d1qEyVG2t0GIlSrW9XnY Cqy3HmAg+c7/sIEvtZ2cJ88c7JqizZWX6o/iVds0NX7F3lmEvep2qwGXm3ddPfJStrd8 4Ig7K8DzqkC135hAOpL113j75MDQPM8YNnjUce3qcJ1Cr/Os8ABj04bn7K69pqd7q/OO J6/Oaxf/anotqNPaBAoiurgqIcVAHYVZUwzS3WJ/Qq3v6c36mid5XaUtbAx1clIez5yN xySQ== 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 :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=U8mFFao/dTdehuT9CIZw7gKLbyB2Qe+0qd2+PVIWGKA=; b=xHlBHHs0jn43fVoFqa6iatTFZSWSDdOOwZIvXO1RkHg+jVCrtMlq2XV7SMhAq64mNZ g1h7CK5NHB1WusoYbdAwQnIbhYVs8NeHfIzH0gpoes03hwIS8SHc7p8i4+evgrlPLsUK hZOlugtgZvTvZPi3ZNnXjbDJgxfEOHmedZjfsipL3IeNBsghnDTa7LoFpkC97WTnzELa nXe/T7P731R/KW6wRLr7GAk5nj2p+xymHNIkFv4t2BSPsNgB8PcKCyHynpTk6jyoEWfv QFTb9y4QDlKSOx/GRrTcbX3kLOfwlNAPK5sfA/WKxA0IodWXtE4F++S/h9GMRUjFsoYc p7LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PwFi6D0X; 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 h24si307085oie.151.2020.01.24.13.01.37; Fri, 24 Jan 2020 13:01:50 -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; dkim=pass header.i=@linaro.org header.s=google header.b=PwFi6D0X; 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 S2391813AbgAXTHK (ORCPT + 99 others); Fri, 24 Jan 2020 14:07:10 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:43707 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387973AbgAXTHK (ORCPT ); Fri, 24 Jan 2020 14:07:10 -0500 Received: by mail-qk1-f194.google.com with SMTP id j20so3098206qka.10 for ; Fri, 24 Jan 2020 11:07:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=U8mFFao/dTdehuT9CIZw7gKLbyB2Qe+0qd2+PVIWGKA=; b=PwFi6D0XFgccT4RaFx73Pvx/g9iFb10hhGxp0SrZRTBaI9g0AyL0LTfW2ZbBTMTQTA r8TVe94w/Xd1PGw+TXC14YG8JT+LHK8gIrII0iC6jBx4IcAm24ZMhGZgB4ZeQ8DFogBO MnaVg//3kABgGRvXLO09Iy8H7jwU2BQEMnZBJSfXfmACVBzACdSC9hgeZNnNn+AEL3gW kYtK0g9dsrd+hNGw/2W/HyE7QtR8rh/dG0sHiGsYsefX860cBS6GCARb5QExKWxqHXZX Sc1/gA2GH6cPDHbXktkQ90TQ7aZSgu+EiQKdOrXrpHr9xS7SpjDy2rwFkglkXqSLj6n5 PBgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=U8mFFao/dTdehuT9CIZw7gKLbyB2Qe+0qd2+PVIWGKA=; b=U42ZHGfZhMEAJYbmKIzF6DDD85hUIxfkR2ciF4tPztAV0tbWx1EoVxkChFTp/hiaY3 5MI4DDnCul2sCAtfQVoD4rRPnpgy8LoewoL+rV4edrUBUHbZtUry5jdChMqtSqd7lrAG aZ5VG3z1GWKSxnNai7a7VAQVFAClQ9AmDnB8zFcff6tIGQxZqWGehyToTVGN/IriDWYj mAnkVO0r47UGFFsvuNhMEvZxIRygpoJITBduy5weoNbow8EKrK1UBTcGBW0yKEK7m0tR 5kdTBe5dJ6s0Ox8dFntSGjVo3mwJXabwCRb2Fk55t1juXIG83okTI/D5JO12QMCA6+Jr X7EQ== X-Gm-Message-State: APjAAAXcengc+wcf8hswgpNeZ5Or+KZZ1wIOmcJTfsIMfiLSXGLJfJ5o GJXw4/X343XIBr5I3VypWr9GCw== X-Received: by 2002:ae9:f709:: with SMTP id s9mr4146860qkg.463.1579892829399; Fri, 24 Jan 2020 11:07:09 -0800 (PST) Received: from [192.168.1.169] (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.gmail.com with ESMTPSA id b35sm3948636qtc.9.2020.01.24.11.07.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jan 2020 11:07:08 -0800 (PST) Subject: Re: [Patch v8 1/7] sched/pelt: Add support to track thermal pressure To: Dietmar Eggemann , Peter Zijlstra 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> 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 From: Thara Gopinath Message-ID: <5E2B405A.7040405@linaro.org> Date: Fri, 24 Jan 2020 14:07:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: >> >>> diff --git a/kernel/sched/pelt.h b/kernel/sched/pelt.h >>> index afff644..bf1e17b 100644 >>> --- a/kernel/sched/pelt.h >>> +++ b/kernel/sched/pelt.h >>> @@ -7,6 +7,16 @@ int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq); >>> int update_rt_rq_load_avg(u64 now, struct rq *rq, int running); >>> int update_dl_rq_load_avg(u64 now, struct rq *rq, int running); >>> >>> +#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. > > 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. > > [...] > -- Warm Regards Thara