Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27018C05027 for ; Wed, 8 Feb 2023 16:05:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230377AbjBHQFX (ORCPT ); Wed, 8 Feb 2023 11:05:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbjBHQFQ (ORCPT ); Wed, 8 Feb 2023 11:05:16 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 271484B76F; Wed, 8 Feb 2023 08:05:09 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id rp23so1256217ejb.7; Wed, 08 Feb 2023 08:05:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Tu8SJf3xEBufgW7POvLQ+bbbs+6bQN1vcLMAaGTCibI=; b=lsANXjT4YYeLKPfekDxuxNvAVgTcR5Cwj2R2gobvoM8V6zflsPzTwdbHamN9j3c+Dp qyufcdOKd4fsFzdyy1e4iQkrHkb0eRBB5wkbDuY6mwpcfSYIy9yPePUUQZRBPkXOoBPY lX3i1gdqwzKVboFYOrI71POx64m6R5gtaYBDZdF8NBfA60b+NwlmN1BO8zuu1XdVJotJ vifemm6G9DJLSHx638omaaoLmmd/ptuFJeFVpxbm/mJ2NCCN2Vxpg6K+20RE47CG9YvV dWKn0W1dPeZ3t5rfZBpPkjHRYtdMkFIOocmdOdS0vkBoS6l2Iy1AslrUdstO9oiRQChS mjCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tu8SJf3xEBufgW7POvLQ+bbbs+6bQN1vcLMAaGTCibI=; b=hfZBREPXyMtP9BrB5z12hSLBU6KX8mVC5IqqviNHhOVCnAlAsQMliVxnjn/2m2XV48 ZQE8EIVBPSYjAplQz8mCdYL8448eUIO7CwW/404uXRnxwvfLTyp/p232MvNT/LdaOkq2 1UJR7lkJu5u9ikTQHsLXRQPwvrIHqS9hgsGQlCFW15ePMBqA9UPLfkoQ9E5f1/0f7RPd zDLCjXRhL3vTcDdeWfkt/Yut5uDLSQYlF+oehg28Wf2/a+PHrq+G7Rnnl0R9ZZV3Vzua DK0qa2ojULWuqqTBNpkW1J7aF9hWipTZzy4G72QsexGyqBV2dfxMCuBHlnUtg+PBIKxv Q0Xw== X-Gm-Message-State: AO0yUKVN01FSwrpGSEpX+cC4D/Pbo0ZplIEij5SFIzYR9Mb12ns6z42y jT7w3hnutCyxQNVWxop6xc0= X-Google-Smtp-Source: AK7set94qkjdx8w8XK88as/CszW9GjQxMgGq6dqR+wis4aVIcrwdmcJPcXzYWCtcwYo84H/Cr7EwYw== X-Received: by 2002:a17:906:7c07:b0:880:2870:7849 with SMTP id t7-20020a1709067c0700b0088028707849mr8704801ejo.74.1675872307593; Wed, 08 Feb 2023 08:05:07 -0800 (PST) Received: from orome (p200300e41f201d00f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f20:1d00:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id 17-20020a170906201100b007ae32daf4b9sm8459666ejo.106.2023.02.08.08.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 08:05:07 -0800 (PST) Date: Wed, 8 Feb 2023 17:05:05 +0100 From: Thierry Reding To: Mikko Perttunen Cc: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Jonathan Hunter , Srikar Srimath Tirumala , Mikko Perttunen , Timo Alho , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] thermal: tegra-bpmp: Handle offline zones Message-ID: References: <20230207135610.3100865-1-cyndis@kapsi.fi> <706b3e2d-7097-356b-b96e-dd917ce048ea@kapsi.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3g8zk/YJd0AOEqHX" Content-Disposition: inline In-Reply-To: <706b3e2d-7097-356b-b96e-dd917ce048ea@kapsi.fi> User-Agent: Mutt/2.2.9 (2022-11-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3g8zk/YJd0AOEqHX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 08, 2023 at 05:35:48PM +0200, Mikko Perttunen wrote: > On 2/8/23 12:31, Thierry Reding wrote: > > On Tue, Feb 07, 2023 at 03:56:08PM +0200, Mikko Perttunen wrote: > > > From: Mikko Perttunen > > >=20 > > > Thermal zones located in power domains may not be accessible when > > > the domain is powergated. In this situation, reading the temperature > > > will return -BPMP_EFAULT and the temperature is considered to be > > > -256C for calculating trips. > >=20 > > Where's that -256C being set? I only see THERMAL_TEMP_INVALID being set > > as the default for a zone, but that's not -274C, not -256C. If that's > > the temperature that you're referring to, it might be better to state > > that we rely on the default temperature rather than any specific number. > >=20 > > Thierry >=20 > It is based on BPMP's internal behavior. Okay, maybe clarify that part of the sentence then. Could be something like: ... will return -BPMP_EFAULT. When evaluating trips, BPMP will internally use -256C as the temperature for offline zones. Thierry --3g8zk/YJd0AOEqHX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmPjyDEACgkQ3SOs138+ s6H5JA//TdfEDY64BG0y7A7/GvZveH2DOXG064mmwvhMJtAZ7Vp0v5ldgbi1lWOE TiKuNwOVj5QEqgmNo3cN/+E4rYSg74mB1pl4IPrcdUSPgaHo/uLOmi2VnJscUPac MKcBGWDw+AWkCCvOPZYfeakK5xKdgfH0Rtami3EP2PvzSEnulGMERlLr27C5s/rT yNgfbNf3WdHEUYY5wfhUq9SGd2VNphr+fCtSEyR1GoBvIJz/1KIBsSwbVFFLlvSq ecPnR60yhlZs9cSgb0h0L4xfkj6d225YkZU9AghDKyiYmNpzpwMXpDJDekrDIaNp yNOZYOBpU5niMfJ/p/EyebHN89DSEtrsewy3ecDEY8xbcNA5IyMcn6rjQyccvnv/ Y7Awd98eg5ZPXwqSQTtso3oJPPbPVwsmjgCEsvJ2g/1ZgKZfJZ4aI7zNuky0vDFR X1wItyZ8TcM06DjBOuHl4XiAdb2h2oNIIuXe2fEcxGHmipvb/6lbrcXMZO9km5sH PP0uI3GZ0LHYexYsrpcXXhOicCWY+ld1EWVX29iHZC8T4XojzMNba2sDI7bPCSA7 i53aIN7o6pd2zKuoxrVlSRQO76ORuuX/RiV6OxAVTUBplZRdO+nhXxnUox80Zqfb Mmc9P7aQSj2x+LHuRGasYr3l5EmvMKX07uJMbTRCMmVQy5YhttY= =9WHK -----END PGP SIGNATURE----- --3g8zk/YJd0AOEqHX--