Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp27761lqb; Tue, 28 May 2024 08:02:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSfGf2bqvqUaVxKpLsc3AexUGaSHtY2aWuxli4WhdtCAK0IHqRnVkNWbRlkBJahOhWki6K1+Xk9wAGMxiLv6kN+rvDVZ0C8vLK0PKMoQ== X-Google-Smtp-Source: AGHT+IH5Ze28VSuiaacuLlgsEJoXMjUC1SpNuImtsGn/eYMb35dDr65+ZvzXr4sW2WCare5aLFXh X-Received: by 2002:a17:907:a4c:b0:a63:49a9:7906 with SMTP id a640c23a62f3a-a6349a98f27mr148707366b.52.1716908560541; Tue, 28 May 2024 08:02:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716908560; cv=pass; d=google.com; s=arc-20160816; b=eOUrVV5qxs3wA62An6kTdcT9OpAy+Sn0hAY2OBL38+WpoQrjhJhjGtN01zGPUUwwgI YuwM77mLZABIJkpn0eF7Nw2NWrZirNRZUbVqg/sPf+KLkMMEbge9q2o24HwpDFwrb9st ZCXQ8gixCFw0UuGu4sS5I7uE7G6m1p85RQrcVq7/sdj05IngmsO5ZG1g06YJ4l9H+ajw xgFfFsBhKYrruCxhQ4aXtHfgeZ44qwwtjXS8aDkAJ1TbTeecuUusbtixtV+l+BFBOu0t y9+MQi2ob+TQbcJJ6DOdFuIJ6OH56keO8WA+1yrJwawX7PvdEysjTSivJk2PloboDUSW 7G7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9lbGlkrgLMZGKl5TRqwUbaXOqzAfriJh+hunGJLqvOE=; fh=HP39+yda0QHsXMT3XaLy3KM419Yj59UqEZWQZo+gOsI=; b=IPoCaiZ0Z+rWUC77wBTN8m9ZnqSG0laRcs3WrjsI3TLtVSg7mk/yrcoWe83PF5OCbj nyhkE777FZXa9pM+kjj3ksQkX3WSrTJJiGO9SB4ylSVEKb4Ckc7o9r2w1+kNqKia/uIC pa17cvkykfOMwfLLiw6lfnM+EsJey/W3CoHtv3kM5YjLxpSLwE43ogC/dydgJoBR9g7g Gf5Omnwr+2tsPRrZPWUdvlANLHJmMSfCqb1rt8ZDehouDfj6i3jcAbAX/6JmM0mhYkkp TgDq/5bDorpqhSER2UtSugIG29ocxSPB1yKPbXcMDyEGAkbYNPV4S83EVLQonALpPo3z Hx0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@rjwysocki.net header.s=dkim header.b=Wzc5a65+; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-192592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192592-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc36e34si499521766b.460.2024.05.28.08.02.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 08:02:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@rjwysocki.net header.s=dkim header.b=Wzc5a65+; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-192592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192592-linux.lists.archive=gmail.com@vger.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 DB3011F23F8C for ; Tue, 28 May 2024 15:02:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C77217277F; Tue, 28 May 2024 15:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=rjwysocki.net header.i=@rjwysocki.net header.b="Wzc5a65+" Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) (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 A4A4517109D; Tue, 28 May 2024 15:01:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.96.170.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716908474; cv=none; b=WStMTPMi4f6FTKxUYTjwa2P7RUSCxZRGpxNjG3TrT9bOHzhfAX/BXf/uetzHnwk5T6LLvO8s+Ke6+cUWrzD5/N/XkCNm2qxLMgtnlHLlE27OpXyJX77Pim72OLtBO6NitMhgSKZhBdXH9g/WbUQAvuwCCDkuDeIk0eS31jkl3Uk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716908474; c=relaxed/simple; bh=tJjnmqBkTi8msWgW3IHCxMU/BeR3u3SJ2XDiT6tH350=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Rl+uIrpEtQiGeOWK07sEIn6sSIi/0hMX+50lm0wwfPLY6Ceiw3C01cfahKAAyBb6LqHXAirllLhhUXWbgF5/rlOg071phWeQrqteNJpvWyQPIFyBpW10BcejlxXAfOj70VRoax309Pz5LwCrUXwDSXSithD7+Nqog62nFPHfbcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net; spf=pass smtp.mailfrom=rjwysocki.net; dkim=fail (2048-bit key) header.d=rjwysocki.net header.i=@rjwysocki.net header.b=Wzc5a65+ reason="signature verification failed"; arc=none smtp.client-ip=79.96.170.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rjwysocki.net Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 6.1.0) id b882543790f2134f; Tue, 28 May 2024 17:01:05 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cloudserver094114.home.pl (Postfix) with ESMTPSA id D94156A5015; Tue, 28 May 2024 17:01:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rjwysocki.net; s=dkim; t=1716908465; bh=tJjnmqBkTi8msWgW3IHCxMU/BeR3u3SJ2XDiT6tH350=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Wzc5a65++ay8xCSqAtfBONCkwC7PtfxqUjn96P6fUIP/nyRSIbU4lBC6MaxI1SGEF /Unn9pzgw9NaB8/hdOgaif/J5qvaIwNuIU4OxRQzkRT0HIu3U622tlNJ1zMZ3iBnaH nhOPax/aekzIHY9+qod5etqgZ7WQHNle31VrlvqBS0rsxPt8BiitGnGHbuggt40eFj yMqwY2VVVn8VcKblIAaPHZLOyhf5J1zyF/sk5gV/Gvtw7yy9+99fg3UBD5HYzEfxKK D/p0QQuno2U8OrSH3FXPTz9Z35F2Lp2BCYattVjrJahvPMdyP5Or0HJpb05KLjoRdM sPwLETeAn0ojw== From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , "Rafael J. Wysocki" , Lukasz Luba , Daniel Lezcano Subject: [PATCH v2 3/8] thermal/debugfs: Print mitigation timestamp value in milliseconds Date: Tue, 28 May 2024 16:55:00 +0200 Message-ID: <1898781.tdWV9SEqCh@kreacher> In-Reply-To: <5794974.DvuYhMxLoT@kreacher> References: <5794974.DvuYhMxLoT@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvdejkedgheeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtqhertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnheptddvfeegledvfedvveevhedvteeffeehvdeuiedukeeiledttefgvdeihffgteetnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehrrghfrggvlheskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhukhgrshiirdhluhgsrgesrghrmhdrtghomhdprhgtphhtthhopegurghnihgvlhdrlhgviigt rghnoheslhhinhgrrhhordhorhhg X-DCC--Metrics: v370.home.net.pl 1024; Body=5 Fuz1=5 Fuz2=5 =46rom: Rafael J. Wysocki Because mitigation episode duration is printed in milliseconds, there is no reason to print timestamp information for mitigation episodes in smaller units which also makes it somewhat harder to interpret the numbers. Print it in milliseconds for consistency. Signed-off-by: Rafael J. Wysocki =2D-- v1 -> v2: Rebase. =2D-- drivers/thermal/thermal_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-pm/drivers/thermal/thermal_debugfs.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- linux-pm.orig/drivers/thermal/thermal_debugfs.c +++ linux-pm/drivers/thermal/thermal_debugfs.c @@ -797,8 +797,8 @@ static int tze_seq_show(struct seq_file c =3D '=3D'; } =20 =2D seq_printf(s, ",-Mitigation at %lluus, duration%c%llums\n", =2D ktime_to_us(tze->timestamp), c, duration_ms); + seq_printf(s, ",-Mitigation at %llums, duration%c%llums\n", + ktime_to_ms(tze->timestamp), c, duration_ms); =20 seq_printf(s, "| trip | type | temp(=C2=B0mC) | hyst(=C2=B0mC) | dur= ation | avg(=C2=B0mC) | min(=C2=B0mC) | max(=C2=B0mC) |\n"); =20