Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2366336lqt; Mon, 22 Apr 2024 08:48:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoFl1hyrOXMPMWxV5FvgrzWKTbLZ9tun1upYH1mWimClxZ4g2bmO3wGJL3vq3m7tzpY9KMaYr6kDpQh+kWZJD93MZ0/+CTIy4DavUFdg== X-Google-Smtp-Source: AGHT+IG7x4aAPSrPj7KR92NrwgvAiwQvxHNqLJY6CZrTutZmRYqE37MFeE3ld1nvhm9H8O0Scnkn X-Received: by 2002:a17:906:c2d7:b0:a55:3f2f:4b40 with SMTP id ch23-20020a170906c2d700b00a553f2f4b40mr6197425ejb.68.1713800917170; Mon, 22 Apr 2024 08:48:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713800917; cv=pass; d=google.com; s=arc-20160816; b=itRo07oorDOMNwhi3SNKAGeOh6L+PYYuKG/dy/pDBFm15ST9gDT8Kw7kF+HiMnDvMg JRRRufw5cmDYI2TW629/c4uiYdIMO6t9qFGP0JKPtqgVqyZhSx8BExFyKElsJE+/QVbH 1zYgYLKN5NtPNSaZZA4Y0Y9VJksMVWZtScllPe4VhE1AS7YLZd9p+M6QvLk5wNKlg6Ta 6x0b3BiZSgJyBK90eTjcbUIR7q2b8FcqusAeNqyxWEWjSCq37zJayQaUHA/UeTgajGv0 F7gZ9m51rsJHKVxxsNlRXptZ1SpAcydytVlOHDhvI0RuvS64PIT4E1iXjQor9H0oH4wW Yw0Q== 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=qhx0qzJ6eh/Piwu61s3SOfrpixoraj8h9WKEC68zkvE=; fh=8TyrKAqKQjrxds0K7ujB2r/M+J13lU+Zx0zfxo44aUo=; b=KYDu17JyHbIK2XGxhYSMOfewtwaNO7s6jboIwl6LEVzqVT4ymLm67ZywPrwtQHSL36 YR943vqCYOczsNOluD61PpbcxfGiTHWLdggMVoRAGDj0spmhwAcVwgwLTchgSpjzxVRy RgmiaNtP/gC+EBP032XFCcqiadVSMVmDhPY7m9M1bwkqSuPL6jkrc18VqI112PC0TNbN yEOqUdGgzwgk+HsFsGJr2KE4W413bUwCQ2mzCW4yZJ3c1lXU2LcFOKOY8j6ZKieOoFXJ vPRzOkowgHYn/qxZz2QlNYxNLvGEnGfEeNQQJZ/DoQTGRdJ3p2y6bWq/bCV38nGX6Ikr zXEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eQtkKAfi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153656-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g4-20020a170906394400b00a55b9ff21b1si1067292eje.706.2024.04.22.08.48.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 08:48:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153656-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eQtkKAfi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153656-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153656-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E130C1F21A92 for ; Mon, 22 Apr 2024 15:48:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61FC7153567; Mon, 22 Apr 2024 15:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eQtkKAfi" 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 82B6E502A8; Mon, 22 Apr 2024 15:48:19 +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=1713800899; cv=none; b=WMIdrDuCTYloUrdwqgX/KeQBc8b+dqKm0JUbTvteAQ5zMBvYLgXnzkVScuul+zzeqVurlzhMJ2w69m1fAHYNDAGoPuOHruHIabTwYI12kXgtZcfBOg8dvJCA4ktuybKigxmdb3e4ustrnUploKJMZtryVG4cLTtDcHMGiBQIiuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713800899; c=relaxed/simple; bh=qhx0qzJ6eh/Piwu61s3SOfrpixoraj8h9WKEC68zkvE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rTLY//LY6eDvddaIk3uq3aMaTFcRp+6mMnAq61ywLZC7CGcsd+BtNyIJn2AyyPupPwJW4u5m4BeneNGTzsZkSiXqy8MeEqnh4zymZ6e5pu905vXE+Uj/GHJVIGFVVhRbZRUHrFS410eTg9+7sDiUADbxrVRsAJ1KnN7+cD6cQr8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eQtkKAfi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0339EC113CC; Mon, 22 Apr 2024 15:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713800899; bh=qhx0qzJ6eh/Piwu61s3SOfrpixoraj8h9WKEC68zkvE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eQtkKAfiwdsuq9XsDA3nQk4XOR+nL7theGHHVtmfJBKxJX4cx+ryozk04IpE1d1Wi 4dGU2YB7VPTSm4ZXmDPlWuxqTvh8aYhXx1rrh+Tnh+oCtaCKzSe9uJUYHqw3EpC6hz 0YVJztgRg9qW8BY0PW+eGHvEXL8NMUegwRx2nuGlcUfBByvKRIqZpLJiOZ2zkjjARj Vmu9XUGdTXA0XLtUspNjPiHBQgO0yU11bQpoaYg5CKawps1PW/QTGtg2s/fCOSfsOT 6tHBdpl+8WDjtLJdUnnTGOAqE9Tecz5dbtgVyDRfytUdL1jhWFluqwD9eOpE7DpC98 v2UZVkiXiELbw== Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-5acf5723325so1073148eaf.0; Mon, 22 Apr 2024 08:48:18 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCV3Iis48cDCO715Mr1axJd3r7G16lw/lbV2HxS94x9lSsd3/MteLHp1SaMdG7ZgmtvxEtZsRMQtQdXY4hriJGkDxVYXf8d1qYw8zHoNcxTZP/C9PhV1tvBYCsWva5b8HTegO4sPCu0= X-Gm-Message-State: AOJu0YyyL9/0geVn2VZKr7EZMZnTC+IgMHJCi11BJkZGZ0rLe3RxVFXG OAPZq8zroF9ilj7z3lM24EBNMr/Bgih5yDHzCBfB7yxa847lCk1gC1EwB7IrqJ83FodqxOg5uz/ vrJcgsD4QsTdj1Ml/yUDKXOEH6ZQ= X-Received: by 2002:a4a:de19:0:b0:5a7:db56:915c with SMTP id y25-20020a4ade19000000b005a7db56915cmr11719433oot.1.1713800898393; Mon, 22 Apr 2024 08:48:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <4918025.31r3eYUQgx@kreacher> <3a8f1978-c5df-40d6-91ca-276431bb01e1@arm.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Mon, 22 Apr 2024 17:48:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 0/3] thermal/debugfs: Fix and clean up trip point statistics updates To: Daniel Lezcano Cc: Lukasz Luba , "Rafael J. Wysocki" , LKML , Linux PM , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 22, 2024 at 5:34=E2=80=AFPM Daniel Lezcano wrote: > > On 22/04/2024 13:37, Lukasz Luba wrote: > > Hi Rafael, > > > > On 4/17/24 14:07, Rafael J. Wysocki wrote: > >> Hi Everyone, > >> > >> The first patch in this series addresses the problem of updating trip > >> point statistics prematurely for trip points that have just been > >> crossed on the way down (please see the patch changelog for details). > >> > >> The way it does that renders the following cleanup patch inapplicable: > >> > >> https://lore.kernel.org/linux-pm/2321994.ElGaqSPkdT@kreacher/ > >> > >> The remaining two patches in the series are cleanups on top of the > >> first one. > >> > >> This series is based on an older patch series posted last week: > >> > >> https://lore.kernel.org/linux-pm/13515747.uLZWGnKmhe@kreacher/ > >> > >> but it can be trivially rebased on top of the current linux-next. > >> > >> Thanks! > >> > >> > >> > > > > I've checked this patch patch set on top of your bleeding-edge > > which has thermal re-work as well. The patch set looks good > > and works properly. > > > > Although, I have found some issue in this debug info files and > > I'm not sure if this is expected or not. If not I can address this > > and send some small fix for it. > > > > When I read the cooling device residency statistics, I don't > > get updates for the first time the state is used. It can only > > be counted when that state was known and finished it's usage. > > > > IMO it is not the right behavior, isn't it? > > Do you mean the right behavior is a regression It has not changed AFAICS. > or we should expect at least the residency to be showed even if the > mitigation state is not closed ? Well, in fact the device has already been in that state for some time and the mitigation can continue for a while.