Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2181748pxj; Sun, 13 Jun 2021 11:21:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEUBUjO3lvfYWFVZbYcTTi/zZYZjI6kVA4qFTEvLcyqR3qxxWzRPKYh2JEqNlzbHTOf2Vb X-Received: by 2002:a17:907:9710:: with SMTP id jg16mr10220271ejc.366.1623608504515; Sun, 13 Jun 2021 11:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623608504; cv=none; d=google.com; s=arc-20160816; b=mYcYkNz9ZyZC/aGxvYWMtGOS24Pk20tLOO1RVlFAdhFJ64v3E6m5ZZxhsy6ccdnEya 2rat2wjTCDD+Atf9/rKejv/SsdIAidE8fmUu5Ls9weORuwsWXahTl615J5vDc8axwp2g Weyvro6QcK5EB5yQCz0jJz7PhxLXjrbB9uAI9ex5mQpEft4U29G+neXsndmyh3ydW4eP tDzbxxAH5ag0emII2hPFItUVdbWzRW0yW/4zXqr/oOpnt9DSFy6TLTgd//PhQSSSYbXm ayvCOu3oC3AT3xMDE+YDdcV7XqqcTQepx4axjw1UK+Mqv3MOBpEcokp3MtNYWM7oFkbh lwIg== 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=X4d/imazEagkhQ425TvhHIJ+mpNOn1pVq8jS+CKK1QM=; b=mQz5rU4/cdHdJomVAsWSoSQgeQ2vt7GNIq+p17FwmmkMES2eL3/AwJyp1zZPawGFVD UL5a/rN5zQmgBHeCbww+MhWMorPhHX5By5f0pZiwI9BYUrVa2GnJtEgqMe7GTGM3Iuxz txT35CjXAmI8FsrTLQmVHSD9Zgb6Vtni9Y7Ew3Is9viQ3iAxZkg/pkyJwVQCuIJE8B5M lhSzyV4kCMVTmTM7f6FQf75RMuw99fHyOm6d2cUmbUOZLXPntHA4mWyORhjbdtqdBImG lAl6alOXdz6tHd4T6EHPUbozaTAmfcyjXJZVbfIo94r1ygWFqIkTGfF8mFm0CzRS1u3i an9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sOPRIa6a; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si10080533edf.38.2021.06.13.11.21.19; Sun, 13 Jun 2021 11:21:44 -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=@linaro.org header.s=google header.b=sOPRIa6a; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232003AbhFMSVr (ORCPT + 99 others); Sun, 13 Jun 2021 14:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231997AbhFMSVq (ORCPT ); Sun, 13 Jun 2021 14:21:46 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3448C061574 for ; Sun, 13 Jun 2021 11:19:35 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id a11so11874237wrt.13 for ; Sun, 13 Jun 2021 11:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=X4d/imazEagkhQ425TvhHIJ+mpNOn1pVq8jS+CKK1QM=; b=sOPRIa6agjbd6Bh2PwJOISVNR1sjEitwWIIAZ81ZrECozWeaBMeW/LA2nTc2yNq+Vz /bgEbvjNgIekifWYgvE9iu+7ijfNjakVXM9ys8KBRa2paGr2E2K9hExSPhwbA2zCzbOG mI1KNVuLKoKQut1SIkKlgXU+19qWJiM32dvkhoeM/FBCz0VA97Z3vJYJOJSM65c/V1Lm xOpMGe+EJVvEZmm4r3AHSXTrGqHMNdQncxnURBAIF8bIjcp/MeCfLOuPFn056Bu3C0xD CvBCjr06aBM/kzIzle+qQGcDSYQXhwVJ9EYwqS50gagmenLqp3KqT8t+NQ2XvYiVMxGa xUEA== 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=X4d/imazEagkhQ425TvhHIJ+mpNOn1pVq8jS+CKK1QM=; b=Pp0yfA/dlDXEWVJ7z1IkFwlKannzCHVvZvznd0uF0ZOY86NQHwbaXh7wrctfsM+070 05hmTgaecxAdVVjS73ZCh/s9Rop5FVnQsgHVldUC79zetrvN2NKtDp7e751Vh3gLIvWK M45qsKkc+4L0P0LW0pEXRSJ3kanRsZnBKG0DjBdNtfRB1GKhzf54a6t7Hwj/yOGsV6rO nJXt1j4OeYM/pOSQTn8ElBSktbOquvgViT6haAs/2h+JIvr/whC3f0cJ/yvC2s6M530q 2YTHrHzqpbDVZWYIlDSzjfpxaPs0NHZ+V6ORMimN8M7GOa/Eg8wNDE1O6Skk+zNfCf1M g1DQ== X-Gm-Message-State: AOAM531vym/cE09t7Yxd1tlDXi4t2UjMTgbp0ZTGdDnuS//qcKU0oRQD uUEiRwe3ajTpi6ZWFlBa9/HVct8d3P8UM+8l X-Received: by 2002:a5d:59a5:: with SMTP id p5mr14353911wrr.27.1623608374047; Sun, 13 Jun 2021 11:19:34 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:28c8:8dc7:5312:94e2? ([2a01:e34:ed2f:f020:28c8:8dc7:5312:94e2]) by smtp.googlemail.com with ESMTPSA id v8sm14992443wrc.29.2021.06.13.11.19.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Jun 2021 11:19:33 -0700 (PDT) Subject: Re: [PATCH v1 03/10] ARM: tegra: acer-a500: Bump thermal trips by 10C To: Dmitry Osipenko , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Thierry Reding , Jonathan Hunter , Agneli , Paul Fertser , Svyatoslav Ryhel , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210510202600.12156-1-digetx@gmail.com> <20210510202600.12156-4-digetx@gmail.com> <20210514211601.GA1969@qmqm.qmqm.pl> From: Daniel Lezcano Message-ID: <1abadc69-1dd1-5939-c089-37a84be4781b@linaro.org> Date: Sun, 13 Jun 2021 20:19:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 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 On 13/06/2021 02:25, Dmitry Osipenko wrote: [ ... ] >> You should set the trip points close to the functioning boundary >> temperature given in the hardware specification whatever the resulting >> heating effect is on the device. >> >> The thermal zone is there to protect the silicon and the system from a >> wild reboot. >> >> If the Nexus 7 is too hot after the changes, then you may act on the >> sources of the heat. For instance, set the the highest OPP to turbo or >> remove it, or, if there is one, change the thermal daemon to reduce the >> overall power consumption. >> In case you are interested in: https://lwn.net/Articles/839318/ > > The DTPM is a very interesting approach. For now Tegra still misses some > basics in mainline kernel which have a higher priority, so I think it > should be good enough to perform the in-kernel thermal management for > the starter. We may consider a more complex solutions later on if will > be necessary. > > What I'm currently thinking to do is: > > 1. Set up the trips of SoC/CPU core thermal zones in accordance to the > silicon limits. > > 2. Set up the skin trips in accordance to the device limits. > > The breached skin trips will cause a mild throttling, while the SoC/CPU > trips will be allowed to cause the severe throttling. Does this sound > good to you? The skin temperature must be managed from userspace. The kernel is unable to do a smart thermal management given different thermal zones but if the goal is to go forward and prevent the tablet to be hot temporarily until the other hardware support is there, I think it is acceptable. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog