From nobody Thu Nov 12 09:51:32 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jQFys0VdVz70KKR for ; Thu, 12 Nov 2026 09:51:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jQFyr4rtFz3G15 for ; Thu, 12 Nov 2026 09:51:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Hayd5AKz1unlGU5bxlQ+A1DQGhmdLQMcK7QcJFCXBjo=; b=i8+3P7E7pKYiTdV/Gi+gFQfH9+ghSpvMoiiVU8G4af6sUX8hHC6mKNF5j/w0qpx2el2bTi Ztdh5NATuB15vBLzIaDI5EGk/lomYpqnvLffv2e9rOISgLJCyyZk65jThgramaeXoNKMYP j+4MEEKKDPq0QOcdv20MgP/eSLRHH3xS5Vf/hhGHbUTu+g30DEc+aZ1za6LNVyEl6R0W84 1GEmyV6ZoIIwKRecZ8l4VIzfJvSyp+b94lUXvyAcubU13e5Vq3bwBHAt16UFGGi5WCNHki SCV2784CwxD5uqV3O2DVYUNUolwKmcm8ah1chjc3J5IZ5U5VoVfj4+lkZOWqiQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794477092; b=besAXqpEP4otPQPAT1HMR+1sa3YOMAiAwbCgz2powiEl8mdl8we+Go7I09kGWEq9ED4iyt uAg10nmBuKd30aNS2/EvHFmTf0y5pB01NfCvN4et1Qp/hjKR+O5vVQCTKaPh0HwQbA5yR+ Xh3CLvZO/9tvqj8k8AgepXuu7pDj/n3vqRlpCy9BathmV/51o9KctLVlyjLk2w0Xd5jY7s 6AVikxZDwHKQskGHbaTYRyAFXRCV2sbUuAuMQxSKIsU5RstU3oC4yMOUByinmqAPTmEYcm EBOWjaGhwD/rN4PQPzKjsMnAyoX6UrE5a6gqhoBuRK96nfqIFLVsHI1u553sSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794477092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Hayd5AKz1unlGU5bxlQ+A1DQGhmdLQMcK7QcJFCXBjo=; b=EY5RhuALA3QF+NImelGKEWwqJ9RMzetEBd5M1OMtKwPRG4vNoxbQ5ElgjUnZ8kcNZ5rZLS uPCSdqGlveE39GAWDPRSGfobCzSiHdEhweQEawNiplymaox9m0Mh+T4+8PwnTyyetxPbSG o33s85Y58LJgob5G6H4lqa/cRsMdqHCG5a4XN3B0DjMeYc7WRaF0TfWfAZ9P2XRxrv+oMg ih/325JlltF839jS3lxN3tSd+iJkhEJxxZ/4XQPqu0V9CcNUWo72WvfO4PFEhEjjnc8o4G LEpXCoXNz8ui1ks3eSB5DlwdQJQ6xCPrZko+Ir7HydssBN46RxWQSYB7idCs/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jQFyr3nDBzxhl for ; Thu, 12 Nov 2026 09:51:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22481 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 12 Nov 2026 09:51:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: c240a00b5182 - main - aw_ccu: h6: Never use the output divider of the GPU PLL List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c240a00b51825ffed503bde179d018e3f44cc446 Auto-Submitted: auto-generated Date: Thu, 12 Nov 2026 09:51:32 +0000 Message-Id: <6af58c24.22481.19107755@gitrepo.freebsd.org> The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=c240a00b51825ffed503bde179d018e3f44cc446 commit c240a00b51825ffed503bde179d018e3f44cc446 Author: Emmanuel Vadot AuthorDate: 2026-11-10 15:55:57 +0000 Commit: Emmanuel Vadot CommitDate: 2026-11-12 09:47:30 +0000 aw_ccu: h6: Never use the output divider of the GPU PLL Linux found that using the output divider of the GPU PLL, bit 0 of its register, to scale the frequency of the GPU makes the system fail, so it clears it and does not model it. The H6 manual does not say so and has it in the rate of the PLL, 24MHz*N/M0/M1. It is set at reset, the PLL is at 432MHz with N=36, so it still has to be read to compute the rate. Search the rate with this divider at 1. It is read as before, and is cleared when the rate of the PLL is changed. Tested on: H6 --- sys/dev/clk/allwinner/ccu_h6.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/dev/clk/allwinner/ccu_h6.c b/sys/dev/clk/allwinner/ccu_h6.c index 9428d660defd..9ff89d6dfdcd 100644 --- a/sys/dev/clk/allwinner/ccu_h6.c +++ b/sys/dev/clk/allwinner/ccu_h6.c @@ -251,13 +251,18 @@ FIXED_CLK(pll_peri1_clk, 4, /* div */ 0); /* flags */ +/* + * Changing the output divider (bit 0) of the GPU PLL to scale its frequency + * makes the system fail. It is set at reset so it is read but the rate is + * always searched with it at 1, like Linux which also clears it. + */ static const char *pll_gpu_parents[] = {"osc24M"}; NMM_CLK(pll_gpu_clk, CLK_PLL_GPU, /* id */ "pll_gpu", pll_gpu_parents, /* name, parents */ 0x30, /* offset */ 8, 8, 0, AW_CLK_FACTOR_MIN_VALUE, 12, /* n factor */ - 0, 1, 0, 0, /* m0 factor */ + 0, 1, 1, AW_CLK_FACTOR_SEARCH_VALUE, /* m0 factor */ 1, 1, 0, 0, /* m1 factor */ 31, /* gate */ 28, 1000, /* lock */