Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1077612lqd; Thu, 25 Apr 2024 05:37:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWl6nhlyfR6sRSyOA4IP+DwtMVOgTXp1jBevDFQFSjwXh4q+rq2B0B/SNJ5ii9VY7apwhTddf061nVA515O3w02B1og5svGyADgc4vqGw== X-Google-Smtp-Source: AGHT+IEenwvZeVLJLVts0rGM7whJJ98Qbfy8zeqVBFSN6ZMDBf4xJdzFGHUqUtM0o1xWR3rB5h1S X-Received: by 2002:a05:622a:2a15:b0:439:b3ce:d736 with SMTP id hc21-20020a05622a2a1500b00439b3ced736mr6461827qtb.25.1714048640870; Thu, 25 Apr 2024 05:37:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714048640; cv=pass; d=google.com; s=arc-20160816; b=C8g9tsImGkKwHaVjtB1bufVhjvbXpEDoKKexQmrVObWUPt1PbMBLSbzmRE4ecYZt2J xIEn3y4Wj0dnT07OfKupxG5JGCfW2G/sbCHuVGX6phl+1Lc88rQ80p2pUDpQgeFAGgRR XSmZWwkbTYiWnzGP/p+eh65dTVCaXwbOlI+g69xN0F24/7Q+NZIoNV6Uef8BBd1scRPi ALP7Dxv0gxGE2act/T3y3NEKlNuRlkFQ50danxiKr9ha7o8x5PzZpLxoGAssAQPr802r oLC+F3dx/vGvPd/TD9lXdnaZyQgGxhsg8ZmdvCesdTNGwVeq1NxxcUM+KEq6mI4eSI2I KsdA== 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=yzMawhms7tZjBMvO0XZAUWpM4N404XZnEsQ7uDzeTnA=; fh=K3xHp74+TpnJEXnxq3TMmmwo/dYPRaVRK3Fil5rY98U=; b=PlcDMTQqvtDQJ+kakfyo9nlQ8cue1ws0qSpAhY9leyXaUK8gfQAHJN8Z3yXgM4/K2m UONv/kxAHONWYw3YS4nzkXc4PNEnHG0Snu8ZmDGor8TV8UfdXMO9rFJ1m9YyHexXxPAp jp0XUAfkvX+cW3YzDAoRBh0t9KhTNUUt2bBrtK1bYindQv+EJDsymTFyDiJ9/XFzVpzq vNjF0FFQf+3/mbbUU2pX2960hZpGhhtycTeGS3GQkcSSWKxyn50dOlgdzwEZPyyx4t2w M7zorqFi/i+Gg7+N5gwq2rdgZdAmWeFkM+r8cvBL7jsUVEIqYIjFw/UOVodvW+z8AsCI b/Ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V6dZUoYE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158531-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c16-20020ac87d90000000b0043a1dcadf7dsi3674075qtd.768.2024.04.25.05.37.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 05:37:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158531-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V6dZUoYE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158531-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158531-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 124511C21819 for ; Thu, 25 Apr 2024 12:37:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CBCC1494C0; Thu, 25 Apr 2024 12:37:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V6dZUoYE" 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 537C4133408; Thu, 25 Apr 2024 12:36:58 +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=1714048619; cv=none; b=ef6+7iN05XHPJ7X8uzv7jL9bv30xwfZcCBgQGX8FJ8Fj+1izIA5q838CG0pRbKyOw82lzRWFJLBmG2plW2cx5IdZvQqvTPEj6FcmkMzri7Agkcf8gKuIY0zaz/VXAFdJ6ooAXrV9GTqjmcoN9ZpEuV+mNpNFDl907Fn6jlGfW6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714048619; c=relaxed/simple; bh=WPH2vArT6rmPx5cfh1ctX9In3WzdWlO76BEzWfqHfWY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OvyFUhEW0Z/miqsaqgokCQrZUCkOUMvXQt8fYN+QdOCgYBAswxgCwQZwODxvVYP2v2k3dyR6ag0WBgoS8OBhlQE65UUOwbqWxRECt2ZL5chlsUvWrIJH6S9+SjU7TxLvQVtY0GwFZy+pGsa5cXfCJEGuQZalhZkBLlL+5I66Kmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V6dZUoYE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCB11C2BD10; Thu, 25 Apr 2024 12:36:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714048618; bh=WPH2vArT6rmPx5cfh1ctX9In3WzdWlO76BEzWfqHfWY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=V6dZUoYEO7aXsjlSqknmQ5zuX2Au2c33+ZnePrhMd4AvUeYFl9g/+JIT80YGYboHK PL+KZdWl4Nj8H8PmNMkJQfSL/jP56PFDvJI1SvamDi4bV4CXk9ir386VVTXyZjZirD wEn8CsEBCn5j2KSPDVifBuVE3wJdjHjFiZc8HPXfBc4kWRG5Y9vBo0owK9s31L9qSj oUjwM7lhSzw6mCjJugIRtv7OlwcwFNxcTWY7YEIQyNE/m+A9j/NbjWob3mpKX3xblM tZutuUv9iTMJFrBGnu10t9oVLFBnce5CsnrUZjsMvFmTtbCrNiD8XPiIuPT8mp8mq0 O4T0cr3tC5nIw== Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-6ea0a6856d7so113631a34.1; Thu, 25 Apr 2024 05:36:58 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUj2wOj/PkcAb41tV9Ar5ExpqedJcAlKDlYI9BhDhOia+j4aXY1izgmNIV6EZmD/vxg9SMH9o5lYLBv49DF3IbHmBPKSjJBKNWvE0+2agTJVXG2shQSjGh9IWl2+6CvJqdXORLd8JI= X-Gm-Message-State: AOJu0YxdadeKHyNUZlbxeDeQ7rkDs48DTns8agaqOSWPodtiG9mptEpb HwXq2o2fsg8VXU/p+qeYRFwc6SHY3QMhdkkHIRyPDllAxKjz5jyvyyOuia3VyQFZzk7fUOGpdIT Z4Iu1qIDIKriKwTNCqSM23v9e+gc= X-Received: by 2002:a4a:1a06:0:b0:5af:6d3b:d952 with SMTP id 6-20020a4a1a06000000b005af6d3bd952mr698985oof.0.1714048618075; Thu, 25 Apr 2024 05:36:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <5774279.DvuYhMxLoT@kreacher> <2181352.irdbgypaU6@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 25 Apr 2024 14:36:46 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 2/3] thermal/debugfs: Pass cooling device state to thermal_debug_cdev_add() To: Lukasz Luba Cc: "Rafael J. Wysocki" , LKML , Linux PM , "Rafael J. Wysocki" , Daniel Lezcano Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Lukasz, On Thu, Apr 25, 2024 at 12:02=E2=80=AFPM Lukasz Luba = wrote: > > Hi Rafael, > > On 4/23/24 19:00, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > If cdev_dt_seq_show() runs before the first state transition of a cooli= ng > > device, it will not print any state residency information for it, even > > though it might be reasonably expected to print residency information f= or > > the initial state of the cooling device. > > > > For this reason, rearrange the code to get the initial state of a cooli= ng > > device at the registration time and pass it to thermal_debug_cdev_add()= , > > so that the latter can create a duration record for that state which wi= ll > > allow cdev_dt_seq_show() to print its residency information. > > > > Fixes: 755113d76786 ("thermal/debugfs: Add thermal cooling device debug= fs information") > > Reported-by: Lukasz Luba > > Signed-off-by: Rafael J. Wysocki > > --- > > drivers/thermal/thermal_core.c | 9 +++++++-- > > drivers/thermal/thermal_debugfs.c | 12 ++++++++++-- > > drivers/thermal/thermal_debugfs.h | 4 ++-- > > 3 files changed, 19 insertions(+), 6 deletions(-) > > > > I'm trying to test it on my board and do the review, but faced issue. > For some reason I couldn't apply that patch on the latest bleeding-edge > branch. > Could you help me in this please? Is there something missing in the > patch set (like one more fist patch)? I messed up the ordering of patches (patch [2/3] should be the last one in the series) and on top of that, you'll need a small rebase on that patch. Sorry about this, I'll send a v2. Thank you!