Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1942631rwi; Tue, 11 Oct 2022 02:36:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6+65GZeO6P33VYaqVg0teQovq7Ug8kRVXoTB2d/FDfP8DN2FUmo5/GwXV04pJ41m/t7dcy X-Received: by 2002:a17:90b:3149:b0:202:e9e9:632f with SMTP id ip9-20020a17090b314900b00202e9e9632fmr37829187pjb.96.1665481015995; Tue, 11 Oct 2022 02:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665481015; cv=none; d=google.com; s=arc-20160816; b=tUui+a48YBldB1LQ7Z8Fi36EtWpahZwofgYadcBYCay1H0uz4xPzhzxmASGWauymbV 6Dcq4AfvMPRyTtrbsiGOp480XmsC2QbQTChsg5jMtU8gSsHTxTISVNfiENBwvdeIJJ9+ +ohg7OtPhxI2qn0EqKxLN//iyHsrmm2i/8FvH5bctRd80jZUwdyLnb6dkhQa3QYhq+QA l6pp3JKNwDRO7OYHUgZozNFPNXkqFR76sNkFbSLrU/Kf1b5305hHXcmSg20mLHlNaZ+K O7vZphYAPIxCQsivjadW/sFhYvFhV9Sib8vb3/JAbkBY5rVZD3wY5FR0jkuU5LzTVUCe 5Mlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KO7gU+LefA6D5wKQ9wSoqhxq2c2iQC8o1fyv5h63CAw=; b=aRHXe2nbiU56liC+FjvrYUHHdeYeX9C93doRCByIYUqaZWPj59AIGFNt8hq5nXjijS 9WEElMBIk3SI7YcJaxmpa5vdCkjPJLDD0zFChLr9PWS0Tl9+LY0PE67AUy/d8+m5AM/u tnVOYQMu3QEj1NyVq/qAm0VjLpzlJvsbAZBDInObKWPtYue/qw3FC/WQv01RJ0XbatEo tElpo5EoQ6ZPS9tMhjJxzowKK6ge4hMRP/thMHsBZ5eteCtqzXzMEb96DPOpXxdo8rq5 ReVQOrI5szVK0gVrA8bfmcirKqJEPruDN/F1FnEeY+Mid3COAL1trlylmI3M7AVAKMLW nXoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=YUUfb42m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x21-20020aa784d5000000b00540d5753591si12945728pfn.299.2022.10.11.02.36.43; Tue, 11 Oct 2022 02:36:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=YUUfb42m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbiJKIiW (ORCPT + 99 others); Tue, 11 Oct 2022 04:38:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbiJKIiV (ORCPT ); Tue, 11 Oct 2022 04:38:21 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C448D7F0B1; Tue, 11 Oct 2022 01:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=KO7gU+LefA6D5wKQ9wSoqhxq2c2iQC8o1fyv5h63CAw=; b=YUUfb42mPZ2+kOu6aaItA3oZJo sFLP+fyN2y9tRMkBLL5GkSc+CEK5Remo0jI0MfjC9DG3x58PbX/1o0klgRCZk9lEsBnZnt5wDWEmI b7Si56ravAbG+8rDvk2fhtlBvm63FA0eSG8jfRYv6QIwViZF0GLzeAx0MLXAenWVVzDjzPQJpeRm0 /XUJiFIOqwthieUeq1TNrUW9eRkp+aDVtNH95DUt56boLklPoTQcEfuVfE5a7/uzD8V0bLqJ2gCj/ 4yPlXIA3DO1fX3LuyByQX/UmJzHlCyb7wv+TjnwC/Z2wbw8ichLlEqGiDzX623Tk6nfh70YdKfTJ9 UeMnMMuQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiAm4-002X70-Om; Tue, 11 Oct 2022 08:38:05 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4D3A730004F; Tue, 11 Oct 2022 10:38:04 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0C98320E1D7DB; Tue, 11 Oct 2022 10:38:04 +0200 (CEST) Date: Tue, 11 Oct 2022 10:38:04 +0200 From: Peter Zijlstra To: Lukasz Luba Cc: Vincent Guittot , Viresh Kumar , linux-kernel@vger.kernel.org, rafael@kernel.org, linux-pm@vger.kernel.org, Dietmar.Eggemann@arm.com, "daniel.lezcano@linaro.org" Subject: Re: [PATCH 2/2] cpufreq: Update CPU capacity reduction in store_scaling_max_freq() Message-ID: References: <20220930094821.31665-1-lukasz.luba@arm.com> <20220930094821.31665-2-lukasz.luba@arm.com> <20221010053902.5rofnpzvyynumw3e@vireshk-i7> <3f9a4123-171b-5fa7-f506-341355f71483@arm.com> <8a7968c2-dbf7-5316-ef36-6d45143e0605@arm.com> <9611971c-d8dd-7877-6f50-c5afbf38b171@arm.com> <7ded9241-6c21-6631-8910-9f1150db6724@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ded9241-6c21-6631-8910-9f1150db6724@arm.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 10, 2022 at 11:46:29AM +0100, Lukasz Luba wrote: > > +CC Daniel, since I have mentioned a few times DTPM > > On 10/10/22 11:25, Peter Zijlstra wrote: > > On Mon, Oct 10, 2022 at 11:12:06AM +0100, Lukasz Luba wrote: > > > BTW, those Android user space max freq requests are not that long, > > > mostly due to camera capturing (you can see a few in this file, > > > e.g. [1]). > > > > It does what now ?!? Why is Android using this *at*all* ? > > It tries to balance the power budget, before bad things happen > randomly (throttling different devices w/o a good context what's > going on). Please keep in mind that we have ~3 Watts total power > budget in a phone, while several devices might be suddenly used: > 1. big CPU with max power ~3-3.5 Watts (and we have 2 cores on pixel6) > 2. GPU with max power ~6Watts (normally ~1-2Watts when lightly used) > 3. ISP (Image Signal Processor) up to ~2Watts > 4. DSP also up to 1-2Watts > > We don't have currently a good mechanism which could be aware > of the total power/thermal budget and relations between those > devices. Vendors and OEMs run experiments on devices and profile > them to work more predictable in those 'important to users' scenarios. > > AFAIK Daniel Lescano is trying to help with this new interface > for PowerCap: DTMP. It might be use as a new interface for those known > scenarios like the camera snapshot. But that interface is on the list > that I have also mentioned - it's missing the notification mechanism > for the scheduler reduced capacity due to user-space new scenario. DTMP is like IPA but including random devices? Because I thought IPA already did lots of this.