Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2403234rwl; Thu, 30 Mar 2023 09:48:30 -0700 (PDT) X-Google-Smtp-Source: AKy350bRrCF6k6xMR656ZKj5cPDe273XJEDG7//85pv8loDgd8DD6Tp1T4eGuOXxgVCYyDNNRlsT X-Received: by 2002:a05:6a20:8e07:b0:db:91fd:92b0 with SMTP id y7-20020a056a208e0700b000db91fd92b0mr4038749pzj.1.1680194909672; Thu, 30 Mar 2023 09:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680194909; cv=none; d=google.com; s=arc-20160816; b=O5bZe+zg7zEmC9I9Vvn0mW3YYiMujQ7MWk6k1xSa54HYn/saLnhe+GDgOVjc3LpgZ2 PkCLO3cSSreF/LxQyUenbBp8/EJOFfA4PsH3zbUQey/lAdAkzI5kzgLk9XBDxozDQB87 91pr62iOuSodnjYe78vnAWWBCg15ISxdxt0D4QFdmfKa1MXEcRvPz55IBpBZqOCvQmWF IB5fgNkpfxmtEffhsQz4yoSg/wVHElk2tEMWsh7UmF1qRiUqjwq1cVSVUaueuQZdeRUf 9RdugdSULXW6gXPzzAVacKgJ2oDrfvdfO130+D5VhoCw64ASGhhM8+rv8kDHZm/btMi0 2/hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yN1+Jn1orcHwBA+J1Kqg+1Ee+kAAwlGiXyYhRzrUkxI=; b=mzoHQneVrUBW0CBbhCU9mwTWMbs3mn/AWoa1b7++uXM+1d+8HfMNo8tmMl3xNYiNvh 15ByJGfUirBAKs7YLmvJXLhcp2lBYVWKRCZHUTmi8ze9BXDa8xXREa1opc4u4cpvyuX4 OjxUSPJWh2zpDDSAp4zQ0FR7ATKhVpru7rEZomBQzY0jLEVKwqYHzbBb8Ct14wDQLnsO IbriIU3qasDgCsppFrgXbQSGizT58b/GluXB63u6ANbFpwwJRb3uAtdTLJOaiP6QdTTJ AC6Lnoihlgwy+RemE1FvrTAvzenPEgd6A1A+MEbTHAFeuyBVKj8vrmghTM4+8bM/z2iU DXOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IxJYcWST; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n2-20020a632702000000b005134ad5dea2si155002pgn.0.2023.03.30.09.47.50; Thu, 30 Mar 2023 09:48:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IxJYcWST; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232132AbjC3Qar (ORCPT + 99 others); Thu, 30 Mar 2023 12:30:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231817AbjC3Qa2 (ORCPT ); Thu, 30 Mar 2023 12:30:28 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29A4BEFA8; Thu, 30 Mar 2023 09:29:42 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id e18so19698634wra.9; Thu, 30 Mar 2023 09:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680193776; 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=yN1+Jn1orcHwBA+J1Kqg+1Ee+kAAwlGiXyYhRzrUkxI=; b=IxJYcWSTnbePkTHm5muh962DShLEtwyD6DwDMDrPDsyzRpAjDZnu+drrIvuUYGzRkM UcTFEbKkxEJ4WuGCgw3SbgyIfdlaDzk4buAayfnQHT2sRJOP4R4iwKfb+aorswot9p4j bfl8a5D/RTyop/iqTk8wocHODC4LHvWQ/pMbmalkEv0pu78fAy2K3+qvD9ihDJWtT+Q2 8uJbSU+fCW9qLlqtbDUNMeBMySs3J9ADwObm+3T5SjVHyJmDbX4bLeyZhHRMpWpf8ws+ lTghBOqCc/UGFuooO0qCzI3eVED4dTWtwfq7deM8BbQ9k/WJi4BdkSeOVIKJuLiBkEQ+ RdRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680193776; 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=yN1+Jn1orcHwBA+J1Kqg+1Ee+kAAwlGiXyYhRzrUkxI=; b=kJy8fxjaRnDdMVdxDecxMgoZBdXM2MIlMhV2sf6DT1oRL1WgSoSXSlRKoWyXe57gEW cms0HXw0h+B9xjzdu7x1IYGUYBK1VW3R3/Zo8ScJPYbweafsi9rSsy8+xxtid7zWDJ6L mj+tg98axfDwSSFXICDhA5atRS1mJJOQEsI44ahO3iJyWc6XqQ4IIo9ps+G40PZnyw2W As0RTIIl+CqfyHKBHneS9e2Oqrnsq4js1w7hMmeP2L0YgMBDnFPHOhnunIkXEbGrS7Ls 1vxfT9gn0n++nPmEV+nC1V1Dro82LLVjG5Lfj8z+/+ADD8TG8QW9JgCUMJKck1oyUyJ5 XMWQ== X-Gm-Message-State: AAQBX9cUKN0RX5SaBj2EHFmQnTbrDQ8Z6kotmY2aEheUSU31aorKxuQU FKOfIr5/PA0719mty/d6Heg= X-Received: by 2002:a05:6000:114b:b0:2e4:cbef:9f2a with SMTP id d11-20020a056000114b00b002e4cbef9f2amr2516042wrx.2.1680193775696; Thu, 30 Mar 2023 09:29:35 -0700 (PDT) Received: from orome (p200300e41f1c0800f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f1c:800:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id o10-20020a5d684a000000b002d89e113691sm24238578wrw.52.2023.03.30.09.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 09:29:35 -0700 (PDT) Date: Thu, 30 Mar 2023 18:29:33 +0200 From: Thierry Reding To: Mikko Perttunen Cc: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Jonathan Hunter , Mikko Perttunen , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] thermal: tegra-bpmp: Handle offline zones Message-ID: References: <20230330094904.2589428-1-cyndis@kapsi.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="q074XcMAmYlwWTlF" Content-Disposition: inline In-Reply-To: <20230330094904.2589428-1-cyndis@kapsi.fi> User-Agent: Mutt/2.2.10 (2023-03-25) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --q074XcMAmYlwWTlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 30, 2023 at 12:49:04PM +0300, 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. When evaluating trips, BPMP will internally > use -256C as the temperature for offline zones. >=20 > For smooth operation, for offline zones, return -EAGAIN when reading > the temperature and allow registration of zones even if they are > offline during probe. >=20 > Signed-off-by: Mikko Perttunen > --- > v2: > * Adjusted commit message. > * Patch 2/2 dropped for now since it is more controversial, > and this patch is more critical. >=20 > drivers/thermal/tegra/tegra-bpmp-thermal.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) Acked-by: Thierry Reding --q074XcMAmYlwWTlF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmQluOsACgkQ3SOs138+ s6H4OA/6AxZ9lvyK8vFq4QrKH+cmYkVUB6/VsqXgF42eaxIzYPBLqnaXqqXkR1Ji qPZe5uTay/R2v6gxgg9V97aK43DNTL4dQV7DHxk1sa+Oepe8JBEnzUEjSdUmC391 ou98SDwyRHj8P6VoNM1BPVAfSP2F1j1jZn2f/hrr0qZ7aj2NyZltoW0G3bdyDA2e sLG+9GRmddEmWGzPqezNUnKLmkOgx4huodK0uk7Pi2gR4YLLcgRmj+/61p5AOeAl Dn0ihEzmVEzxczbY/PDzEe/Gmw55Zgs0BDGxU2I6pTvKkhDBzECJwG8Dk6RGaVqM Oq81jGTSTwK8ZqdgxCjSNN71tv8sc2RI5WcJ5ImFh7+WFVooyW5DWBD3SJAF24DI IQaSzen6n5eYx/EJ3P7ZWO6JtSdUPUj+VTRyxGgxijYv/NHQQ7cf6T4xY/HDgABU c5W49SLYWv2NrN8NiYkAuUqVHDK9Y/MftdQyL//sa5wnzX6BHrGBWW4nQ9Ndxlhh mgTSaPWEYMAFT8lQWJhwRox9xj/z+fBUF2lO/aqx2tyXYvL/iLtygGtXEWzKmQmj ewHCpJgmh5mdMLfQwAyWKeftO0Y2ylgnqW5xUdR6qiqfEtzhMkbXJXcfoRR3T3gk MQKTVBlYMw2XDrklOZRrV6VoPZb7hvnayvUmqNtQJUQkezcO8js= =d+wm -----END PGP SIGNATURE----- --q074XcMAmYlwWTlF--