Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23805456rwd; Sat, 1 Jul 2023 07:34:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kx6uD9Kf3oX1iBFAncGp2fhs2QdoNomXk+UDi1JiECX/fW0Is/196MQP6f22BaqRCE2fy X-Received: by 2002:a05:6a20:a104:b0:f3:33fb:a62b with SMTP id q4-20020a056a20a10400b000f333fba62bmr7163692pzk.9.1688222088264; Sat, 01 Jul 2023 07:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688222088; cv=none; d=google.com; s=arc-20160816; b=Gr2eta9U/NTuQWEdtn35FzLFNJZNEPvYuAP6z9i4ALMMKE6K502+GAPy5s8J3CGIiv 3Wl6TWqIRGZtoxO1EaH36eb0lo3EuQjX4PqRbC55wXXjivQItA5zrjPaXpjT6W7Ei5Vn 7fMOCHbH7LJE44wGzVJZvHiTnnVg2p6ERBcnlTYj4Z1CTea0hUwBG7E3YIwuEJLy6epq dYObRAYG9SClqPJwCabzKaZd8wTGD7DngEdGbCRbUn0/KNXYjj9aD5FGjNwD7pCWPld3 VLq+wJt6kiEFqPq71pmwddRoFQ2sEfgSgwcS6zPwY79x/zr0MaM8RxEmvdx5jKfz8TYU 6VYw== 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=SvAVVgJkmeA4hsydfmvG5kZr6g/WLMdVAO+gG1MB6IE=; fh=9Z2LGOQf8ytTneLgd8o/YRxUA+IjIWz0R2NR5PtcwLo=; b=dpy4tdvnmnsbOiyT1pooINlvAVuQQDsqO2GMsYIz3fO7/emhB+Z4sAXB+iozhm3hzE xSmQpvzMp3HXQEBQXjbbMk/a+dOryuh14KZMd0dMT3Cm6IRJTE5/DYW3R1Wcllerw62t /f1C52N+vjpvOZqp5OtiRsGxSAL5Ihb8xQO/o9j8TvS6l5xO6w//c3/wbE8KGSJHAv/6 6gr24RJn+VnTw5upE/r4/jdn/K5c74wjted6oV5nbK23begyGE6bZ1NLWDW8CwLo2mVS ZmW1mrFejQZ3Tqzwfg5qyiyiKmL65fBADqqrQNaNDjOKWT9tYT+ZLYf3LxaQeEhZsRdt Iu5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hbVwVpLQ; 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 q13-20020a65684d000000b0055764ab9ea8si14933249pgt.732.2023.07.01.07.34.26; Sat, 01 Jul 2023 07:34:48 -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=@linaro.org header.s=google header.b=hbVwVpLQ; 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 S230011AbjGAOUQ (ORCPT + 99 others); Sat, 1 Jul 2023 10:20:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjGAOUP (ORCPT ); Sat, 1 Jul 2023 10:20:15 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9D071FC0 for ; Sat, 1 Jul 2023 07:20:13 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fbc6ab5ff5so20540505e9.1 for ; Sat, 01 Jul 2023 07:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688221212; x=1690813212; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SvAVVgJkmeA4hsydfmvG5kZr6g/WLMdVAO+gG1MB6IE=; b=hbVwVpLQ7okN8jl5JiOiVF9PGdz2A7jSY2udUcUwG+e6m2LOkY80CAdKlbYiPIwbRa OHMOhPLKVMceX8ek39BezmowNf9W6IuzzSXEqruWBQLxyJbeGmKkvOgaahWAB/bLKI7K Id3IX1QAVZ0hkIfw33867/5u57Kp57o2aFS4YmOBxV2erTXw+0yhQcyYDtnuhW8G+0L/ 5aGyvzaNrPhB9jxvbtQi40PQTwIF+0Fu5UHOod8vWTtYZVjazP5LZ1a7FccWX6PkKO0b aWcSPjrJ2VNrw3opC2fBDcTqgM9iPn5o6eZv85Y664OMAyF06zSeOFCq7nCyPxkmLxan i8qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688221212; x=1690813212; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SvAVVgJkmeA4hsydfmvG5kZr6g/WLMdVAO+gG1MB6IE=; b=MdkuDFBnJNSYPlKgZbr4e3LzteXqZ1FRx3NbSexeNZiSEvYvILFMk/HOtPLUTdwLMT 4UqC4wL2XZw2eKWWv2jmtyWsocJUQE/H0+tMEnQ22VAE1rG7yDxXc7PKKgPP6kshIRe3 H3fQgZXzKidNAWi9ydZK4Wp8USafmHRfqJsV0s/yMRbb5PXwTgprwfEjsTlYS3Zz/fmK WOAh99iODJHc2Cxopk+bvXXR/sdBhimjDPjq7xr+M1eUQuL8ojezo0aqnNbALk4pqi6T NDfvJRWvKLP7bE/dyU5HxsSh2aGc44v/Q78fUbdMulDWGW/TACjnNjaVVNC3Ul0fdgCS f8vQ== X-Gm-Message-State: AC+VfDyNK6ZyzL+81ORPnSpP3oI+iG8EO2l6k8XhMJjjD2ANKaInRiLd TPku4flWsP1aGSGmf5wx+kpHCg== X-Received: by 2002:a05:600c:2905:b0:3fb:ba04:6d57 with SMTP id i5-20020a05600c290500b003fbba046d57mr4419571wmd.5.1688221211966; Sat, 01 Jul 2023 07:20:11 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id l17-20020a1c7911000000b003fbb9339b29sm7060737wme.42.2023.07.01.07.20.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Jul 2023 07:20:11 -0700 (PDT) Message-ID: Date: Sat, 1 Jul 2023 16:20:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/1] thermal: sysfs: avoid actual readings from sysfs Content-Language: en-US To: Eduardo Valentin Cc: "Rafael J. Wysocki" , eduval@amazon.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria , Zhang Rui References: <7616fd9d-aa0d-2ecd-8751-894b1c9073c0@linaro.org> <75eba2da-593f-f3bd-4eac-5155fcf5aee8@linaro.org> <2d59de0d-5011-780a-cb6c-94e6e2b74156@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=-2.2 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,URIBL_BLOCKED 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 Eduardo, On 01/07/2023 03:38, Eduardo Valentin wrote: > Hey Daniel, > > On Fri, Jun 30, 2023 at 12:11:25PM +0200, Daniel Lezcano wrote: >> >> >> >> Hi Rafael, >> >> On 30/06/2023 10:16, Rafael J. Wysocki wrote: >>> On Wed, Jun 28, 2023 at 11:10 PM Eduardo Valentin wrote: >> >> [ ... ] >> >>> So what about adding a new zone attribute that can be used to specify >>> the preferred caching time for the temperature? >>> >>> That is, if the time interval between two consecutive updates of the >>> cached temperature value is less than the value of the new attribute, >>> the cached temperature value will be returned by "temp". Otherwise, >>> it will cause the sensor to be read and the value obtained from it >>> will be returned to user space and cached. >>> >>> If the value of the new attribute is 0, everything will work as it >>> does now (which will also need to be the default behavior). >> >> I'm still not convinced about the feature. >> >> Eduardo provided some numbers but they seem based on the characteristics >> of the I2C, not to a real use case. Eduardo? > > Why I2C is not a real use case? What I meant is "I2C is slow, ok. But what is the setup where the problem arises?" -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog