Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp373664pxb; Thu, 17 Feb 2022 06:06:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxy86g0mZRnqs1jVDcb2LK9fTelm9Tgjw2gg1e6XPsAc6I9zo4uWk30jdguxNcrW/ikGdHO X-Received: by 2002:a63:6cc2:0:b0:373:6dfb:297 with SMTP id h185-20020a636cc2000000b003736dfb0297mr2589605pgc.1.1645106769839; Thu, 17 Feb 2022 06:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645106769; cv=none; d=google.com; s=arc-20160816; b=PlXuEsN5wI7YQ94xTKnnBPeAmlpnp+2yphGv1zd+LNd0IglgVUJfp4XoQPhQ8xUp4y PTyPz6Hqbwzqt7HTgQ9mxYLw7uzgonmkNmpBcgcUsRHmDwOWdeibGpw3EZBNIk4Q/Q6o 174wiNd5ZTsXOgbWXLuK2Xge1oePdB7NXaKByBMP5lG7FzUC3IXS7e5+AE3iOCiCywmg CdpBud/0HifP0m9ZF+Zd9+I1ZKnRqe4q6Fgq3gssBYULXq6J06Y0gcHs+0rqLNbzPsqN aP4RXUw39zrHWzmDfiYz14iMYP+Zxh0IqsLRYG37IZ96c6Ngf2uEvODp3YJ7EHx4c4NA DTXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xZlo/aob1wQ1ZSgYV63PX8q9CXH4pQq9F49K4TeXUXw=; b=wPnsUNEzeVpomTclAaLKYkZ5gxG6uzhcCeqt6ScnzhEniFSQ3zubkSqvDqIa8La2zT YZBWsNZ9Ix2/6KmFxF8eJGIFVzbEakSqGoJeYKVW+ft5vbKJgbCuUVpHq+h4mL5BTYpO Rqvm77w9MHTC3/l9xa8D/aLlm5OLm8lRZbb3Cw7y2YX75spWTkkxtAiX240YZ7XP9LyH MTRMC/RWGBP/5PvAVVRF6PdsbdZFfEU+d6Os4Ps3oLrEyTrKHAXNK0WWaUek1FKUGYUZ +vlrEyp7xRL5H9kDb93OpwYuD8RzTUi/RuG7w4ju04V80uOMXq2P1K15pBr4E1rjEb0b cx8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GEns6dn/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10si9509460plt.569.2022.02.17.06.05.49; Thu, 17 Feb 2022 06:06:09 -0800 (PST) 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=@linaro.org header.s=google header.b="GEns6dn/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238567AbiBQJ7b (ORCPT + 99 others); Thu, 17 Feb 2022 04:59:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238357AbiBQJ7a (ORCPT ); Thu, 17 Feb 2022 04:59:30 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 597245F56 for ; Thu, 17 Feb 2022 01:59:16 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id k1so7990155wrd.8 for ; Thu, 17 Feb 2022 01:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=xZlo/aob1wQ1ZSgYV63PX8q9CXH4pQq9F49K4TeXUXw=; b=GEns6dn/YbDEzl3bRSfaT+gisuZkkud+dTQxuIVa6g8u70lM1pOC35pnNo8mj1W9RM 8jNwkADAGmiyi/A4YMcX6f7f83TzurPWrExlFckkbpF2wfi9SgefQaMSTzFkq+Q/HGCJ Zg0B3BvXCXFvQWZZxN8IEiiAZGm0kF80hxpKC/Z9Qsg2kUlOHI8cAGKmvU+c/rahKg8i 66gr/WcDqP5tmzB+2ffiWNrCDYArPqHQR6g2uB6Zf1hluF4NwtUFbDapGCpfy49iEca2 gMgmWUnojRAH48FOSmGmOfRZtq+SIOe3cwOz3fYpL8G2rj4K74hiLAjZA0ORxapwRwZz TikQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=xZlo/aob1wQ1ZSgYV63PX8q9CXH4pQq9F49K4TeXUXw=; b=p2zIy+1VythKu37tA7hJaGqIhJWalP+TTgljfrcjlE8az5HRotPHhjlvYgBtMH0Odw HqjDdFz5ihdLriC/octJI0Z1k3tsDE/n1FiqHGYTC5dDA5+pQmSOXqBaR4MPVq0HzMPu Q2kwlKB1FyPwcr2kGCiPYl7Kc02bF6iuT42aEjEEJFp02BsbaZ3UlsKnmvbVCOYXjFEE cmXtA6oDPYyNaSuTXRZyOX4ur1tVDRwxGSy1iRZPYhkoH+6FQoulpndcj66GzdLkjREn qLOi/sEdGRdZTGot+WeIvJkbFRmIWN7NxJ/pRnOjl2CzaOLU/8qQxqvFSHz+UA9vjh0Z TGDg== X-Gm-Message-State: AOAM5328txMJAYy0tjZhTnp9qNkLDvE+F8NtiS/V1KYVa6s3pqHTTYEC qOEnbuNjXl0Pq06IKwGN0U5wDg== X-Received: by 2002:adf:e811:0:b0:1e4:bf57:7754 with SMTP id o17-20020adfe811000000b001e4bf577754mr1741498wrm.224.1645091954811; Thu, 17 Feb 2022 01:59:14 -0800 (PST) Received: from ?IPV6:2a01:e34:ed2f:f020:6165:d98a:b553:c3c1? ([2a01:e34:ed2f:f020:6165:d98a:b553:c3c1]) by smtp.googlemail.com with ESMTPSA id k3sm1351468wrm.69.2022.02.17.01.59.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Feb 2022 01:59:14 -0800 (PST) Message-ID: Date: Thu, 17 Feb 2022 10:59:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/2] thermal: cooling: Check Energy Model type in cpufreq_cooling and devfreq_cooling Content-Language: en-US To: Matthias Kaehlcke , Doug Anderson Cc: Lukasz Luba , LKML , Linux PM , amit daniel kachhap , Viresh Kumar , "Rafael J. Wysocki" , Amit Kucheria , Zhang Rui , Dietmar Eggemann , Pierre.Gondois@arm.com, Stephen Boyd , Rajendra Nayak , Bjorn Andersson References: <20220207073036.14901-1-lukasz.luba@arm.com> <20220207073036.14901-2-lukasz.luba@arm.com> <4a7d4e94-1461-5bac-5798-29998af9793a@arm.com> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 16/02/2022 23:13, Matthias Kaehlcke wrote: > On Wed, Feb 16, 2022 at 09:33:50AM -0800, Doug Anderson wrote: >> Hi, >> >> On Wed, Feb 16, 2022 at 7:35 AM Lukasz Luba wrote: >>> >>> Hi Matthias, >>> >>> On 2/9/22 10:17 PM, Matthias Kaehlcke wrote: >>>> On Wed, Feb 09, 2022 at 11:16:36AM +0000, Lukasz Luba wrote: >>>>> >>>>> >>>>> On 2/8/22 5:25 PM, Matthias Kaehlcke wrote: >>>>>> On Tue, Feb 08, 2022 at 09:32:28AM +0000, Lukasz Luba wrote: >>>>>>> >>>>>>> >>> >>> [snip] >>> >>>>>>> Could you point me to those devices please? >>>>>> >>>>>> arch/arm64/boot/dts/qcom/sc7180-trogdor-* >>>>>> >>>>>> Though as per above they shouldn't be impacted by your change, since the >>>>>> CPUs always pretend to use milli-Watts. >>>>>> >>>>>> [skipped some questions/answers since sc7180 isn't actually impacted by >>>>>> the change] >>>>> >>>>> Thank you Matthias. I will investigate your setup to get better >>>>> understanding. >>>> >>>> Thanks! >>>> >>> >>> I've checked those DT files and related code. >>> As you already said, this patch is safe for them. >>> So we can apply it IMO. >>> >>> >>> -------------Off-topic------------------ >>> Not in $subject comments: >>> >>> AFAICS based on two files which define thermal zones: >>> sc7180-trogdor-homestar.dtsi >>> sc7180-trogdor-coachz.dtsi >>> >>> only the 'big' cores are used as cooling devices in the >>> 'skin_temp_thermal' - the CPU6 and CPU7. >>> >>> I assume you don't want to model at all the power usage >>> from the Little cluster (which is quite big: 6 CPUs), do you? >>> I can see that the Little CPUs have small dyn-power-coeff >>> ~30% of the big and lower max freq, but still might be worth >>> to add them to IPA. You might give them more 'weight', to >>> make sure they receive more power during power split. > > In experiments we saw that including the little cores as cooling > devices for 'skin_temp_thermal' didn't have a significant impact on > thermals, so we left them out. I agree, that was also my conclusion after doing some measurements. Basically, the little cores are always cold and are victims of the big cores heat dissipation. They of course contribute a bit to the heat but capping their performance does not change the temperature trend of the whole. That is less true with silver-gold were it is the same micro-arch but different frequencies. >>> You also don't have GPU cooling device in that thermal zone. >>> Based on my experience if your GPU is a power hungry one, >>> e.g. 2-4Watts, you might get better results when you model >>> this 'hot' device (which impacts your temp sensor reported value). >> >> I think the two boards you point at (homestar and coachz) are just the >> two that override the default defined in the SoC dtsi file. If you >> look in sc7180.dtsi you'll see 'gpuss1-thermal' which has a cooling >> map. You can also see the cooling maps for the littles. > > Yep, plus thermal zones with cooling maps for the big cores. > >> I guess we don't have a `dynamic-power-coefficient` for the GPU, >> though? Seems like we should, but I haven't dug through all the code >> here... > > To my knowledge the SC7x80 GPU doesn't register an energy model, which is > one of the reasons the GPU wasn't included as cooling device for > 'skin_temp_thermal'. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog