Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74DF33E5EFE for ; Wed, 5 Aug 2026 08:12:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785917578; cv=none; b=NjVwa1qvFWwp+4wt+bb3zy4ovRO/vXbq/949OdRa35GP8pIPK0MjvrzzVqup0+51qu1Otq5U+KowFWB2KHWuWDT4sR4ebq4611mnXasYj1GVkH/Y0K1JxgD6ks8k425kkfvznj/jJxv0b3cXzkUvAnLAkUddJ4+vZHDVt/CQccA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785917578; c=relaxed/simple; bh=5+bgqUBoANfi8zQhQSTcZOEP0I32nAOARHOE6mkaSws=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XxCp1YEk6j+4TELUUh6M4a0sLRa2BzOjk+t09d+gi0zY2vHeGHCM790/TQICokGX/mqgmbdI+BeHKw/j/kafjvurZkl8L656lLFC05hJEmluO5z3QEN9W/wqS9eZb++0F3oGU+vfFSogyn+qXF5utqdYKVs6FhoWRAtVqtepWvo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bJrq8eCu; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bJrq8eCu" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-47f84023916so570739f8f.3 for ; Wed, 05 Aug 2026 01:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785917566; x=1786522366; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=5+bgqUBoANfi8zQhQSTcZOEP0I32nAOARHOE6mkaSws=; b=bJrq8eCuVHp7LVfljgaRbLXcca0CUnL+nFaszoiCUBjj4hS/1tP4p6UPAY4n0l7MlX kaYVSM7KNOj1marNDuiXSXXiOZnvhwjhk0Z1GkgHOPAoKsJxbVVxOFoykqbpx/PN9aYR eR+i0mnwLgOukmeSE5Lviuqy7NnKnyRKvNTDv7RioMbj8PynmVtly6vMFJBjmOx/sCkO CWyHj9hi2bBYEO55+ZX+cq375HTGbOMHvu4ndlJ+lkMxnjKDv54VhKUJms0BsldAAdyR dDT3ewAwCv22AiSYaCtgnXFWVK8GNye28Bi26GXHn/4ZfLd1TVlR85CQYL4HoeQp2qEt NSWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785917566; x=1786522366; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=5+bgqUBoANfi8zQhQSTcZOEP0I32nAOARHOE6mkaSws=; b=ax0GDcPqXbWrU0C7dnja4loZeDcnqfk+KqavWvFSUNHrW+De/wNAnmJJgPo+VHOo1X IN9LuHHHBP4iC9DQMh90h7kbp81W64N3fMt7boMHIOWurpLlyoLyjz8lV5J2a114lNSw St1scqeFleUPzKG8vxORqnb4Ds5IaL+DjiefeEcyy+ItqdcG81JBIwXuAHPaIaosJky7 UZBdp+q9Z7FXt9rp1TguUH501BUy1/V4D6vwAsH32/LwA/CSsqPq8iXIWff327/vFy0s dQL2/SdIim0VyMJYperZGFHNWgzXg37+d4r9OZL+bjdbc9cQJTPtVSAXKaan9y8l0dL3 0pMA== X-Forwarded-Encrypted: i=1; AHgh+RoN0iXjShlo0QBwRwKTQNz4G47YlhYxJ7cOPLHbYv9G34/L+IrwL3vsNsm9CiimJAxk7jRC8bXY0SoADCbI@vger.kernel.org X-Gm-Message-State: AOJu0YxgjMuDoINkEApPDs1YzPcgO+NgK2LENwc/oo4P6J1+bdtaX59w bs6UPgnS7R1hEs00gMfx92e3VnymH8wZ0jnPprcAwVJKwklWz4yUpM2C X-Gm-Gg: AR+sD13Uooh9J8uHENb9E1uaTezAxSkM2BDOTIAjQ6/noO7HWc5+tYCzUslWuTM0Jy+ skX2Zkxvz1iVxL6VDqYT9xNYE0eIWaJP0yRZgErPHQSKYJ3FlT21hFMMvCQJAfohtB4uTdpNbwm 4kGcqBzk65q1LpETjSSzex2L3dXBoJALSo1yxdtILjk+nTxs850ll6mlD0OL8nDro26ZQ2yTfJE urSuTtf67p9Deb49W9+rwtYhe4GNAN86qsYS2FaAWF5Iwdy7LZXa5MhJTnX4+yaNLMrz5HGB227 QqXCrRhRxmJ5qnnbcydp/sLe8r7UBe8CdRgpsO2Uli1jTsjU9LHh2miHIykSN88IHunoNKqhukb iKZcKUatlR+HcoaPShR19YLOembCeezLKnL30m+y5qcc3/HQOEZYiVc4/bO1NhhbT9BaPQdN8EH LqMSWvvZuzg47NxL7H+1uH1WA+K8eg3xyWlfpQH9czM080ht9d7FRTVDTZGJ2peOXzSNa01h4QD XtlV0pNuU0= X-Received: by 2002:a5d:452b:0:b0:47f:8602:6887 with SMTP id ffacd0b85a97d-47fec4f626fmr5676202f8f.11.1785917566086; Wed, 05 Aug 2026 01:12:46 -0700 (PDT) Received: from VivoBook-ASUS-X712UA-M712UA.lan ([2a00:f44:cc3:6030:c613:3768:f346:6d76]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47fec24a279sm6544465f8f.35.2026.08.05.01.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 01:12:45 -0700 (PDT) From: Stanislaw Pal To: Jie Luo Cc: Bjorn Andersson , Stephen Boyd , Michael Turquette , Mieczyslaw Nalewaj , Brian Masney , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] clk: qcom: ipq-cmn-pll: keep the CMN block bus clocks enabled Date: Wed, 5 Aug 2026 10:12:40 +0200 Message-ID: <20260805081240.11497-1-kuncy7@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <1dc44e5e-7787-47f7-938f-1ac0676d96d2@oss.qualcomm.com> References: <1dc44e5e-7787-47f7-938f-1ac0676d96d2@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On 8/5/2026 Jie Luo wrote: > Is there any use case that requires accessing the CMN PLL registers when > no downstream consumer is active? If not, I don't think a fix is needed > here. As you may have observed, debugfs clk_summary can still display > the clock rate correctly even when there is no downstream consumer and > the AHB and SYS clocks are disabled. The clk_summary observation does not show what it seems to show, and I have to correct my own previous mail on the same point: this driver does not set CLK_GET_RATE_NOCACHE, and clk_core_get_rate_recalc() only calls .recalc_rate for clocks that have that flag. So clk_summary (and clk_get_rate()) return the rate cached at registration time, when probe still held the bus clocks enabled - no register access happens at all. It displaying correct rates with the clocks gated is exactly the cached value; it says nothing about whether an actual access would survive. As for the use case: on IPQ5018 it is booting the SoC. With the clocks gated after probe, boards hang within milliseconds - 100% reproducible on some builds, before userspace exists, with no consumer anywhere - and the only variable that changes the outcome is holding this reference. That is also why I do not think moving runtime PM references into the clk ops would help this platform: by your own argument nothing calls the ops at that point, yet the SoC still dies. Whatever the fatal access is - a CCF path we have not pinned down, or something else in the same clock domain - the platform demonstrably does not survive the gate itself. One more general point: the CCF gives no guarantee that clk API calls only happen while some consumer device is runtime-active. The DT device link keeps the supplier active while the consumer *device* is active, but a consumer is free to call clk_set_rate()/clk_round_rate() at any time, including while itself runtime-suspended - and on IPQ5018 there is no link at all. So "registers are only accessed while a consumer is active" is not an invariant anything enforces; it just happens to hold on the platforms where the DT wiring exists. If there is an alternative fix you would prefer - a different clock handoff from the bootloader state, describing the in-silicon consumers in DT, anything else - I am happy to test it on this hardware. But as it stands, a mainline kernel cannot boot reliably on IPQ5018 without this change, which is why I believe a fix is needed and Cc'd stable. Thanks, Stanislaw