Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp265122pxj; Wed, 16 Jun 2021 01:41:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxE+Ko8Bokw09wb4F6n2WzO1+F5qqKeo+WRqccyoWQ23g9uAxPAg/wlW1shkdHM8gBgWgat X-Received: by 2002:a6b:7d05:: with SMTP id c5mr2709889ioq.148.1623832905722; Wed, 16 Jun 2021 01:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623832905; cv=none; d=google.com; s=arc-20160816; b=kmIdRQaqiriN6709Rzddz+fgGHICjHjfEsFqkbTrU0zjnkzVqrxFqOJYSvb5k9MT2D dY4/f15dZOyrkw6DvEEeg20oOj+Q/ANjteFogFaUM3J7KQnB8PDk5gd0CU+ORuPeTZ/L wv1NXN9x3opYVNLmTlLA1231sjY72/vCYztez0yJJq7g7a9Ob2ea+fMZ6poOl64l+mdi 58KHlZfTynvieYPxbBksYqvxmHqCr4kFyPXA0K5IC8K4BnSuiZiyi+vHidEHtAKr6PBL EGyTEfAEizauuY11GUXUCkTDhMdwGfTID6NM5Ue+hr3iON411ub4fXFHIJVJQOgWpNew 5pcw== 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=6YpVa0+q2Eocwluyky2FGEKu1f+VgEpX5T1fuuU2+uE=; b=DdoM0FrTpzJE3pqvUc6nV3rLMtw8kF4b8Y4OS18FNZZLB7qg+VaCKpOBv2ZPjMmomX D8UJ7EvDp92hAB9uR/sMz9TRGoXi8iLMYh2OWXhgzTTQL1XuSTUfSNuT7z7DFOdV4RIT 2P2/NERSuo9QRIv0rhpkB9sMGNQ2/59Pafn6vdLfnSfUJ2yMf3dihhGVrP8l5CBfGLS4 yTHCbZurl9/fujrdAJFaWni6FdtH7LZi7mli4IIVOTzhwqKL0bAAQc6IaWD5VwcZ0Qyk FIF2CIKow4sRKSNqocyqL2tnGdguPrABjA4pyZcAVSQP9hk1+3acJ4EpOesHPDvAZzKI 4Q+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dJOVRj2Z; 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 e4si1807238ile.128.2021.06.16.01.41.31; Wed, 16 Jun 2021 01:41:45 -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=dJOVRj2Z; 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 S231589AbhFPImB (ORCPT + 99 others); Wed, 16 Jun 2021 04:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231318AbhFPImA (ORCPT ); Wed, 16 Jun 2021 04:42:00 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE3C4C061574; Wed, 16 Jun 2021 01:39:53 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id p7so2978330lfg.4; Wed, 16 Jun 2021 01:39:53 -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=6YpVa0+q2Eocwluyky2FGEKu1f+VgEpX5T1fuuU2+uE=; b=dJOVRj2ZEWQ7cxt2SkiE47Prb//6AoCzTina/QehwYubPpmPxEMItVLdStvydhXm35 dJP97otG9TIkarIptGxLacxgLnUp0djzWcu3xBeuK5ehvGlqalZ70F4uMfnGt8HmLnbS qncyWVSv75bBpoKNsJ6jojmQdPMNQErj/uHUChHiH1O/YPS5OCizRzCcSjax5zJ/6XfN aEzz/LKRtP2Wv3VNzR4n2JP2RcDxP4SY42fpxrb1fqKoMU3O6f47rkkn6dBh0S5vMfUc fUhYkVol1TCvOqSHLejUDhVrjsnriBrKoHOn+AZqcF1/jBQjggK/NZC/rvpTkyNgq1/Q Ej8A== 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=6YpVa0+q2Eocwluyky2FGEKu1f+VgEpX5T1fuuU2+uE=; b=jZl9PJBQGf55JH1X3Wu8eMJYwMw1qE9dzcuffpeJKSfX0JA3n0kBiBXXVhIdJALBg9 a+1IR3UoWieJ/Ks8QWeiyfnCRXARYmls8nx7RHgyVo1PkemIxNKfW3Atcee/OPYLQrUA YfmKIsfxa4tWBr51fQLH2dsSQQeWpECFDCIyWKgcPWLd+Xgkblu1+mSBwW6Y3MWJ2RBm FiqQLRSEqskUTLbfGw7AFfTNBAsf1qCMoGa71GRUDd5yciqEhdA2e36SmZvPs7PeSiEc XeDU7L43AP06M2ZMxReB5foqQ4XGWXzvJIBnAUAJ0L/+Wqun8FbNtPPLsFg5aTlNRAp0 NzZA== X-Gm-Message-State: AOAM532K3b70OnFy3hdoOUIkL6tbhW5UcneBUANOHbbMHUNBTwfR7P29 GJwh5oXB6uU1Ld206W9S7rwbFTCB5gk= X-Received: by 2002:ac2:47eb:: with SMTP id b11mr2938549lfp.455.1623832791520; Wed, 16 Jun 2021 01:39:51 -0700 (PDT) Received: from [192.168.2.145] (94-29-31-25.dynamic.spd-mgts.ru. [94.29.31.25]) by smtp.googlemail.com with ESMTPSA id k19sm175246lfe.25.2021.06.16.01.39.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Jun 2021 01:39:51 -0700 (PDT) Subject: Re: [PATCH v3 4/7] thermal/drivers/tegra: Add driver for Tegra30 thermal sensor To: Vincent Guittot , Viresh Kumar Cc: Daniel Lezcano , Thara Gopinath , Thierry Reding , Jonathan Hunter , Zhang Rui , Amit Kucheria , Andreas Westman Dorcsak , Maxim Schwalm , Svyatoslav Ryhel , Ihor Didenko , Ion Agorria , Matt Merhar , Peter Geis , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , linux-tegra@vger.kernel.org, "open list:THERMAL" References: <20210529170955.32574-1-digetx@gmail.com> <20210529170955.32574-5-digetx@gmail.com> <6f2b6290-095a-bd39-c160-1616a0ff89b1@linaro.org> <20210615102626.dja3agclwzxv2sj4@vireshk-i7> <595f5e53-b872-bcc6-e886-ed225e26e9fe@gmail.com> <4c7b23c4-cf6a-0942-5250-63515be4a219@gmail.com> <20210616080310.vhvauvo5y6m2sekz@vireshk-i7> From: Dmitry Osipenko Message-ID: <96bf59af-20b6-b706-5ff0-fe70f9eba827@gmail.com> Date: Wed, 16 Jun 2021 11:39:49 +0300 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 16.06.2021 11:30, Vincent Guittot пишет: > On Wed, 16 Jun 2021 at 10:03, Viresh Kumar wrote: >> >> +Vincent. >> >> On 15-06-21, 22:32, Dmitry Osipenko wrote: >>> IIUC, the cpufreq already should be prepared for the case where firmware >>> may override frequency. Viresh, could you please clarify what are the >>> possible implications of the frequency overriding? >> >> The only implication is software would think hardware is running at >> some other frequency, while it is not. Not sure if something may break >> as a result of this. >> >> The scheduler's view of CPUs will not be same though, i.e. scheduler >> will see capacity as X, while in reality it has changed to Y. > > thermal_pressure is used by scheduler to balance the load between CPUs > according to the actual max frequency. If the thermal pressure doesn't > reflect reality, scheduler will end up enqueuing too many tasks on a > throttle CPU. What if all CPUs are throttled equally and running on the same frequency, will throttling have any effect on the scheduler decisions?