Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp849348ybx; Thu, 7 Nov 2019 03:37:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwYEli4R+v4FsMh4yiGoPtfPj8eMqCWgb1fRzy8yeGiEDBRUzTj3VA7iQZiEhfdrk7+sy5+ X-Received: by 2002:aa7:d147:: with SMTP id r7mr3004990edo.198.1573126659646; Thu, 07 Nov 2019 03:37:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573126659; cv=none; d=google.com; s=arc-20160816; b=UB/z3LCjfkpf1qKlZ5MJiuGOlF3RUq0QpWQC23NoNdq8WkkW2xfeVEicXEaBJb+59E gMbjz4IcFk3l67TPlyxkiA8xw/o6fj0u898uK705DZqaDwoc253EJibI0O6RwgD4gRQQ WHAyWZZCrxtofc/k9PC4+Qo3wsgJOFkHEUJM0+v3Ha/KY3QL0TCA5UK5pMrbXpH6pDUS z/0GDt/MrBDqQ3CmBgrg/s3eQn/hFam0YgUFvobkXfEtBwFaZeRHg7edhw6/dV7TkKAc xwRLnMFsDMrU21kENviyYPqp4wD1gW+4/HHzn8yk+rqOBMucY+t75NYGYqomXLVqa1q6 tAvw== 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=I0ATLDcJiQnVrjghK7VkN2CB/ogc5jRPlUbFEN0KX7Q=; b=eDVRovheLXiq/PmRBuN2xO3bXX56bByZtiCDojsEO3FXka8CSqtR0E6SWHM6yKDY8V UjuIELyNSDAHFYH+RXrekInUFTlm6mMhJ8eQnwoJDY0uOD3i1kJIh//oCpooRzB0hdD0 8gx7jgEsnjS0uz01HGCSoFTPwaFsVhnhVBOiOd/4vcmc1z0GxeANE/6LZMNKMbuoycTm u9V2omBEagJAQivXd5mv89aU/02za5F65fc2glXEEjF6TJQL1Ewjs2TGAqLWAI2JPvN6 42XntXxx9IoqCm+3FyxqIOe7YP3jhnkIi/sZ2wAH+jDAFPcv6tnGq9yPPqV1nq3y1633 t/Dg== 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 b20si1100911edx.344.2019.11.07.03.37.15; Thu, 07 Nov 2019 03:37:39 -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 S2387543AbfKGLga (ORCPT + 99 others); Thu, 7 Nov 2019 06:36:30 -0500 Received: from foss.arm.com ([217.140.110.172]:54592 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727278AbfKGLga (ORCPT ); Thu, 7 Nov 2019 06:36:30 -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 D43AD7CD; Thu, 7 Nov 2019 03:36:29 -0800 (PST) Received: from [192.168.0.9] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0C5283F6C4; Thu, 7 Nov 2019 03:36:27 -0800 (PST) Subject: Re: [Patch v5 2/6] sched/fair: Add infrastructure to store and update instantaneous thermal pressure To: Vincent Guittot Cc: Thara Gopinath , Ionela Voinescu , Ingo Molnar , Peter Zijlstra , Zhang Rui , Eduardo Valentin , Quentin Perret , linux-kernel , Amit Kachhap , Javi Merino , Daniel Lezcano References: <1572979786-20361-1-git-send-email-thara.gopinath@linaro.org> <1572979786-20361-3-git-send-email-thara.gopinath@linaro.org> <20191105202037.GA17494@e108754-lin> <5DC1E348.2090104@linaro.org> <20191105211446.GA25349@e108754-lin> <5DC1E9BC.1010001@linaro.org> <20191105215233.GA6450@e108754-lin> <436ad772-c727-127e-1469-d99549db03fc@arm.com> <5DC3088B.8070401@linaro.org> <943a8368-1f19-d981-7583-0db4e32895af@arm.com> From: Dietmar Eggemann Message-ID: <7f93ad5f-cce2-707b-7562-5860bcdd4ae1@arm.com> Date: Thu, 7 Nov 2019 12:36:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: 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 07/11/2019 11:48, Vincent Guittot wrote: > On Thu, 7 Nov 2019 at 10:32, Dietmar Eggemann wrote: >> >> On 06/11/2019 18:53, Thara Gopinath wrote: >>> On 11/06/2019 07:50 AM, Dietmar Eggemann wrote: >>>> On 05/11/2019 22:53, Ionela Voinescu wrote: >>>>> On Tuesday 05 Nov 2019 at 16:29:32 (-0500), Thara Gopinath wrote: >>>>>> On 11/05/2019 04:15 PM, Ionela Voinescu wrote: >>>>>>> On Tuesday 05 Nov 2019 at 16:02:00 (-0500), Thara Gopinath wrote: >>>>>>>> On 11/05/2019 03:21 PM, Ionela Voinescu wrote: [...] > In fact, trigger_thermal_pressure_average is only there because of > shifting the clock which is introduced only in patch 6. > So remove trigger_thermal_pressure_average from this patch and call directly > > + update_thermal_load_avg(rq_clock_task(rq), rq, > + per_cpu(thermal_pressure, cpu_of(rq))); > > in patch3 I like the rq_clock_thermal() idea in https://lore.kernel.org/r/20191107104901.GA472@linaro.org to get rid of trigger_thermal_pressure_average(). >> That's not the issue here. The issue is the extra shim layer which is >> unnecessary in the current implementation. >> >> update_blocked_averages() >> { >> ... >> update_rt_rq_load_avg() >> update_dl_rq_load_avg() >> update_irq_load_avg() >> trigger_thermal_pressure_average() <--- ? >> ... >> } [...]