Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794062075; b=yBYbuvVS5wngNIk1d3z5Q459q6zUMFf5MKgMDmNkh9x0QMj6POJz2aztK0LJ24xY+8Pq uDUinpx1LaxG5/Dbjc6FSiTnI004ZWLppizN1ikC3HtQrbhQIFNOz+6LIqhtccvo0OubZ F51D3v9p+8hELOgHcB0Zx3BzJSNeS9JUJ6tjYeRiRDf0ABHupzD1aDLyTmWOtgl61Vdqt zC6uKVnEyDsOzpmtvBY2RKuwNPdqMzNKhWbD57UOElHen2Yh2M1VBijI+qwUdgW9inJbq far7lkOyk0acBmGuQMRHyoKsFCT8e1C56rp30bK9LtemfrVT+hNV+dmevRxHqCiz+4Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794062075; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=8ewo5xYL79lPjV7INuPWOkUqkY/0v/i291OOAatiMtk=; b=iK5+A/LHbHqnqPT2uChcloUFVqRRaFCUdgvczxwdOimqKQmacG56cM44jkdXXPffQ/NI lE4ji4JFmSn3x4JNw/L6Qsftn/oASGcn1k1AFNwM3zU3Uwjxqar+Zv952WBP1X8JwYoP5 TwV7TPxLWfSZhlRl4wnpStHVv4tde/Ac892LkVt+6SHzf/S6/bvBalwtDQSLnTXx4LyiI 51vj4mOltNYCqdmtm7lLT8mcal545DnHuuSMUWuBGNl4LjORsFDFazzLz3Nmq94RnLMu4 HdgbAldxZumO45PpS3/gpdRE8zDH6SiM/78JE7MqhitQwFiOi0CX1Y5dUNWUnyoQghA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="LKLN/XMW"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35E99606D836; Sat, 7 Nov 2026 14:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=LKLN/XMW Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D9421F008A1; Sat, 7 Nov 2026 14:34:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794062074; bh=8ewo5xYL79lPjV7INuPWOkUqkY/0v/i291OOAatiMtk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LKLN/XMW8pt1wGwe4zBRavEO8c1iu/kCn6xBTeMbrCD8sMnLQz+XYl77af4bWX+aV bBMbj8svYVHdhhZCNChNzospk1Um4avGF0z8DKtfKDsZyoE70051+wpqb7K901X0BK smqO4xfteW/8XwUE3+MLdoYuDtdaCnIcgjzrBNAc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gabor Juhos , Konrad Dybcio , Mieczyslaw Nalewaj , Stanislaw Pal , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.12 1052/1536] clk: qcom: gcc-ipq5018: mark gpll0_main clock as critical Date: Sat, 7 Nov 2026 08:51:08 -0500 Message-ID: <20261107135027.228808121@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261107134957.653319350@linuxfoundation.org> References: <20261107134957.653319350@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gabor Juhos [ Upstream commit 33f9cb56cc28d002511e471be74f8ff241984178 ] On IPQ5018, the APCS core clock feeds the CPUs. It can use different clocks as its parent, but during system boot it utilizes GPLL0. Under some cicumstances, the 'gpll0_main' clock is getting disabled during kernel start which results in a system hang then the hardware watchdog restarts the board after a while. This can happen when a driver gets a clock in its probe function, then releases it either directly or by devres cleanup on probe failure. For example, since v6.18 the kernel often fails to boot on the TP-Link Archer AX55 v1 board by using the in-tree dts. In the failing configuration, the 'ipq-cmn-pll' driver is built into the kernel and the problem is caused by the pm_runtim_put() call in the ipq_cmn_pll_clk_probe() function. Due to this call, runtime pm disables the 'gcc_cmn_blk_ahb_clk' clock asynchronously which results in disabling 'gpll0_main' as well. Mark the clock as critical in order to avoid such hangs. Cc: stable@vger.kernel.org Fixes: e3fdbef1bab8 ("clk: qcom: Add Global Clock controller (GCC) driver for IPQ5018") Signed-off-by: Gabor Juhos Reviewed-by: Konrad Dybcio Reviewed-by: Mieczyslaw Nalewaj Tested-by: Stanislaw Pal Link: https://lore.kernel.org/r/20260918-ipq5018-mark-gpll0_main-critical-v1-1-fbe8f27a0106@gmail.com Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-ipq5018.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq5018.c b/drivers/clk/qcom/gcc-ipq5018.c index ee45ba9f13e06..1a47e7e58ab85 100644 --- a/drivers/clk/qcom/gcc-ipq5018.c +++ b/drivers/clk/qcom/gcc-ipq5018.c @@ -69,6 +69,15 @@ static struct clk_alpha_pll gpll0_main = { .parent_data = gcc_xo_data, .num_parents = ARRAY_SIZE(gcc_xo_data), .ops = &clk_alpha_pll_stromer_ops, + /* + * During system boot, this PLL feeds the CPUs. + * Mark it as critical to ensure that CCF does + * not disable it, even if there are no active + * consumers. This is needed to avoid a system + * hang caused by turning off the clock driving + * the CPUs. + */ + .flags = CLK_IS_CRITICAL, }, }, }; -- 2.53.0