Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp27456pxj; Wed, 16 Jun 2021 19:18:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMNcGSr60iZNyzrVx2lHaLlV26XVMK0346dI8SCNR0H1s72jWf1hQro962Q6rXTfPek6y2 X-Received: by 2002:a05:6e02:eee:: with SMTP id j14mr1810401ilk.238.1623896312675; Wed, 16 Jun 2021 19:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623896312; cv=none; d=google.com; s=arc-20160816; b=VpW6vV6YkV0o5tTIwiqGnKwmzWrD1B/mLQRCL8Pck2PlQe0oIUiPSAmUWls1Dg4bAW qmhFTKgxX0weijUzVVuSOiAf03wgNAvD7U9bez9KNGlix+Tmmm67Fb+odaGuUb82zVUd YvDCXgGyIuEcGup1LEqmBksutOF+OCGv9+lI1X9wmnPMh1Ka/mWUcJzJaKK37Q1g9jl9 eMKN4rPXflSJ67LObdaA5StVwZQoLID/1LId95P6T2ScdOqrEe9Atiwb/sc/B0/Y/Ds2 iLMGLnVP2vt0iYWUXgOcr6SyC0TeiCIg+4Bd3y5n9wpKiyLfMW/SR6Ygd+vpYw+7++XK 1fbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=xxQ04KReElRxUjjUgj9hEDSN9UlpinRjvEC7KhNLINk=; b=pHIAA0kGwoVLvg4GhFnxh/3O1Y0atZi3ofV7ColJm6MrcNvNXg+cp6PXSu0+oOufRm yQms9E/Jd9cbOf0GZ/SFdfw3N2/se+0q/37soKd/cAdzEQmq0kInTDh0gvJrjGosSkqY rL6RmynfJrTmiiGg4p9BqalwE0ZMzYwpaeyRewVC07Pj5EVqSAM30wSLkgpat6lprCfa sdxEDa8OsjLfigfhujfldnLEIsjXOs8+EpxsmFyJzVxc1zpdaFSzwE51sntt/ufNKoFb 0qUgFwMadEu/uqodR16w3E+YMFWPBrsuvPyD4osxKQRLVTL+Tf8A2iuBNYDtZTYoKGGN z3zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h23si4249101jar.116.2021.06.16.19.18.20; Wed, 16 Jun 2021 19:18:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233385AbhFPUYz (ORCPT + 99 others); Wed, 16 Jun 2021 16:24:55 -0400 Received: from foss.arm.com ([217.140.110.172]:44864 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233355AbhFPUYx (ORCPT ); Wed, 16 Jun 2021 16:24:53 -0400 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 2125D113E; Wed, 16 Jun 2021 13:22:46 -0700 (PDT) Received: from [10.57.9.31] (unknown [10.57.9.31]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A493A3F70D; Wed, 16 Jun 2021 13:22:42 -0700 (PDT) Subject: Re: [PATCH v4 2/3] sched/fair: Take thermal pressure into account while estimating energy To: Vincent Guittot Cc: Dietmar Eggemann , linux-kernel , "open list:THERMAL" , Peter Zijlstra , "Rafael J. Wysocki" , Viresh Kumar , Quentin Perret , Vincent Donnefort , Beata Michalska , Ingo Molnar , Juri Lelli , Steven Rostedt , segall@google.com, Mel Gorman , Daniel Bristot de Oliveira , Thara Gopinath , Amit Kachhap , Amit Kucheria , Zhang Rui , Daniel Lezcano References: <20210614185815.15136-1-lukasz.luba@arm.com> <20210614191128.22735-1-lukasz.luba@arm.com> <237ef538-c8ca-a103-b2cc-240fc70298fe@arm.com> <9821712d-be27-a2e7-991c-b0010e23fa70@arm.com> From: Lukasz Luba Message-ID: <79dbb2ad-88c1-ff08-59c8-7728d37ee78a@arm.com> Date: Wed, 16 Jun 2021 21:22:40 +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; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/16/21 8:25 PM, Vincent Guittot wrote: > On Wed, 16 Jun 2021 at 19:24, Dietmar Eggemann wrote: >> >> On 15/06/2021 18:09, Lukasz Luba wrote: >>> >>> On 6/15/21 4:31 PM, Dietmar Eggemann wrote: >>>> On 14/06/2021 21:11, Lukasz Luba wrote: >> >> [...] >> >>>> It's important to highlight that this will only fix this issue between >>>> schedutil and EAS when it's due to `thermal pressure` (today only via >>>> CPU cooling). There are other places which could restrict policy->max >>>> via freq_qos_update_request() and EAS will be unaware of it. >>> >>> True, but for this I have some other plans. >> >> As long as people are aware of the fact that this was developed to be >> beneficial for `EAS - IPA` integration, I'm fine with this. > > I don't think it's only for EAS - IPA. Thermal_pressure can be used by > HW throttling like here: > https://lkml.org/lkml/2021/6/8/1791 > > EAS is involved but not IPA Thank you Vincent for pointing to Thara's patches. Indeed, this is a good example. We will have to provide similar for our SCMI perf notifications - these are the plans that I've mentioned. In both new examples, the IPA (or other governors) won't be even involved.