Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1093505lqe; Sun, 7 Apr 2024 19:37:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbbE/thphb/dJhfOxquUMGELyoijXNEaAAka9PMJbi8E8hiOk130tnkFbcsRaAnDEuTYSCSO+HsGLbdED/g98G1s5qSTUpppgyjX1+BA== X-Google-Smtp-Source: AGHT+IEOH75QhyjYukp2MepMxy8KgzQZcYbOj/Qh8g8/3DIbIX4G/0IEpMhGkHPekuWF5s3bTjJt X-Received: by 2002:a50:cdd4:0:b0:56e:2b31:b111 with SMTP id h20-20020a50cdd4000000b0056e2b31b111mr5952007edj.7.1712543838729; Sun, 07 Apr 2024 19:37:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712543838; cv=pass; d=google.com; s=arc-20160816; b=U5H5y5oZeIMWZJ3X06/frEuF5pxAalBaVoOGhKvDH62UYm/SldWJB0u7jSqVvnqCBc ucKYFcO1OHfdqYPcDdQIyjOxL+z0zXmuicjblK8WyFfVeA1pDlQ9BAzXgAeTYwqFBo/8 ig1IjyH2KHbZa8XLmhI96ZomWqo2Juv649IV2zezZLHDlaz+/WdZnwuKjr8xzRilGcn6 pf/2NuCnW3q3j7EBQTsgH0jkFLnIz6EBTnsz+SwwunI/hKObc3Nv843Fg07HcrTG7Mis L4e5k+PefaPmaY+X5pJwErl3dIeXzuf9zZub5iiBxtyKS7lo/DBHiYOh/J0nJQGZgIma YpBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=wV5KGdkQGsUGfPws8quqEY4wmroa1qr5lDFj4xLhkXM=; fh=tmK2ylGS4vfRQmPoUZpk4vNE1fRJPIPJUI/jIqlGcws=; b=d2EiX6sqcNJ7s4R0DfxYvAH8KhPqGEa6e9d+uqRGyAcF0U1ahgz6mSJqvRZpvUr8kW AjzjzbX5q5Qe1vFTn8gG7+/dLx+Tdht7NcqUzt9P2v2/mosvstT+YT4edjliD8/+u/fc VIddNodk3mxI/s7kbByURYeRqfFqTlv3NK4KvNbZCu78b8tt5SPyCZW2jotP0QSyKn2j tLtGkUG3uh0e9Maqoiy5ptsKKdhWhjqoOUuNRGJaEold/Hh/0u8YQpBtqZAJgRdF6+zh lh7PbSkNmhHgfp9Z2iM4rBd6DKPMdRdT6xxNdk8YV/Bv16fvzklQzY6hyZ74e+1KdyYh YYVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CfXdnLU8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134727-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 f26-20020a50a6da000000b0056e2c38668esi3265097edc.130.2024.04.07.19.37.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 19:37:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134727-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=CfXdnLU8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134727-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 74F051F2174A for ; Mon, 8 Apr 2024 02:37:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AD0D1C0DC9; Mon, 8 Apr 2024 02:37:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CfXdnLU8" 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 AE2F1364; Mon, 8 Apr 2024 02:37:02 +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=1712543822; cv=none; b=EyJrinLGP20M0oW/8iZqGzLcMVksf4MxJw+iqi2pDxIXpVU/ix2dG12izXX99Ggv1zjxrtVc0SOqVeq6Y18CjJday6o7lfCtgGoQw4aXnOVq1lNvS+jUf6t7Ld8H6meOuTfZs04yc1OuExz9X2IsMAByiNohkBmrQkNIEI3FVvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712543822; c=relaxed/simple; bh=wV5KGdkQGsUGfPws8quqEY4wmroa1qr5lDFj4xLhkXM=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=EhVQeEvjvos0rtqahoQ1v62dA/+c5arGyIsHUmsZHeVDxN/wKRN6IeY+oEqxbACZun87eLjnJpRiRwgtsII7VRkS8Fy1RyEEa862NFWVzoO3D32FNdY9Pt094FcRS3lsJC16tEJ2LLqDy+5kCaNSVw0hk85ame4CkYqSAzY0yFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CfXdnLU8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A00DC433F1; Mon, 8 Apr 2024 02:37:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712543822; bh=wV5KGdkQGsUGfPws8quqEY4wmroa1qr5lDFj4xLhkXM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=CfXdnLU8EMwnmIAhO4SgHbCD8VU5D5V2hr2XsqUg6lLYL73E5FTf0zXKXi+4pmKmA Vf1eVb63x5lloYzyYh1Zr/auX5wX+khVcoasYHGSjWtaGlPOUmZ2QRn/kDKooralN4 78DOTNEYSmdwqk1wUuuzCiSPFT9V5dP5umPfnkYY7QXT8NfHoR9fAkQRrDK8pwX1v4 y1WDFyYxaUAbqJkMBfmiG3J0LXbutDDexMsvIdiAoaVwsy4UyqepOHDM2fuQ4ZVtIU NjbrYupm7shDUVWpoN43A7wqnKauQvCsWta4h8a2ldL2DoZD5BiZFlY7laMn7OwMZb cdQfJlMsiOaJQ== Message-ID: Content-Type: text/plain; charset="utf-8" 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 In-Reply-To: <20240325184204.745706-6-sboyd@kernel.org> References: <20240325184204.745706-1-sboyd@kernel.org> <20240325184204.745706-6-sboyd@kernel.org> Subject: Re: [PATCH v2 5/5] clk: Get runtime PM before walking tree for clk_summary From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, linux-arm-msm@vger.kernel.org, Taniya Das , Douglas Anderson To: Michael Turquette , Stephen Boyd Date: Sun, 07 Apr 2024 19:37:00 -0700 User-Agent: alot/0.10 Quoting Stephen Boyd (2024-03-25 11:41:59) > Similar to the previous commit, we should make sure that all devices are > runtime resumed before printing the clk_summary through debugfs. Failure > to do so would result in a deadlock if the thread is resuming a device > to print clk state and that device is also runtime resuming in another > thread, e.g the screen is turning on and the display driver is starting > up. We remove the calls to clk_pm_runtime_{get,put}() in this path > because they're superfluous now that we know the devices are runtime > resumed. This also squashes a bug where the return value of > clk_pm_runtime_get() wasn't checked, leading to an RPM count underflow > on error paths. >=20 > Fixes: 1bb294a7981c ("clk: Enable/Disable runtime PM for clk_summary") > Cc: Taniya Das > Cc: Douglas Anderson > Signed-off-by: Stephen Boyd > --- Applied to clk-fixes