Received: by 10.223.164.202 with SMTP id h10csp5386744wrb; Tue, 21 Nov 2017 08:58:09 -0800 (PST) X-Google-Smtp-Source: AGs4zMauGTOVaYLtAZ7yYY02f2fuTsP0555dUBUQHyjfntEr4n0qyDnA9ZCLbZ0aJtvPyX5ODzt+ X-Received: by 10.99.154.9 with SMTP id o9mr17474468pge.238.1511283489793; Tue, 21 Nov 2017 08:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511283489; cv=none; d=google.com; s=arc-20160816; b=VbFl00gbnwKkPikwUgGpUMDdDGPr1gdqjIqYb/pTMEOIkgHC4TismcH8zxnmJIJ6wH 9G+c4tLiY+g/37WeaJZdAHLAWZyMqkt4f586cuQpSv5QJvHP6ZoW16b9/cqpKvTkjVAX ewaQ1bhtsBBi1UT9DYm97558t/X+Y8KzYeYHwm0Vp3m5nwE2efl4UAu0GRcn4mCbkjvf yAyzlc22Y7XTh+CAO6I4kGkQsaaxXYZL5e9vfGQMC7pAZXZh53hDnHRtg6FB4fOXoTXo h6KdZlallGb4YO8tPTFGB3RFHRkyVHVUZ9RjXO5o4KRckT1IdZdIvK+9qlsSY9WDcaLf d+dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=16o/uh5R6ShY4fMDSNsNzmMAqUbNF17XrqZOhBcu20Y=; b=wmGRAhynAsAR8vuDdSgRJMQI5qTGR+3HnWbJzpy6VbKcWLxttxxBXRvrOEK91B5GdK 37ze/K88TRvZApzPzmyJHjzDxAc2BeemOC+J+CztVfzbu/MTbEmd/7dvlt2Fn/YUUaYj /pdkRxL1L8ublxQiHVx0pwHhbe9NOU6sBXoHvCU7GsVf6GJoTmsisz4vvNOLLuzsEL5d lRsnL0BfD+PhIwpqe4wtVQ5UIMruGvHJWVwrYPdMyFr2RN9v7wv2jXMIXXWDVX0O4FyB m2FsDfgZuU8mvz+OoE9XbcrDrhFypW3a6doy3VRWhNfmziuMIHtRUvBPaPnpGLeC1ZIr a/7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YLj1cTiL; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si11003776plp.34.2017.11.21.08.57.58; Tue, 21 Nov 2017 08:58:09 -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=@gmail.com header.s=20161025 header.b=YLj1cTiL; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbdKUQ5M (ORCPT + 75 others); Tue, 21 Nov 2017 11:57:12 -0500 Received: from mail-pg0-f46.google.com ([74.125.83.46]:43028 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751067AbdKUQ5K (ORCPT ); Tue, 21 Nov 2017 11:57:10 -0500 Received: by mail-pg0-f46.google.com with SMTP id r12so10597767pgu.10; Tue, 21 Nov 2017 08:57:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=16o/uh5R6ShY4fMDSNsNzmMAqUbNF17XrqZOhBcu20Y=; b=YLj1cTiLfxomVNUyMZ6GAM3j75oO5RSVWwi9a2DQ/fx+96sx714Utl0zbr2WNybmJW WJgqNShPmVzjRQcpUXuoLxpd3KI5/XGGaGkqH4SI4ufr+PUUKUx7Nrvw8R45hzjfEcy4 BZPeMIC32ckpqGMcmhCGICdbJfVPH+ErV6WbZcwADcgv5mKyyk5EGqvPnR1ERJbBBplp Xzl7qsvNBc/1JqiNzDV2L9gYwH6hNo+bNO7Pbfwbx0h8hf/6P00OsURrj8tGLlel1hsR qXsdIE/mXovXX7xAN7O/nVCpvszJZRQqHBZXEuhpoCJ5kT207+KvgY2N1kJPFuXPqvmS vrPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=16o/uh5R6ShY4fMDSNsNzmMAqUbNF17XrqZOhBcu20Y=; b=Pr0I4bpz8uaWyxGuJFTymkKQ9mDklZvpUq5xuG2eG3UUKk+9LYOXf30j9JcMRNG6RC o8pNQ4suMdaw3xEFDzy7bqSUOUP696fVCHOWqKEborwcNOfJqQWHP6dgW07jSSdWUXkE sAGbYX4SviTksiCM7tWxwLrLmrSDuss6EMwbv1+vCxvd8Vo94j/4sqYa8/VnErHRI09Z BZvaP5wGK2Dudpnae2F3NimT311nVNeLNA+GOzYszOfPsl+0q+j0c0jaJiTjoNapNpe1 ZO8+j/QP4Jrn4qaoifjUsGwOgT6PnCX/ZGGu2BjTWRA/WYIIPlUtDxipbQPmRtqk/r5t zs8w== X-Gm-Message-State: AJaThX5Td4dmS0cALGFyHOTcqAAtTAyWP85ekLgMmOmyr90cLzMPleTV AeXXrueik5PlPn1u9nLCvgw= X-Received: by 10.99.111.67 with SMTP id k64mr17602701pgc.234.1511283429352; Tue, 21 Nov 2017 08:57:09 -0800 (PST) Received: from localhost.localdomain ([2601:644:8201:32e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id z17sm24195454pfd.124.2017.11.21.08.57.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Nov 2017 08:57:08 -0800 (PST) Date: Tue, 21 Nov 2017 08:57:06 -0800 From: Eduardo Valentin To: Vincent Guittot Cc: Lukasz Luba , Daniel Lezcano , Ionela Voinescu , Punit Agrawal , "Rafael J. Wysocki" , Viresh Kumar , "Rafael J. Wysocki" , Amit Daniel Kachhap , Javi Merino , Zhang Rui , Steven Rostedt , Ingo Molnar , Linux PM , Lukasz Luba , Linux Kernel Mailing List , Javi Merino Subject: Re: [PATCH 4/4] cpu_cooling: Drop static-power related stuff Message-ID: <20171121165703.GA2499@localhost.localdomain> References: <65fef2a1-d23f-3de2-bd91-021296c3e2f7@arm.com> <20171116152058.GR3257@vireshk-i7> <2810372.fJ2vMN0cWO@aspire.rjw.lan> <20171116234422.GA6141@localhost.localdomain> <878tf5tbfj.fsf@e105922-lin.cambridge.arm.com> <35d3751d-f28d-38c2-02b2-c9980f11c52e@arm.com> <5A144CB3.50806@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello folks, On Tue, Nov 21, 2017 at 05:08:34PM +0100, Vincent Guittot wrote: > Hi Lukasz > > On 21 November 2017 at 16:56, Lukasz Luba wrote: > > On 21/11/17 14:06, Daniel Lezcano wrote: > >> > >> On 21/11/2017 12:30, Ionela Voinescu wrote: > >> > >> [ ... ] > >> > >>> A DT model would be easy to support with the current code but it would > >>> be very inaccurate. > >> > >> > >> Why ? > >> > >> [ ... ] > >> > > Hi all, > > > > The DT solution won't fly, the reason can be found below. The APIs being removed by this patch is exactly to cover for the difficulty to model all static power cases. > > > > I agree with Ionela and Punit that the Juno board is not > > the best platform to test the static power impact on IPA. > > In some other platforms the static power can be 50% or more > > of the total power, so it cannot be neglected. > > > > These are the issues. > > The static power equation is complicated, here is one known to me. > > The leakage function is exponentially influenced by current circuit > > supply voltage, body-bias and some constants K_{4,5}. > > > > P_{leak} = L_{g}*V_{dd}*K_{3}*e^{K_{4}*V_{dd}}*e^{K_{5}*V_{bs}}+| > > V_{bs}|*I_{Ju} > > You forgot one main contributor of static leakage: the temperature > We all agree that it is hard to model static power, specially considering all variables. And that today, ARM/Linaro failed to convince vendors to expose this in mainline. So, ... > > > > It can also vary depending on technology (CMOS, FinFET, etc). > > > > It would be really hard to approximate by i.e. a polynomial > > function with inputs from DT. One size does not fit all. > > But can't we linearized around the target temp ? that were we want to > be accurate > > Regards, > > > > The equation can also tell you some interesting things about > > the manufacturing process. Exposing such information might be the last > > thing the vendors want to. > > That's why the vendors might want to implement whole > > thermal management in the firmware or skip static power and > > rely on IPA adaptation. > > They can also use a different api in IPA, when they have some mechanism > > to measure power in firmware, it can be feed into IPA. > > The lack of code in mainline, is not really because the API would not help IPA, but because 2.5y after this has been merged, vendors were not convinced to push a model, even if simple, to mainline. > > Anyway, I would recommend to keep it as is, to have a complete > > power model in the kernel. > > The code without static power routines looks awkward to me. > > From my side - NACK for the patch which removes static power. > > However, we cannot NACK just because we like the code :-). Nor we can NACK because vendors keep their code in Android tree somewhere, or in any other tree. Viresh has a point, if one looks at this code today in mainline, no one is using, it is a dead code, doesn't matter what is out of the tree using it. As I said before, the minimal you guys (ARM and Linaro) can do is to at least upstream the Juno code! as a reference. Come on guys? what is preventing you to upstream Juno model? As already discussed in this thread, we know Juno won't be the best platform to benefit for it, but it has a static power component, and for sure behaves better with the static power model than only with dynamic power. > > Regards, > > Lukasz Luba From 1584692591105411879@xxx Tue Nov 21 16:10:23 +0000 2017 X-GM-THRID: 1584123420538137355 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread