Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp546602lqp; Tue, 11 Jun 2024 11:50:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFMbBEjR9fvYUDvvftM0kKkQ/UzhJ/mLUpnNG8D58e5VuSBP8rmC1b9BicZdf1c35MN0twwCGmyg69HO4eSRm7nacwNI3BNtH6z1s/xw== X-Google-Smtp-Source: AGHT+IEaTWnGwhwCfx0vJATdE1LbblwvRoBDHdml4PZ0n4Y/yvGMTDGMOX9lq07phm3cZ+ovb5Jd X-Received: by 2002:a05:6358:6f87:b0:19f:3a23:880 with SMTP id e5c5f4694b2df-19f3a230e0bmr1367103555d.23.1718131854232; Tue, 11 Jun 2024 11:50:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718131854; cv=pass; d=google.com; s=arc-20160816; b=EiEwIB3hN3eBi/XhsMFsEMEZhVWlFYktD648rr0ry9feDBgvZ905+U+gQ7AHsVDrxS eDpxJjTJQVt36spyiu1K2xTBuvMpFd2pH4vOfVv/UftYZ9x3AbtnnfhAGHVIlpTE2mku ngTSVVE24bDd1sOVSnJvkHtH3N4UEKWcm/D8Xu4g8xrULI0oC7Z0SRV+djaBfQBGMhFo tkbGTx54GCZQ66vMJ5nWacRodMSPzlb40l56KOo9n5M8dNbKvHHF/SMntOG8tXF82ro+ EmllQtjCKR+FxAX03oTPCTLO3qdFXIQgjxggoauz1pA5G5CC4v7s46kLsQZdo1SvVzew LmRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=mk3D4ksBe81eEBaOL1Bl9/CceARyKfrV3zfi1pZ8DP8=; fh=9V52X1bX3s/J88T1k36+Q2QSpDu29D/G3HdUg3VlJJ0=; b=rKHE8+ynESJkeLqIOZnjlPtHA6PKjvF0nviLm4RMxBUYRaJhqpHTbOutGohY3wG9Nx Zorcgnhm1j6UdT3ietQjSSyQRyO1H/lB8lxvqDcSr5HXSl3pSZ6mqsq9HeXoM6cQQD/1 IG/t4AIHGw80II5QO2XNPrsCi+Hme4guVoehhU6ibRzdHJobG33zPzvUGoh0l0Npr7Ar 3AzXVWQwf1Wkcykgnc9sfQJKvB1VRcPkAm7VdaPNqNaENzGhqJCgOLRKy1JJk+8MAK07 e9LeZG1qelkutUEE3ONTXhQPxNxzgCo+yh8qdBMvzxO5dVq7Xe2/h+5qbqkkIwb0a7XZ cWOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AAc0Hv5+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e3d14b79ebsi6855297a12.692.2024.06.11.11.50.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AAc0Hv5+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CDDD9B249C8 for ; Tue, 11 Jun 2024 18:35:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C5AE5F870; Tue, 11 Jun 2024 18:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AAc0Hv5+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 807F1171D8; Tue, 11 Jun 2024 18:35:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718130932; cv=none; b=nLmFl3FkVHaZMx1XqPyNyHljn4SYVLeDVZLJ9DCK7/RlvWhFT6s2b8mf7tlHGaEVJRRpcS7xvKsThXy1ryQ77RhXrLuZn0HQcHBxgOKKU06vxoyLM2b+wVQVUC0+No319RbKM58uDS+mFhMA2OkaAXG8XvPQdi4vOk4Y0cVOkmE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718130932; c=relaxed/simple; bh=kaoPBmb1FTgO00GA5cfctvuChdkH30Phg0/HzkbnsRw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=JSuXqq1LTwTIWVhE0vJIIg/tXwvpJk977GI2SU2D+LDjSAIL4PZrZoEevgZVwxaWgd8GfUKuv74o9qPymJQ3kjBNPnPF8VhYAht+2Lq4WssGUMN5mO4iLBdFtyj6uCeNjndlMLO9w/9aa8Ldbw0cc9hukBixqXY5FyxN0EI6QjY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AAc0Hv5+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED93AC4AF1C; Tue, 11 Jun 2024 18:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718130932; bh=kaoPBmb1FTgO00GA5cfctvuChdkH30Phg0/HzkbnsRw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AAc0Hv5+nO/GpEJ8Rx0+odPTjOFP5TYcHMd4YRk4KSGlCcrkyMNW0PgofKrnfFTtp RykofV9twQIT1HlzP1a2OIZUoaFZ+s6MYJv6RkInqeJa7Aas7E2xFU8Rd5WUEydenT YpHSmwP4bafJqQKGipiiyzKFFV5DOOwx2m4h8Gpd44fKWrmWH4zUXbj1yXsJ1CE3KZ sNvr5NtmqbhNzHeVapiOl1JCn6tXDI1AWbXbNoHkZO1kdwDsOi/qwLL/oaBuL95WE0 0ej8y7lE8XTllw0in/KDwx+7BBSN16L2hcVotyy04buJo/xWAoTdrxGCwEJNerjA0n V4PzK4pbd5/IQ== Received: by mail-oi1-f178.google.com with SMTP id 5614622812f47-3d1b8bacf67so784479b6e.2; Tue, 11 Jun 2024 11:35:31 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCU2bL8gaO8pWkDUcvqxRmi0lM6QNT13qyFZEhzNLFLZs31zQrAGSD02guDaEeneHaRcmjgGrF6NE+pRIeu8sGP1yF1NWNPRp61UMDRxyr9rzxJTU6cgBPP3s6OKbGVH+lQqNhs0ISk= X-Gm-Message-State: AOJu0YzjCkcZGX/rBvGW0phDRrU6MfmwfrqoDkpBQp1r3zWNfyQXFyue OdfnUoH6gg218u/doNCPyBbB1pqV6Oks2nnXAIw49QiL0lPGvePTC5WK2eUSMI/MZ7nYZI7iL9E AgvqKkSDVUa7O4bfNQxH/sFIp5EI= X-Received: by 2002:a05:6808:1590:b0:3d2:22cb:5592 with SMTP id 5614622812f47-3d222cb57acmr9571004b6e.2.1718130931125; Tue, 11 Jun 2024 11:35:31 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <5794974.DvuYhMxLoT@kreacher> <2337425.ElGaqSPkdT@kreacher> <1ca6f4db-a7cc-4f47-b626-51daf7175885@linaro.org> In-Reply-To: <1ca6f4db-a7cc-4f47-b626-51daf7175885@linaro.org> From: "Rafael J. Wysocki" Date: Tue, 11 Jun 2024 20:35:19 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/8] thermal/debugfs: Do not extend mitigation episodes beyond system resume To: Daniel Lezcano Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux PM , LKML , Lukasz Luba Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 3:39=E2=80=AFPM Daniel Lezcano wrote: > > On 10/06/2024 13:29, Rafael J. Wysocki wrote: > > On Mon, Jun 10, 2024 at 10:28=E2=80=AFAM Daniel Lezcano > > wrote: > >> > >> On 28/05/2024 16:53, Rafael J. Wysocki wrote: > >>> From: Rafael J. Wysocki > >>> > >>> Because thermal zone handling by the thermal core is started from > >>> scratch during resume from system-wide suspend, prevent the debug > >>> code from extending mitigation episodes beyond that point by ending > >>> the mitigation episode currently in progress, if any, for each therma= l > >>> zone. > >> > >> Why it is done at resume time and not at suspend time ? > > > > Because it is related to thermal_zone_device_init() which also runs at > > the resume time, so IMV it's better to keep these two pieces together. > > > > Why would it be better to run this during suspend? > > From a logical point of view, it makes more sense to cancel something > at suspend time rather than resume. That prevents future readers to be > puzzled by an action done in an unexpected place. > > Technically speaking there is no difference if it is done during suspend > or resume. Well... we want to prevent actions to be done at resume time > in order to not increase the resume duration but I'm not sure this code > is doing a big difference. > > If you want to keep it as is, feel free to add my: > > Acked-by: Daniel Lezcano I will, thank you! And thanks for all of the other ACKs.