Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3533985pxj; Tue, 15 Jun 2021 03:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ0OEbpGxAvWtteDfGsGdYimxYIShNO8HjKsD8TfjsCk3SIksvgINQK22CguqkW1Qnt9k5 X-Received: by 2002:a17:906:d1d5:: with SMTP id bs21mr20276534ejb.378.1623751590063; Tue, 15 Jun 2021 03:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623751590; cv=none; d=google.com; s=arc-20160816; b=wH4Z7Q9ij5eyjbUni5DttXmy8CywUa0ZvlZqAHkoolOP61qzKqO+xY8qMb4UbnipBM xAOhur344/JhJU3mgIYXEeKUkESmUFYc7kEwqGXP3ydtKM0Yk90SEpFm5NORDT8wLSLg IRAuz9D4gxHaAIa2SifZbvSYo27lY6SDZP+aOdbv0Duxk0XFkEJNQlG0Zq42u2ECmBuk OaJq624JUN+Bi3P7BGVX+wTatemn82VbU5O6xULW/1ePdAn8P+QotHNV2dM3lCLRFgyC /j4/lx3l2/FHgExYVEPV2mQWOIsQ7QQl/SqWuSZ7n+4d7myoWZ516aZwpT/KUGNFWTS2 xj+w== 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=KRA5JEo2f5eHwlGrBe+x1mvEfYhwDU4OUZncstnbx6M=; b=rLPd3NZ0vP339G7BBNSPqwatSs01zzO1EQfsQHez9nn5vTDqbx/rRg6wCB4WlXCLl8 DPxZiLpdAkyqusJKexcfolegxS5GPKj15niWgnwk+whyVVN4M9nSaElWQRexBslCSItV Z0zVxTif3JxyKw6m5d6BGsrPAn9VUFE8eUBkcsy3b4PZuUxXyNCCfIOVm6JyXz1gUV8d t9lKrE/6/LmNEw4ZlIqs4UVuzbsBY6dYPZkTIKQF9hDtsvm8N0rCHYzWDYD/0y3qbDS8 8p7IIeisNa6TjR/NijmRvzXxWcy0IgrDUYpwIEUiraCW43UJtBSOoU8tJKZE3sFfaEg4 HeNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=abmrGACQ; 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 q24si13870082ejn.752.2021.06.15.03.06.06; Tue, 15 Jun 2021 03:06:30 -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=abmrGACQ; 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 S231425AbhFOKFk (ORCPT + 99 others); Tue, 15 Jun 2021 06:05:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231428AbhFOKFi (ORCPT ); Tue, 15 Jun 2021 06:05:38 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A4F3C0617AF for ; Tue, 15 Jun 2021 03:03:32 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id i94so17598413wri.4 for ; Tue, 15 Jun 2021 03:03:32 -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=KRA5JEo2f5eHwlGrBe+x1mvEfYhwDU4OUZncstnbx6M=; b=abmrGACQlQt5ZE+gApEShYt+RvKsyhEfHJfi5/vT9I3RDbrTqQzmrzTOkQPnsUni7U SzTFW7k7Vqv1fM3wfudlLmKmInuXzgUSrB39C8A+sKFdNR5KYvT9Rtik5Oau0y3aTfZy Mi+akzTENmyInfIMYQi7J+oITLgpkxVU8Wqbi5ixtXTky6kMVqnOuirimUH2PRPZBctc IElKBN1eVyo1Yq94sHzpeibE3VGjXfXlBO3eEU3qFCvAZYROE1bUyC3ccz6XT8cuYNOP mkJ464ru+HtEY6R6eU7nFXJyILxUoYN9HVgfWqZxVqSFCpTajJOQyMubzMqQbCv2hA+w py5A== 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=KRA5JEo2f5eHwlGrBe+x1mvEfYhwDU4OUZncstnbx6M=; b=YQ6S+v0h3zzUTpB3tpM/Jx5pOsAn4+vLQqyqmkNaXcoF9f4gu4Yc/SRq5cqeEJS6rq VSIaEo/jlzi7wx8bMyW+Kunlj9xHs2WCkmu0VeAEXO0q473DLQr9X5OgeaKUaENvbXk2 XXJpv0FGdyIuQCp+E7hJCPkJs8Rk4acWwTKRMEvP8xCCMehzhDZ6DrNOyOQHHxyCanhR HD7TUkV/XBj/I4adGCp51Eh9IUCI3VZa+6AugyNj+zDnVxPejfleJV2zNAFTUbR/2GQK Eo0+5kRkJ8m9FmzXOvsW3bHeKxwal2IdBR+0Q02a/Zbc2bwE/GJPBA3hgdaex5aL4W2B WfPg== X-Gm-Message-State: AOAM533HmnLOQjoC5nTdevuSdutZECfeUhRjhN1ELgVCiUqRAK3HStjy 2uTEUHWvtOSZWkt3iNl82fg4OA== X-Received: by 2002:a5d:6208:: with SMTP id y8mr16865170wru.119.1623751410645; Tue, 15 Jun 2021 03:03:30 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:613a:6939:5f7f:dceb? ([2a01:e34:ed2f:f020:613a:6939:5f7f:dceb]) by smtp.googlemail.com with ESMTPSA id j131sm1785395wma.40.2021.06.15.03.03.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Jun 2021 03:03:30 -0700 (PDT) Subject: Re: [PATCH v3 4/7] thermal/drivers/tegra: Add driver for Tegra30 thermal sensor To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Zhang Rui , Amit Kucheria , Andreas Westman Dorcsak , Maxim Schwalm , Svyatoslav Ryhel , Ihor Didenko , Ion Agorria , Matt Merhar , Peter Geis Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, Viresh Kumar References: <20210529170955.32574-1-digetx@gmail.com> <20210529170955.32574-5-digetx@gmail.com> From: Daniel Lezcano Message-ID: <6f2b6290-095a-bd39-c160-1616a0ff89b1@linaro.org> Date: Tue, 15 Jun 2021 12:03:28 +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: <20210529170955.32574-5-digetx@gmail.com> 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 [Cc Viresh] On 29/05/2021 19:09, Dmitry Osipenko wrote: > All NVIDIA Tegra30 SoCs have a two-channel on-chip sensor unit which > monitors temperature and voltage of the SoC. Sensors control CPU frequency > throttling, which is activated by hardware once preprogrammed temperature > level is breached, they also send signal to Power Management controller to > perform emergency shutdown on a critical overheat of the SoC die. Add > driver for the Tegra30 TSENSOR module, exposing it as a thermal sensor > and a cooling device. IMO it does not make sense to expose the hardware throttling mechanism as a cooling device because it is not usable anywhere from the thermal framework. Moreover, that will collide with the thermal / cpufreq framework mitigation (hardware sets the frequency but the software thinks the freq is different), right ? The hardware limiter should let know the cpufreq framework about the frequency change. https://lkml.org/lkml/2021/6/8/1792 May be post the sensor without the hw limiter for now and address that in a separate series ? -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog