Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp259777pxj; Wed, 16 Jun 2021 01:32:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxZHskh1JL5bfCklTt/nongArAT15H10Kp4zYTyN56Z19545mUn1VzrIrTiEgl6xzBsvIs X-Received: by 2002:aa7:da4b:: with SMTP id w11mr2823757eds.272.1623832360077; Wed, 16 Jun 2021 01:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623832360; cv=none; d=google.com; s=arc-20160816; b=lWy7XmwEJMSfPnpSFZs8W42/oiczK60ljv2fpTMop0q+UPkHfYfE2h/c0a0PATiD4o 7/mSlNb+gwa7eZowELoh9AsaNLm5U7LnIR6i6eYuZr0EzwZCjVFCmhDd10HC8QXFwSrs gg6rDdlQvc3xRx/IyxN3cbW2bZv6dkNGEuTesRvuVKzyDb+nLhjNtpE7QuC/Zco2Y5vt 6LpZ/EuhkoJ/oiN/ckx+spLWsgkD/w2SumSbh9G11qlxFWpEla5Qc50HG3SIPokuF3vP Q1P4T2p5Wn/Tetu7W4k5xWfaHoohJB80PsETVA47DYzfzNTS1J4yLsoli5z0GsM42sEQ jdeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Xtx0D/JQrf9peJgocm4/e4qMNluWA8H4pEhH1El3BzQ=; b=fEQCCerkgp9a5KavPqh89XGwCzTaKJTSbFxb798Hp1obICWk5TBpic7dKkgp+kDZKc RRnI+uReAidigofZ/0UujYFeEkFQPG6vBbxkrdnMrYuOs2CB+zknvnRS+sk93gJFWdXw bRYlHLeJiZPn/wYhVaTAK5AWvOCSqu4wQ/VAZGynVwTYqyFwZBjWHz7V9S5hxF7Htbim zNsP3ZIJE81UndQkfS2W59KzrRl2qJfduL20lOX3TYVshDwui5tB1VCSpFJDztLj7WjL ZC3wR20r47PBW/UG4Bs0IBOCiQZEVvg3suhWjBkIY8ejeLok99swLBFz22s3Dshur091 eZVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qvm89n4L; 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 ms23si1665470ejc.115.2021.06.16.01.32.17; Wed, 16 Jun 2021 01:32:40 -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=Qvm89n4L; 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 S232185AbhFPIdB (ORCPT + 99 others); Wed, 16 Jun 2021 04:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231335AbhFPIdB (ORCPT ); Wed, 16 Jun 2021 04:33:01 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63356C061574 for ; Wed, 16 Jun 2021 01:30:55 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 131so2675293ljj.3 for ; Wed, 16 Jun 2021 01:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xtx0D/JQrf9peJgocm4/e4qMNluWA8H4pEhH1El3BzQ=; b=Qvm89n4LVQwKeGewmMIEPJ1PlvtmWGAwftSotHUv7x7O9RfZMXC9T29Rlla2HxSb55 egZqJNE0Jhw0VcP/XKW/0E7Iu/hAoSqyMEoc7IcZUGOax4T6mgqVZCYKE20kUKU9jXo4 lxQoOhXPkPRlF60OYw78Hvs94dlrN/2/LsiS8Tr5EK5ibCCfPzss7xKCcwGzypj+IWlu tXc+Sxfsm+Hweg0l8ASZ2Sl6Qw/2ibBD+XRH7dHwnT8qZFxCu3UlPQ+IhzlvlYztHCAg G5khlJQoN2QiSm5MP3nethiPx1BV9+CIcRAVb5OmIax7UcI7opkTU8ebeUKI+lt2TMw3 O0vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Xtx0D/JQrf9peJgocm4/e4qMNluWA8H4pEhH1El3BzQ=; b=Ci01ALndXQ3LlpAKYXfbOiYfaLKvzm9wXoHwXSdbeGP+tsuTGw8eucWebCFJjJUPEz h2u/u5VJDzzpNLJDH+W9NYOMScg+3q3JaDzRVEsiLEtbwIMGy9aE3cI+BvcSWiL8A/z5 0wp1/69VtVnJi07reLctAav3CCMmatJ8y23RQDDD8rdVESDRVy2qBwceXsqH1zykKcgk rozUyAjFsqpJMTHGLpfSBHghZyn4d/IiLMJvSmWPUhqGOc5PHf38iYXgFB5TWmy1auE6 pobqGaTH3zNOjfy+pWMQugRNjKsykh6BKEdP8GqJ7YL1bzw9i0GPA+U52ngQXTyAr9ZG n7Kw== X-Gm-Message-State: AOAM530oSdPsrg1pCkkTgRui97gU9KgBoasmfKsrLcBp9uzePGvgV3J/ /Z01WkoPuMR9bn5BQoSx6WnRY+3wzozQYPtz+C+pGw== X-Received: by 2002:a2e:8046:: with SMTP id p6mr3393629ljg.401.1623832253740; Wed, 16 Jun 2021 01:30:53 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20210616080310.vhvauvo5y6m2sekz@vireshk-i7> From: Vincent Guittot Date: Wed, 16 Jun 2021 10:30:42 +0200 Message-ID: Subject: Re: [PATCH v3 4/7] thermal/drivers/tegra: Add driver for Tegra30 thermal sensor To: Viresh Kumar Cc: Dmitry Osipenko , 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" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > -- > viresh