Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3346561pxk; Mon, 5 Oct 2020 07:31:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0te86/xpgvMF/ol8j6lkMfP6QtTjw30XUJk+gqb7JPzXC3RyIi/g4SvXSqajpAyQLaTBe X-Received: by 2002:a05:6402:1711:: with SMTP id y17mr17797277edu.345.1601908317697; Mon, 05 Oct 2020 07:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601908317; cv=none; d=google.com; s=arc-20160816; b=QwKiZm/fLWwL+hrTuaYrAys4YmKTdgrFoX5+heljydtwKmOrgz6SoFMU5fkBoZtL0B ANEbQNmPqWJ6eASfG9qQR7zub0EsKOfecMhXoDQYjCUGefufJ0m/irKKtesSV0nd60ov 0M0+NNxfudSj4M857w5afCWW2qKGgNBNx8gADVZNYfV/gDfGR8Whf7vxni9NDPeYy4tk cuinP7zXWB5rzaTZF1nk55vmgbsF/qWMjMW9h7DeYFDzwmkZZL/AJrFElcPvO3EGw9qa IyNX9zHKwlOfDk75ZaOmBPxd42LFEQgj9e9rqPP5RO56WBTHNvV39xdNGAHS+kCoTLdZ epTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=/DTk/l8h0Z59twinYldLgQdELHZ5yboeSG3Q/928A38=; b=wuXrrrtz8vfbpRv08lUI1vJEgn0rfI3xddIY25bGb3i168F+tV8vKesom6GMWHaRf0 5y5ArD0F22at8HZGietVT+jZkffezBeTndfX+RDyyNf8RvBrIoVtxAQFKXfAZ2+5zm0k RQ8XkSlTUdrH4JTKzfZegjKybS18bgHeGjosyVEIzJaaivaL6qn3U18OfHmIZtWzgksk 1jUkIdtDOONktNVUboOKtWRRk0fO2g5fJ/xkg8HDINDCCQuL4wQlxAumnyuJF6/Ar1QZ vZ7jEIFc5t2cYKHRpHn6ILwrotH5enlw1c93QCyW7qGcQzqOB44WR4HwZacZFE349Pl2 Pj3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YVgtpS2I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt10si7159492ejb.461.2020.10.05.07.31.34; Mon, 05 Oct 2020 07:31:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YVgtpS2I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbgJEO34 (ORCPT + 99 others); Mon, 5 Oct 2020 10:29:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbgJEO3z (ORCPT ); Mon, 5 Oct 2020 10:29:55 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DC0AC0613CE; Mon, 5 Oct 2020 07:29:55 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id y11so11137725lfl.5; Mon, 05 Oct 2020 07:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=/DTk/l8h0Z59twinYldLgQdELHZ5yboeSG3Q/928A38=; b=YVgtpS2Im87NBVvYDWqYZ54DiFB/wcXshV0rK6D8siVfVSTFPWMpoQJkq6SyVreIVq p7K1YLsSmpitiXqK/QKV8QRpJSaOiAr6r9xbwRRFn6usbS3sSBeCATuxh7O9+zjwjLEz NvpnztuMdZoSdY6oawmG7FoWBXSN6Zme9vKL92s2AhNYZKU5OpNzbifBwyZ0j5VBE4VD +oPQslZrBXCluUnmzBl3zNlf68Ez4KJwT44p1s8ixjF+sSjOsjcnoS58k3JGiKPZNVOA dtYcc/Yc//9u5+5ZdyPbfa9LAHDvFlKwIDnk/eXVnAMba+5PsHwt45ctlKlRBfCiLcUM 87Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/DTk/l8h0Z59twinYldLgQdELHZ5yboeSG3Q/928A38=; b=H5n/R0M/xsRjORqwwZnBn715x1QOtd8zlccgwIq4VipXbkWIJ8jrdOTcLmy3/r6/UT cXYAnGf4JhSlppgOdfqiySY9IvcV9m9aT8mxsjTKoeellGd0TOrmF+XHxQtRY6RspDDH sbdXbkNNQmjpqpNqFJ0StKzoy7Zw2SofihckSi5m++8KL010i1wmejQIwV74RbJVUevA 2tIysSj1ZXk4LLwpY9mGDDsTwvVl0x8Seoxw/LZPJX0jeRGgyX3/2rmPnbzqZ06p4xMp 7DFwglgO61LOfVpWeZsGefLaAoO9LfGu7OB7j7Xhp30PnRTpXsJ28b/INF28443z+n85 uizA== X-Gm-Message-State: AOAM531oVmKV6JUtsTEqGzQ4DZlr8U/Y8uUk2OhUA+8K31hJ0dxHrtVW lbLwLE0z0Kov1EEOKpNQedY4gcsBSIM= X-Received: by 2002:ac2:4944:: with SMTP id o4mr6162418lfi.374.1601908193378; Mon, 05 Oct 2020 07:29:53 -0700 (PDT) Received: from [192.168.2.145] (109-252-91-252.nat.spd-mgts.ru. [109.252.91.252]) by smtp.googlemail.com with ESMTPSA id 26sm175912ljg.30.2020.10.05.07.29.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Oct 2020 07:29:52 -0700 (PDT) Subject: Re: [PATCH v3 1/3] ARM: tegra: Add device-tree for Ouya To: Peter Geis Cc: Rob Herring , Thierry Reding , Jonathan Hunter , Matt Merhar , Stephen Warren , Bob Ham , Leonardo Bras , Michael Brougham , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201004133114.845230-1-pgwipeout@gmail.com> <20201004133114.845230-2-pgwipeout@gmail.com> From: Dmitry Osipenko Message-ID: <6f5fad13-d570-a923-ff40-45071709c296@gmail.com> Date: Mon, 5 Oct 2020 17:29:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 05.10.2020 17:22, Peter Geis пишет: > On Mon, Oct 5, 2020 at 10:02 AM Dmitry Osipenko wrote: >> >> 04.10.2020 16:31, Peter Geis пишет: >>> + thermal-zones { >>> + cpu_thermal: cpu-thermal { >>> + polling-delay = <5000>; >>> + polling-delay-passive = <5000>; >>> + >>> + thermal-sensors = <&cpu_temp 1>; >>> + >>> + trips { >>> + cpu_alert0: cpu-alert0 { >>> + temperature = <50000>; >>> + hysteresis = <10000>; >> >> Hello, Peter! >> >> A day ago I was tuning thermal zones for Nexus 7 because found that the >> current variant is a bit too unpractical. In particular temperature >> hysteresis should be small, otherwise cpufreq could get throttled >> enormously to the point that device becomes unusable. This is an >> active-cooling zone, but it looks to me that hysteresis is a bit too >> high and should make Ouya much noisier than it could be. >> >> I suggest to try to set hysteresis to 0.2C here, i.e. hysteresis = <200>. >> >> I also suggest to bump the temperature threshold to 55C in order to >> ignore temporal temperature spikes because CPU temp should be about 40C >> during idle and then it may raise quickly for a brief moments during >> average usage. > > Good Morning, > > The Ouya has a rather large heatsink with poor conductivity and a > single stage fan. > The fan is not terribly loud, as it runs at a rather low rpm. > The temperature at the cpu tends to be much higher than observed at > the heatsink. > I've found that a low hysteresis value leads to a situation where the > fan is constantly toggling on and off. > I actually burned out the power transistor driving the fan on my first > Ouya this way. > The high hysteresis value provides a good balance of fan on/off time > under most loads. > The temperature threshold was chosen for this as well. > >> >>> + type = "active"; >>> + }; >>> + cpu_alert1: cpu-alert1 { >>> + temperature = <70000>; >>> + hysteresis = <5000>; >>> + type = "passive"; >>> + }; >> >> And here to 0.2C as well. > > This value was chosen to protect the CPU in case of fan failure. > Again, with the large heatsink and poor conductivity we need to > maintain throttling for longer. > Otherwise the cpu temp will overshoot and risk thermal shutdown before > throttling can prevent it. Alright! Then I don't have any more comments for now, thanks :)