Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2734784ybv; Mon, 24 Feb 2020 10:33:23 -0800 (PST) X-Google-Smtp-Source: APXvYqyfnI7qDr+EqSIJh/nhqltwdUUkgifAvjU5lBC/Iv58caHSRy4q/ZRgezh13f/QfvZDhzz8 X-Received: by 2002:a9d:62ca:: with SMTP id z10mr24195744otk.263.1582569203305; Mon, 24 Feb 2020 10:33:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582569203; cv=none; d=google.com; s=arc-20160816; b=zQ6g5fYRFgpuq7rOebUNU1Fa5z9utDxJxvc2WaH1wbHwIG5fyQ6w2D4xLyZ5r5X8zS P7Tm2Gzn5VgKPZXiT6gXNZLRMlcMMMbdE4+yL5tWGd884DMc9C0CC0Xiweq/Ytfv7/IJ ZlyUwjhBZ8CmjT/aSIUN0qYVaApveOXXvltC215iil7tpW8U2pWme1g3RgSCdPjxaV2g BYMYGjYQvE2uyJgLFnhoaMu67r4ztMvzI+mlqRztUYgGmD7KOP2p/srOboqAfJ2fWy8w iwH2CmHRJilJUgUGd1fEU2Cpr26s1WPSV0ZeqmFVgzglQl8kxtzlXCBsj54BLX+Ck0xK D1dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=MCpXB20t8Kt9wKftQd1Z/Z5wMRL6un0GUWtPS29Ek8E=; b=Nl1eR0zOwjjvTxdpmVy8cSsu3OcQcF+UK9JCfmPULEG7XfHlz/UrEFcwZdyCS3swrQ mruJu1sj+EcoWiL/kKDUjkoBwHousVFVwSxAX4pK7XIwlCN0Cj1NLZ+HHg1gvjf5QrEH x65zVVGmmTXCp+PeNvHPWvdUrHMOw4pfq6n2NZhlsSShvH0LuwBhldXkQvMEmWsfYxy1 6xA1xcmc0gAzyEosMXuDC128RMjXj+fSINWJPOiSXhXCQM7MUVao/dHAQUM1PJkOqaGp Rbmq2p+CVqf3NJWBvJfcerdIdrLxQJj+1TYxNofst0bwVIHgGnll+2sNr096fSV4fnw1 HWNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="L3/tRvvN"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si5059358oim.195.2020.02.24.10.33.10; Mon, 24 Feb 2020 10:33:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="L3/tRvvN"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727709AbgBXSdD (ORCPT + 99 others); Mon, 24 Feb 2020 13:33:03 -0500 Received: from vps.xff.cz ([195.181.215.36]:33236 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbgBXSdD (ORCPT ); Mon, 24 Feb 2020 13:33:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1582569181; bh=9mqkV16PsZRdF8vb7JAmbDN3tZ6Pelbha30uweql6Dc=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=L3/tRvvN9VGe+SIY9zKlDypNgHtG9CvMG6/DnGGu/Pj5Xoykbk7JMbxD4PZ5Z6HGL uthPS2w4LoCkM8jw2Ec6jipbasGJ6RnXPbqAzUu1aYXv8/rQ4xhC+4TRf/dXAbngHM 6Tc/o3+stmYbsNKoyrsPJmEvUHT1htQRM9Y00k+A= Date: Mon, 24 Feb 2020 19:33:00 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Daniel Lezcano Cc: linux-sunxi@googlegroups.com, Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Allwinner sunXi SoC support" , open list Subject: Re: [PATCH v2] ARM: dts: sun8i-a83t: Add thermal trip points/cooling maps Message-ID: <20200224183300.jnclticehmc7uevs@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Daniel Lezcano , linux-sunxi@googlegroups.com, Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Allwinner sunXi SoC support" , open list References: <20200224165417.334617-1-megous@megous.com> <2e4213a6-2aaf-641c-f741-9503f3ffd5fe@linaro.org> <20200224172328.yauwfgov664ayrd6@core.my.home> <20200224173940.huwpaqhrc5ngbmji@core.my.home> <25a5dfb2-93bb-90c3-8156-0cfbed1f9995@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <25a5dfb2-93bb-90c3-8156-0cfbed1f9995@linaro.org> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 24, 2020 at 06:56:18PM +0100, Daniel Lezcano wrote: > On 24/02/2020 18:39, Ondřej Jirman wrote: > > On Mon, Feb 24, 2020 at 06:23:28PM +0100, megous hlavni wrote: > > > > To be more clear, new temperatures are available from the thermal sensor driver > > at the rate of 4 per second, which should be enough to do quick adjustments to > > the thermal zone/cooling device even for quick temperature rises. > > > > https://elixir.bootlin.com/linux/v5.6-rc3/source/drivers/thermal/sun8i_thermal.c#L442 > > > > There's no slow/fast period depending on whether the cooling is active. > > It's always fast and no polling of the thermal sensor is needed. > > Thanks for the clarification. All sensors have their specificity. > > Does the sensor allow to create a threshold temperature where an > interrupt fires when crossing the boundary? That would be interesting > for performance and energy saving to disable the interrupts until > 'cpu0_hot' is reached, no? I think so. I don't think it would affect this binding though. It would still require no polling, and thermal driver would probably just have to be updated to get the relevant information about trip points from the thermal zone and notify it of changes/trip point crossing. I don't think it would affect performance or energy saving much though. 4 interrupts per second is barely noticeable, and there are much bigger fish to fry, when it comes to power savings on A83T at this point. thank you and regards, o. > -- > Linaro.org │ Open source software for ARM SoCs > > Follow Linaro: Facebook | > Twitter | > Blog >