Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp53136lqo; Thu, 9 May 2024 12:19:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQ9ilA0eYdm/Lp7QFR3hC5lvOIJD7x7EAkGNoPBfKTMOi/Ht7wb3FWeeEqscTr2J9dERN0VPi7RPN2LILfsSkPpKIRzIVp1quc7X0a4A== X-Google-Smtp-Source: AGHT+IGchxl0ShrXRINVjG9hQVs/cro4bi/Y6zewwhZS37i7QzcVPku1DJRlmFX7mLor2i3bNknM X-Received: by 2002:a50:9ecd:0:b0:56e:7751:ae4e with SMTP id 4fb4d7f45d1cf-5734d67bf42mr393749a12.33.1715282356079; Thu, 09 May 2024 12:19:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715282356; cv=pass; d=google.com; s=arc-20160816; b=tRzvxJZ3SoAyToUt48bN9Hsaba9KfsDFMF0WK7bpMeqsZOGIOtvl6vMeHI1gqglYVa NMo5xZBPLhFckzC3+hj6f3YeMuOkaAOHc+7HZ0xp/+g1qAwJ78i2jMveGboN0kQK9cnP v4bs7RgagWp8IXXehRCa/yS23TA5XN4IbRQv/8sZZQiwqMPvfDViobA8tdJK6O7VQmzE Nx6++T4PtwmAPgblmq3+i6rjgnnBn8Cl5lxzjeNM/egCQSgCoG8EsHDFOwdmsdvxrx3/ aiEKHXNopteZUCv4hkQJxAL//7ZTAtcHlNj2nx4EZR76nXsjBU8cQ4vHRZzLg/iduMUd NbQg== 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=S1KIaMTvOJ8TzYX2EmLCvTGM7yQ0BtqmnCXsurSHPEM=; fh=HP39+yda0QHsXMT3XaLy3KM419Yj59UqEZWQZo+gOsI=; b=fJH1O8D44yUpA0v54a/DE+21ZCEnTG/IkN5cewqL+VHcGrw3OPeUkd3ALRaILzQqDO VN+uC9+ZFo8+pHmDACJzZ4Ic9WNgPVQUAOEtm+zK/A7dJT9mUofx4NBaSVwt6oEvTi5g YpvSJXe/maD2MnlhhhRy3nRVZZM3bIbw4pU1h0cpRlBC61DfpGxEdCfblInO6PU5cszI BTxSO8wpiQbt0rGNBLFspM+l9tSfEjrjQv4i7IuFCJ36Tp8r1wZK0C9PUKRA2LUjGJE0 f6k638KWpRv/jnai8Se/e1jLAwgcgNpe3fMqmK9Arc+OrW0xN7G9OQgAIzGRTSCZp3u3 /SLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@rjwysocki.net header.s=dkim header.b=Dv4w2OCI; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-174813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174813-linux.lists.archive=gmail.com@vger.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 4fb4d7f45d1cf-5733bec1881si1091753a12.196.2024.05.09.12.19.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 12:19:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174813-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=fail header.i=@rjwysocki.net header.s=dkim header.b=Dv4w2OCI; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-174813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174813-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 9EE8E1F22F1C for ; Thu, 9 May 2024 19:19:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83F3684FBC; Thu, 9 May 2024 19:17:55 +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="Dv4w2OCI" 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 CF4AC7FBAA; Thu, 9 May 2024 19:17:51 +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=1715282273; cv=none; b=PEASYpMtfcFs/W5qCBKuNd5x9l0XAczzf2YM8HDTHRHnNcSBiJKjSU+jIfzL7bXR4l+pNX84G5z7RB53Q/Bks0he9B10aW0Vr4E63W9cOdjLbDZg7KMmm+L+DP4n8Ex4xJha+l5LSl3pZ81X42OGNZHGLova1ToGLMY6JbyzQo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715282273; c=relaxed/simple; bh=9TH7xYV2r3k4IZIMImzh8JQm/dLSNPLQ/yaBEE8XBDw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dR0xqYstlS5hx9uyiqUSU7CEi3uMEJRLBddux3thNVjQzQ1BTCXW8lqiF6iiw8f/weOH1Ko0ZgsiINNz6znwHuuZWRSbd1Er9ZryAAIO3fxFY+lK31w/i9BldugQU5GmVdrh1ekkPUiciUvwJ83cOnSLIS8Fvk7HU3QVj6lKnCc= 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=Dv4w2OCI 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.0.0) id ce133ce02d53c444; Thu, 9 May 2024 21:17:44 +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 E80D1A524E7; Thu, 9 May 2024 21:17:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rjwysocki.net; s=dkim; t=1715282264; bh=9TH7xYV2r3k4IZIMImzh8JQm/dLSNPLQ/yaBEE8XBDw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Dv4w2OCI1J0MUee8p9stL1NnwNIrGkty3aNOkThwnyjJB38rnSiD9u0tkIEF6EpCD rT2grUEW+7UijTfEwiWD1ubPJSLHLkuKXo7WBTMxB0bAFWw6s8bkXm9Vw1vMbbvhxE bZGyXEqH3bKGYiL2pFyeUj9m70YUWF19HSGy1pQw0GMI2C6THHHIinKpAmFF/Tgjrp mx3dkW6DIo1ATet7bjRw4lim9jHVv4iTBUxQYQpWlSLCfdCSbUjFI//L6L7bk5Ouvy AEYnJEMiE37qZ72yKH+M7NxY8T2xk1hwQh9e/JNMp1iLxyC5oD8WQexTFDgeWsbr7X nmG0tolNs7CbA== From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , "Rafael J. Wysocki" , Lukasz Luba , Daniel Lezcano Subject: [PATCH v1 3/7] thermal/debugfs: Print mitigation timestamp value in milliseconds Date: Thu, 09 May 2024 21:13:17 +0200 Message-ID: <1892146.tdWV9SEqCh@kreacher> In-Reply-To: <12438864.O9o76ZdvQC@kreacher> References: <12438864.O9o76ZdvQC@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: gggruggvucftvghtrhhoucdtuddrgedvledrvdefvddgudeffecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedtvdefgeelvdefvdevveehvdetfeefhedvueeiudekieeltdetgfdviefhgfetteenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhgrfhgrvghlsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehluhhkrghsiidrlhhusggrsegrrhhmrdgtohhmpdhrtghpthhtohepuggrnhhivghlrdhlvgii tggrnhhosehlihhnrghrohdrohhrgh 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-- 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 @@ -789,8 +789,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