Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1083247pxb; Wed, 16 Feb 2022 10:33:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnlE3fugTbfA2YzpouB6lJue4J3QK4ADGn/+rXa4JLdGsVrGC+das+TQ67abePmnnblmRo X-Received: by 2002:a17:906:2695:b0:6cf:e1b4:118b with SMTP id t21-20020a170906269500b006cfe1b4118bmr3397191ejc.348.1645036438772; Wed, 16 Feb 2022 10:33:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645036438; cv=none; d=google.com; s=arc-20160816; b=bZqeY6AZGYvR/YbL9IdA95T7/KPHacogWz1dZaaev/EMic2SMiUmE29klwXxfix1PF XZR4UOOKXUhQFGijhEWmtrGyuWpHKWqCGXfu8gHZ2MPJjFXeh23I0Lti8KZJik2B5xh4 9mlO5DX0sJceAJrSC3CWa5goMMwDpdH0BLgy5k1M/lyrbzPex0h1EfKExkhanDBgcYlo 3Dv6q1ZtrVVlBHijmCPxbrNlwRJDQMP4idBNXSM5g2rrDfphWe4NTZIShZfvFyEpxZxi MqJUJtJhAX9BbJU1NqvVzvbrEtKhEBm4QpHk4P3u0/3p8TJByqxTQV3krhCze62FUc43 dVLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NabgQQsJH6X4TlMYnFn6QKKl4Vhu4efuUjjjXfJ7lgQ=; b=KXWKd/srsOC02Azd+rt3XLG7nwXGOsMs1Y3tFAvf3YgTgwoQjbT3s/oJUYM1ykqwgx Q9lmpaFhXrC0mzOSUOFb3HP2EOidmK+/7DLbGRXZXCS20gOGSzcExH2sDdYX7CpK6YS/ DRpXOlOnbpzHI+KPYMkyWwbatm9xdd/gmLs+ae8wTA/7Zn1UHz9RMcmydC1bOBqRfbym 3RZGxUoPzTB4xl2G+2KWGQ+VvLC30IMxplmT3hiHXarxzvmhWIToV2sq5VAXMEdRFkFA 0d+qJA7U2n716oZSPwzPUEislTNrTolqDekx8Vlklgfipk5HmUjhwRrpvQeRdBCmCdgW 2AuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dsj9GnWa; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12si2895257edd.77.2022.02.16.10.33.34; Wed, 16 Feb 2022 10:33:58 -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=@chromium.org header.s=google header.b=dsj9GnWa; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237129AbiBPReR (ORCPT + 99 others); Wed, 16 Feb 2022 12:34:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237118AbiBPReQ (ORCPT ); Wed, 16 Feb 2022 12:34:16 -0500 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A14921F5C6 for ; Wed, 16 Feb 2022 09:34:04 -0800 (PST) Received: by mail-io1-xd31.google.com with SMTP id s1so530863iob.9 for ; Wed, 16 Feb 2022 09:34:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NabgQQsJH6X4TlMYnFn6QKKl4Vhu4efuUjjjXfJ7lgQ=; b=dsj9GnWa++50RRrfwADJFF/o/2xUy5SXce8mZRDSEslyWwm7KHBXT56e43oz/709yQ v6saAUnzbVJhjV866YrKpAvUNAqwFYjn+5AgFFwx9D58EMUeHX/g43j3II9/r5rQUbF6 V8RdxhwLOzhhmc3RRL6JvuABsDiRaVSPwjpYo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NabgQQsJH6X4TlMYnFn6QKKl4Vhu4efuUjjjXfJ7lgQ=; b=OxKixVxDLToudI2n7A8I9VF02rZ28iBXOtI9/N4h8c3ls4todf0wEt0ii9GXk1Dr77 /VdeLCpbF0GKtONcICBrIFm1eadTyn4aHLRmhHC/O5fg6431QPmDS6Zv5hejl/+JLsDo mxAFUOIg9wXtroiQ1JevU/KtfLRggruMLMVm503c5bdam2j9iHpwQ0tlpZ8ZZLjf4c8j Ceme4Oof7pSPgiurSFTaajkMhpbnlIG2EZQH+4DyTBAXyg5v9Ya/fmk8E1auP/f5j88F a1ZP2N2U20jKOt9nombdn2HZiSLWLDAPnhSW4fZuoS3TrA6ybiLjoC7dhgNMon2zGtcd QJxw== X-Gm-Message-State: AOAM531bNlzI3MYNOSsdmoXWWsD+wz9lw1W5CL2d/AiWb3Ru9DahIN/Y qokGMBv2jTAPm9XMAicDOZ2jLaRgu8OjCg== X-Received: by 2002:a5d:8903:0:b0:635:9b1:5424 with SMTP id b3-20020a5d8903000000b0063509b15424mr2585245ion.92.1645032843536; Wed, 16 Feb 2022 09:34:03 -0800 (PST) Received: from mail-io1-f50.google.com (mail-io1-f50.google.com. [209.85.166.50]) by smtp.gmail.com with ESMTPSA id m13sm263623ilh.18.2022.02.16.09.34.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Feb 2022 09:34:02 -0800 (PST) Received: by mail-io1-f50.google.com with SMTP id w7so556262ioj.5 for ; Wed, 16 Feb 2022 09:34:02 -0800 (PST) X-Received: by 2002:a6b:ed01:0:b0:635:2020:c11 with SMTP id n1-20020a6bed01000000b0063520200c11mr2514847iog.136.1645032842511; Wed, 16 Feb 2022 09:34:02 -0800 (PST) MIME-Version: 1.0 References: <20220207073036.14901-1-lukasz.luba@arm.com> <20220207073036.14901-2-lukasz.luba@arm.com> <4a7d4e94-1461-5bac-5798-29998af9793a@arm.com> In-Reply-To: From: Doug Anderson Date: Wed, 16 Feb 2022 09:33:50 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] thermal: cooling: Check Energy Model type in cpufreq_cooling and devfreq_cooling To: Lukasz Luba Cc: Matthias Kaehlcke , LKML , Linux PM , amit daniel kachhap , Daniel Lezcano , Viresh Kumar , "Rafael J. Wysocki" , Amit Kucheria , Zhang Rui , Dietmar Eggemann , Pierre.Gondois@arm.com, Stephen Boyd , Rajendra Nayak , Bjorn Andersson Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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. > > 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. 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... -Doug