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 E921A560AAF for ; Wed, 9 Sep 2026 13:20:56 +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=1788960059; cv=none; b=dPTmwoP/5TEGL/Wx30SVJAYzA4m7j/BZ9lLsYJHjJbXeYDeHWpjCEThqwZDSteproQ8zqnt70XtL2WGy9DDso28RXPs0TdAmgSgWmQjhw3SXOww8fRTwgRMNwHe4tR11Yb8hVP/g4hIAtmijRUU4t+zRuV1eflt3Er2DF1ZJYjc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788960059; c=relaxed/simple; bh=1rpYp9/x6QZBAeabDSXxOvoteEpsLsPbNU50Cm/Tks4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZcwZMpFI+n38oMp7P36Bv7M+FUUOVkxXxXaq8rkFyxYQ2EA4+M/evQy86eezXgHOb5kgaYHWwMQxOe3KINqktYf/d7KAa//qzkS5eWfVQLiZDbpI0PSxZPwbAmUZcG+m4GfjLLIVqTOydrjDXQyd2Cnnsg5Nfp3R9otnqGMRLQY= 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=iKiostL2; 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="iKiostL2" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-485850cf499so4053744f8f.3 for ; Wed, 09 Sep 2026 06:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788960055; x=1789564855; 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=xqcFgIRraimIxFzTBpazVCLFmRgJ8bu+hLdgiYiQiYQ=; b=iKiostL2iShBz5U7B+fqlBWmvWLfjAN0C5KJIomug0nbS/uaSDFEcv79uDjBQVqYBZ inGJr6bEINe4aOUmERVgS6HZxY8ixN1G/9LJKFytADUt+FNct3Ej2/ct2cQQm2TJYPi3 eVl745xC9ICVSAKFfJPXu1YcQVew48NYH1XJfeYpeLtDAJXHsPvHrr7CaQ1GXCfO4QEQ zqJxCqiASVHG7P5XLC9XTWBtNmbxIoheEkip9mWlQFAY/1J3UfN92Ex57lMNPw7HxJ/2 9nTVkflibCDZMmOnG/RW1PEhOA1/7hkCOG1Xnli6KNk1Uva/oHkOxMV63gIicRGoLk3f GCQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788960055; x=1789564855; 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=xqcFgIRraimIxFzTBpazVCLFmRgJ8bu+hLdgiYiQiYQ=; b=duMkOkd4TstwgEnF2GaVuMoRTnctJzhxwZQuySgfrR0vE50Bf4/NhKoQNEJ645uJFG UHSGKorZQYnC40MelFulKwstW1/C5cW2Ca/HkKsPKhQnkeHmpk9kbAx4fWI4aEIseBW2 PBJgD5SYqCWXoo/GwL0Oalu2+khgOMS7Naf3o2A2kHZnsEq9scYFUVnp/p6xzuF7QpCa 7gVlqb68mNdVuXQSdPjTTGFHB7zv5BSpWNsf+23ULsoL/Mapd8SBQ51w8I72TZqdWi++ 9XuH7qUuiG/TP7uVVVhfSAG2af5aOv82J0r68UcYxfA8kP8izgmMLORD1/irGvNMyqNx +WMA== X-Forwarded-Encrypted: i=1; AKwUvBzW9Ty+H6CQ1PzRRDd/LR75sWl11wgHFG4xrIwGe1UeoE6+e+n22hhUVt8y1b5loEr9Ar9oP0PktS01OrWS@vger.kernel.org X-Gm-Message-State: AFuF++mW/2ydfqqP3YO5tuyOlnq6Lx3NUJgHuFPsufuoRkRcUuHW//XU gUn+rtxdL2gxYUQyW9DMbvw301Y3ODETA0z0QJS5jGscFnQNNycXML78 X-Gm-Gg: AYBFou1JBD7FhyZ64/bCpbqg0tnhdzVcZUkh/jvoDy2oYf9QeeWCqhVQjajxUTuI2Fo 86VQ6pa7txhGVMJEzpfmjGil6w414F4l9sIbosmpbbj32NO0rBSUH3A40LdYQvQamPTfUVtTvxP 27FWBrXJ+YH9vBqDpWpySo2njmDHw6JIgaq6nkqYU/QsWmNlbEi1etjNa34muoUqj+PhVNnzlUW DvfMv/JGSp/cFqidcWxK5WewfhnTVEPmf484uYcVRtxzujEd3hG74PWlX6kub0N2cruK7iTYjth Gh4nGf9FvGN9mCJpqizK1XtC54FYeN33mmXWJ836nK0ls9hh2XI4tw1MX1KozaR2qQ3vrPCI0C9 toPY1t8hmqFZo1ybrcypMsMRRN8Ak4cziJod4ICESYJ6mUtfhvMwTkEpBBSqDaMHMPj8wZLqHt7 KPcPpXQZB6y56lgTEa1jDJ2IhaNqPF8U69JxC3TyFWZRKg/Pp1aO5MbkZ/kDnsKpgZiuStSO2m+ 5J37w== X-Received: by 2002:a05:600c:3ba5:b0:49c:dada:f581 with SMTP id 5b1f17b1804b1-49cf7f39c8bmr434366595e9.0.1788960054671; Wed, 09 Sep 2026 06:20:54 -0700 (PDT) Received: from VivoBook-ASUS-X712UA-M712UA.lan ([2a00:f44:c51:e108:176f:2adf:3ca6:dc52]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49d1e002d25sm93156835e9.1.2026.09.09.06.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2026 06:20:53 -0700 (PDT) From: Stanislaw Pal To: Konrad Dybcio , Jie Luo Cc: Mieczyslaw Nalewaj , Bjorn Andersson , Stephen Boyd , Michael Turquette , Georg Seema , Brian Masney , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: qcom: ipq-cmn-pll: keep the CMN block bus clocks enabled Date: Wed, 9 Sep 2026 15:20:49 +0200 Message-ID: <20260909132049.37611-1-kuncy7@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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 9/9/26 2:12 PM, Konrad Dybcio wrote: > Is it only the UNIPHY consuming the 50 MHz one? > > What consumes the XO clock? What consumes the sleep clock? Nothing in Linux consumes any of the three today. grep -rn '&cmn_pll' arch/arm64/boot/dts/qcom/ on v6.18 gives, in full: ipq5018.dtsi:258: assigned-clocks = <&cmn_pll IPQ5018_CMN_PLL_CLK>; ipq5424.dtsi:288: assigned-clocks = <&cmn_pll IPQ5424_CMN_PLL_CLK>; ipq9574.dtsi:359: assigned-clocks = <&cmn_pll CMN_PLL_CLK>; ipq9574.dtsi:1253: <&cmn_pll NSS_1200MHZ_CLK>, ipq9574.dtsi:1254: <&cmn_pll PPE_353MHZ_CLK>, The first three are the provider setting its own VCO rate. The only real consumer anywhere is the IPQ9574 NSS clock controller. No device tree in the tree references XO_24MHZ_CLK or SLEEP_32KHZ_CLK, on any SoC - and of the five compatibles the driver carries, only ipq5018, ipq5424 and ipq9574 have a cmn_pll node in mainline at all. On IPQ5018 specifically: - eth-50mhz: Jie is right that the UNIPHY takes it, and it will become a clk_get() consumer once IPQ5018 UNIPHY/PCS support lands. The node in the pending work has clocks = <&gcc GCC_UNIPHY_AHB_CLK>, <&gcc GCC_UNIPHY_SYS_CLK>, <&gcc GCC_UNIPHY_RX_CLK>, <&gcc GCC_UNIPHY_TX_CLK>, <&cmn_pll IPQ5018_ETH_50MHZ_CLK>; clock-names = "ahb", "sys", "port5_rx", "port5_tx", "ref"; In mainline there is no such node yet - the only "uniphy" nodes on IPQ5018 are the two PCIe PHYs - so that 50 MHz path exists in silicon with nothing holding a handle on it from Linux. - xo-24mhz and sleep-32khz: I know of no consumer, in tree or out. Worth noting these are not what the rest of the SoC runs on: the platform's 24 MHz XO and 32 kHz sleep clock come from the board oscillators described separately in ipq5018.dtsi (xo_clk -> ref_96mhz_clk -> xo_board_clk, and sleep_clk), not from the CMN block. The CMN outputs at the same nominal rates look like re-exports for hard-wired internal use. I would rather this did not decide the patch, though, because the failure it fixes is not a later register access to the CMN block. Mieczyslaw's summary in the v4 thread put it that way; the mechanism I measured is narrower, and it is what the v4 commit message describes: - gating those same two clocks on an idle, fully booted GL-B3000 (runtime PM autosuspend, gate landing ~75 s after probe) is harmless - runtime_status "suspended", both radios still serving clients; - with UNIPHY0 disabled in the device tree, so that no uniphy driver exists in that boot at all, the board still dies in 6 of 7 boots; - stretching the end of probe by 15 ms, or by a full 2 s, still ends in a watchdog reset, 8 of 8 boots each. So what hangs the SoC is the gate transition landing amid early-boot bus activity, not any consumer's access afterwards. That is also why no consumer-side scheme can help: the window is between the CMN PLL probe returning and the first clk_get() by anybody, whichever consumer eventually turns up. Thanks for the Ack on v4. Best regards, Stanislaw