Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2313219ybb; Sun, 5 Apr 2020 04:24:59 -0700 (PDT) X-Google-Smtp-Source: APiQypI5Y8iZejlUy0u+exAaOdiYvIW31rGSK2wFkizm5NW4S4ZP8wMWGxH63nxyQL5jKxf/UtVJ X-Received: by 2002:a4a:4c46:: with SMTP id a67mr13606880oob.1.1586085899493; Sun, 05 Apr 2020 04:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586085899; cv=none; d=google.com; s=arc-20160816; b=aYofZ8BzSuYfbzuRssdtEhY4VcjQjoWU53hDdgyBOLhqYDT30ZRNoTpgL+nZFJaAGO YWTdV9zV6Hyvn8CaUxqSRT06qhzpFyp7iZZba9+r7Wx17OIMBBwVLejnBcw96LQ+tQMA NHIjqESC6bRqckDN5SP2maSbSAtkaXv9CNLUYSZ35j1Fhphpve1i+pC9n0tc44gXnflO 808q6TcKHhCBsPWZvQKSDcjxUcDWTI+2RmEmplQYZX4H+8VLNPO96UH93tyonlAajVLp 6j7uYjeRKrIB73mUK0OStFqSyCp5FmGflgRL0o+QFdm+xaA2g1OWtHiQefj+gEZA2kfP zSOA== 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=LvegHI6/5VuT6jrWzyl/YN2/voH1Z1aD7dRCzLIz2jM=; b=shU/r59RVvT5QTAiRpAELEhidlUTowNvSnVBYXZ95tqJ4PpVWFLARvX5o4TmW7jlLM 5p48+TFyTWqTpOot6w08LBMyXGep1jK/kOWSdnxItvg8Z1uYeUTzRvaDyXmzb+OjjLq+ s4B10zgrOjaZJVjqdEwIEeI2z7bq961JnCMVOpULujPhkxvJtXuKRbtqNblfz+8TCbdu d1qOioS7hGYBv95BLTNqh8Cg1JPwJQ3nsWnuxhHTy9hvTp9CUhTnV+rCKNJYGcg8hJ+W M/hP8ood7rApTCcl4Vr0GL9wTttgMpnV6bxwJ/1ZwSVD7Zfh2nh0xj+J95WTAIqx8HyX REqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=eW2k5TeS; 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 r17si6379467otp.254.2020.04.05.04.24.47; Sun, 05 Apr 2020 04:24:59 -0700 (PDT) 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=eW2k5TeS; 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 S1726616AbgDELYL (ORCPT + 99 others); Sun, 5 Apr 2020 07:24:11 -0400 Received: from vps.xff.cz ([195.181.215.36]:37452 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726388AbgDELYL (ORCPT ); Sun, 5 Apr 2020 07:24:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1586085849; bh=QY9Q7XhPkDOAvJvjFhI09s7uaGOfN/GI8egEfmyZajg=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=eW2k5TeS8ZTpaYYemfbZP+CQujIJUdxTTMBMfsdm58FNEmhftEgEqRJqr0nWSSO+z apZfhPIxZEVNsgdEgbVZIPUfRwvtgy9dNdH9HdavAbgnPesVTrAM/8g+GKrTjbF+L2 3+YcWOpPNMIZQ1eDXEIX5+flxI9N0TT29MajBtgU= Date: Sun, 5 Apr 2020 13:24:09 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Maxime Ripard , Chen-Yu Tsai , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi Subject: Re: [linux-sunxi] [PATCH 3/7] arm64: dts: allwinner: h6: set thermal polling time Message-ID: <20200405112409.gl6kn7cjakwludf6@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Maxime Ripard , Chen-Yu Tsai , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi References: <20200405104913.22806-1-peron.clem@gmail.com> <20200405104913.22806-4-peron.clem@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200405104913.22806-4-peron.clem@gmail.com> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Sun, Apr 05, 2020 at 12:49:09PM +0200, Cl?ment P?ron wrote: > Add reasonable thermal polling time for Allwinner H6. > > Signed-off-by: Cl?ment P?ron > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > index d4d3963705f5..c3e4f09f60ce 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > @@ -905,8 +905,8 @@ > > thermal-zones { > cpu-thermal { > - polling-delay-passive = <0>; > - polling-delay = <0>; > + polling-delay-passive = <100>; > + polling-delay = <1000>; > thermal-sensors = <&ths 0>; This is not necessary, and will not do anything useful, since the driver uses interrupts to update the thermal zone's temperature. Please keep the values at 0. With your settings the thermal zone would just add a polling timer in addition to being updated every 250ms via THS interrupt. The real thermal measurements are available every 250ms anyway, so setting a smaller period here will not do anything useful, and 1s period will not lead to slower updates either. Values of 0 mean tell the thermal zone to rely on thermal driver to update the thermal zone by itself (via interrupt) and to not poll. regards, o. > trips { > @@ -935,8 +935,8 @@ > }; > > gpu-thermal { > - polling-delay-passive = <0>; > - polling-delay = <0>; > + polling-delay-passive = <100>; > + polling-delay = <1000>; > thermal-sensors = <&ths 1>; > }; > }; > -- > 2.20.1 > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20200405104913.22806-4-peron.clem%40gmail.com.