Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp75790iof; Sun, 5 Jun 2022 21:35:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6/FOgK9oj2rlMjWtRG50LEj0BBZcv6G9/50HgvZtoDBQJbs3bXHqm4JgTGL1srpyT4nbI X-Received: by 2002:aa7:93a5:0:b0:51b:e0f8:97a6 with SMTP id x5-20020aa793a5000000b0051be0f897a6mr15299803pff.44.1654490159721; Sun, 05 Jun 2022 21:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654490159; cv=none; d=google.com; s=arc-20160816; b=MzwhVU90jHrLepLh0t44VjFB0H3caIWnwKFpavyYn3pp2nVvfVWy+x/d1KllOm9Jzb 8LC3Myi2MGP3Hq0Z+nt/nXAaIPdbMzHhU3JMasnZrRMTdxDJC7JjrC9upG1c/Xh3YcE3 wZ+Qn+s0LW/O18FG/Dh62rj5qH521l9rNm6EZIv/QEo9BTsqKk6uLXD5VH25ckAszKO9 J73r86Qjpwk5iykEBfPBvk9KvcU6zDhgO2zfW/jnDbRzpqYJO8JgsTo+3epch0AZNuls Rpq9nLBYnZaicdCg60TnV6cjE0/+Ff9/UhqJaGhoiuln/H7s0K5kjyqixkEHySyXanRh SZxQ== 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=ExK+DYLUUomIg3mRJoq7EumeoyhrwGwm615hpYO0lXQ=; b=0MJas8xcF7qjgILZH+kXilBlJmgoSqD2ThXtZhrWL2j72EhoPcL0DuRp0dBYlx5U8T HjOeSnrBfLPS3UM/3maCSWZraNlSazUWEKdpvCdQg69y/esv68T3Uks5NTKeazonVEHb Qgitd1YajhOVL1mpm0+a2B8Jx+dq0uhYXf7unyjem2exCDvoFkaPLMClikJQiZgluTH3 YgquoALw0saza0ymu1zWVUl3QCtKBdyKbhJro1H9w2f6yXK+Ss8/wpuIv/CbOMBPK6tS FJpF63TBtZh0nivL2yblKV7Ym0O9Sypv4yWav4S6RkEojfK1EbbXacyiYuXqawwA5fRg OqRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K19PSH3l; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t34-20020a634462000000b0039db57e26c3si19955650pgk.509.2022.06.05.21.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:35:59 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K19PSH3l; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 39AD99729D; Sun, 5 Jun 2022 21:01:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243917AbiFCLEp (ORCPT + 99 others); Fri, 3 Jun 2022 07:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237380AbiFCLEn (ORCPT ); Fri, 3 Jun 2022 07:04:43 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53B1F3BFB4 for ; Fri, 3 Jun 2022 04:04:42 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id h62-20020a1c2141000000b0039aa4d054e2so6177598wmh.1 for ; Fri, 03 Jun 2022 04:04:42 -0700 (PDT) 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=ExK+DYLUUomIg3mRJoq7EumeoyhrwGwm615hpYO0lXQ=; b=K19PSH3lwY1yW8Us7aXC4yemQGjRs8tmgABDOI0vD1UaDVhaH/YnOt4TU0pQtq9eTw fApFgN1kibEtjP25egxeZs1kpnOQIoxViM6OsebgTbVTljxbUhODUhk8QZINAYXoUjF0 yN6YF1mqAoVnHgWpelghaiVa7DLUlNd5j2TKIvc7CdXWlh/Q4+s8lsoZDftzXn605iiJ LJEfnK/vRSQdUoyQkiByR6M/kGfadO9onx4Bi27AMDPQ0lB5CVx992UzbvzdK/w1d6jw iYsD2DwWOaeTfUz6/rZdNt4Dv1qd3Z0QH4qcfHc/Zk+Hi/Pqh4cc/SYy17mb3beo+aFu Mv2g== 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=ExK+DYLUUomIg3mRJoq7EumeoyhrwGwm615hpYO0lXQ=; b=MjWcvyn9qd5t4ylzUiJ8tM0T868I2/jHQdVoXp4fTbDS6R9QJbar8VcZDjCa+HRUwM JXSLE08PmG3O9VTxTGC+rtjmUc+XDGj/v2c1h1NnBVkuV4z3yquZ/B7LXKdDn3DF9/Ig vb5X7vVoO1EK24IirvkO0xnCmzJa5tG7OHCv0gOfG6SLxXO6sIAdMyjGS1lma5Khhrs+ OSc5wRK2XyfYyshNer7n9gBDLNj/PjQY7G2/44xsvSTehXkR1vH81G9OS9JaOfGNJcxt 4fCMuS+4yaD74T+cGmbKPVm1j5/X7/4cPmuvm17Upu+rYrI/kftsM1fiOnCTe0Qv49UU BBCw== X-Gm-Message-State: AOAM531iTvSW3e2xC1JBxhWfjlcPCo8ngy5nZDXRDteb5BUNKpc6Wegs cjkEaA7Qjl7EamjiTXihmSV98A== X-Received: by 2002:a05:600c:4f93:b0:399:e654:4481 with SMTP id n19-20020a05600c4f9300b00399e6544481mr28194292wmq.164.1654254280711; Fri, 03 Jun 2022 04:04:40 -0700 (PDT) Received: from [192.168.1.41] (static-176-182-171-101.ncc.abo.bbox.fr. [176.182.171.101]) by smtp.googlemail.com with ESMTPSA id h24-20020adfa4d8000000b0020d0a57af5esm7152854wrb.79.2022.06.03.04.04.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jun 2022 04:04:40 -0700 (PDT) Message-ID: <0ca654c0-d7b4-b955-7e9b-542452659694@linaro.org> Date: Fri, 3 Jun 2022 13:04:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 3/3] thermal/sysfs: Remove cooling device sysfs statistics Content-Language: en-US To: Todd Kjos , Lukasz Luba Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, rafael@kernel.org, quic_manafm@quicinc.com, Amit Kucheria , Zhang Rui , Wei Wang References: <20220601151441.9128-1-daniel.lezcano@linaro.org> <20220601151441.9128-3-daniel.lezcano@linaro.org> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Todd, [adding Wei] On 02/06/2022 21:02, Todd Kjos wrote: > On Thu, Jun 2, 2022 at 2:16 AM Lukasz Luba wrote: [ ... ] >> I see, it makes sense. Let's see if Todd and Android folks don't >> use this thermal sysfs stats, so we could remove them. > > Android HALs do use the thermal sysfs stats. debugfs isn't a viable > replacement since debugfs must not be mounted during normal operation. Thanks for your answer. I'm curious, what is the purpose of getting the statistics, especially the transitions stats from normal operation? There were some complains about systems having a high number of cooling devices with a lot of states. The state transitions are represented as a matrix and result in up to hundred of megabytes of memory wasted. Moreover, sysfs being limited a page size, the output is often truncated. As it is automatically enabled for GKI, this waste of memory which is not negligible for system with low memory can not be avoided. I went through the thermal HAL but did not find an usage of these statistics, do you have a pointer to the code using them ? Thanks -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog