From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2912C433EF for ; Wed, 6 Apr 2022 01:53:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1844718AbiDFBvm (ORCPT ); Tue, 5 Apr 2022 21:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457653AbiDEQZ5 (ORCPT ); Tue, 5 Apr 2022 12:25:57 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C401455BED for ; Tue, 5 Apr 2022 09:23:58 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id w4so20082570wrg.12 for ; Tue, 05 Apr 2022 09:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linexp-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:cc :references:from:subject:in-reply-to:content-transfer-encoding; bh=uNzlJACAD9QnQke3SSToK719ANjVE0c+mTYoEIGVJ3w=; b=FtzoNX+p+eICP1GeL76Sx1j6Q69n269E+aeA6jJLGrFL6Z08neX/EzklEDytwMowAc 6IGi63GFlJoBulkw842hKVr8P7vnoUja0wsbRJnRSRW8nkZn3D+IVzPe71qJshXMmcc8 4mesEVSZi0NGqA5xf7DEAk6hClubcWMy4ASv1yCmg+LNN005peFxsWlr42CiRRQTId59 +1p3SB+o763lf1e7Dr5xKXiLXzDziRCVqPVQW96tyULq4Ea9jai2SoU9UzANj5Y8EeGE Gl0pcpn88/DGzbQQhfzcbqDfw+/uLPCSzfofPTv/cvrXzIQr2mn6Tyo2j0rMGsQUZKr2 dLkA== 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 :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=uNzlJACAD9QnQke3SSToK719ANjVE0c+mTYoEIGVJ3w=; b=dhKLhdTD4zJpa56wemhSP89/MnEb1z2rsMpmYOYD7WJe66zFf4+wZ/z30O7B9o1iR4 jGfViNH6yMOyLoyRuHF5wQXJdMFVGoszpT7HCXS9/4ykIfJZGEsNj2qTJrzlb1zG6ner e3DB519hDz3y8yUGD4UUi5Ky4zgdPLGvRbYu4ek6zNBw1WFJLGSzz7Sb4DtKF+n7LIQy 6AkXQS9S5VYY6/B72+IIxHAVbo7yvSBKPqjFFlrHBcOchOyQA12VmhdQXURx/u0bwsw0 5htjgL6bkHxB4JZ4deoURbKBdF2QpNXjBbWKNzmiqIJ/Gvw2MbA7TYVvRJpQMb64HJG+ pdXQ== X-Gm-Message-State: AOAM533nnoQi8+1KMY8QVSsVk5Rq9R/G8WjMTXmUS8ZWuky8caFDiB9O ZGVlB8WCCfWTX/KZyzO9c4aBDg== X-Google-Smtp-Source: ABdhPJzzhmRA9+E0CSpPhcpL5E+BndcfoJdIYKoIHzgSqgoo24dqN2UZdFW4TvGCbFvV+l0ZTLqSXg== X-Received: by 2002:a5d:508d:0:b0:203:dac9:d301 with SMTP id a13-20020a5d508d000000b00203dac9d301mr3300013wrt.441.1649175837381; Tue, 05 Apr 2022 09:23:57 -0700 (PDT) Received: from ?IPV6:2a01:e34:ed2f:f020:104:1924:d86e:ac5f? ([2a01:e34:ed2f:f020:104:1924:d86e:ac5f]) by smtp.gmail.com with ESMTPSA id t9-20020a05600c198900b0038cb8b38f9fsm2780829wmq.21.2022.04.05.09.23.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Apr 2022 09:23:56 -0700 (PDT) Message-ID: Date: Tue, 5 Apr 2022 18:23:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: AngeloGioacchino Del Regno , Kevin Hilman , Eduardo Valentin , Alexandre Bailon Cc: rafael@kernel.org, rui.zhang@intel.com, amitk@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, ben.tseng@mediatek.com, mka@chromium.org, Marijn Suijten , Konrad Dybcio References: <7hlex0s6ag.fsf@baylibre.com> From: Daniel Lezcano Subject: Re: [PATCH 0/2] thermal: Add support of multiple sensors In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Angelo, On 05/04/2022 14:14, AngeloGioacchino Del Regno wrote: [ ... ] > Hello Eduardo, Kevin, > > I would like to add that this series is not only benefitting MediaTek > platforms, and not only Chromebooks. On some Qualcomm SoCs (from > SDM845 onwards, if I'm not wrong!), downstream, there is some "qti > virtual sensor" driver, which is addressing this kind of situation: > on these platforms, averaging, min and max (and some interpolation > too, but that's another story, I guess) is happening and that's used > as some advanced way to ensure that both performance stays high and > that the device is safe to operate. On these platforms, this is done > by evaluating CPU, GPU, Hexagon DSPs, modem, wifi and (modem,wifi)PA > IPs and deciding on a thermal throttling strategy. > > You understand that, while this is not "excessively" important for a > Chromebook, which is a laptop, it may become even a safety concern > in devices of other form factor, like smartphones, where there is a > very strict thermal headroom (hence requiring a fine grained thermal > management). > > Even though, on MediaTek, I guess that the primary usecase is > Chromebooks and this kind of mechanism is required primarily for the > LVTS sensors that are used for SVS calculations (read: better power > efficiency), the Linux community is huge - and, with this kept in > mind, there will probably be someone that will like to upstream their > MTK smartphone for a reason or another (I think! This happened with > Qualcomm so I guess that it's going to happen with "any other > thing")... and that adds up to this problem being a safety concern to > fix. > > Of course, I agree with you, Eduardo, about the needed cleanup but, > for all of the aforementioned reasons - mine and Kevin's, like him, I > would also beg, plead and grovel that you consider merging this > series as a first phase, and accept the cleanup and use-case > expansion as a second phase. I'll take care of the cleanups and then respin Alex's series on top of those. Thanks -- Daniel > P.S.: I'm adding Marijn and Konrad to the loop, as people interested > to the Qualcomm side of things, and mainly upstreaming smartphones. > > Kind regards, Angelo -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog