Article View: linux.kernel.netdev
Article #23906Re: [PATCH v7 7/8] clk: sunxi-ng: a733: Add bus clock gates
From: Daniel Golle
Date: Sat, 28 Nov 2026 14:42
Date: Sat, 28 Nov 2026 14:42
47 lines
10128 bytes
10128 bytes
Hi Alastair, On Wed, Nov 25, 2026 at 10:53:20PM +1100, Alastair D'Silva wrote: > While bringing up GMAC0 on the OrangePi 4 Pro with this v7 CCU series, > link-up and DMA broke as soon as clk_disable_unused() ran. > > ahb-msi-lite0 (0x5c0, BIT(16)) and mbus-msi-lite0 (0x5e0, BIT(29)) gate > the shared MSI-Lite0 bus fabric used by GMAC0 and other masters, whereas > bus-msi-lite0 is only its register configuration clock. Referencing > ahb-msi-lite0 and mbus-msi-lite0 only in gmac0 does not model the > shared fabric, and gating them off breaks GMAC0 DMA. > > Could you please mark ahb_msi_lite0_clk and mbus_msi_lite0_clk with > CLK_IS_CRITICAL, matching ahb_store_clk and mbus_store_clk in this > driver? I see the same on the Orange Pi 4 Pro, but I would rather not make these two gates critical. A gate in front of a shared fabric is still a gate that each master behind it depends on, and the clock framework already handles sharing: every master that needs the fabric lists the gates, and they stay enabled as long as one of them is in use. The A733 USB hosts are in the same position with mbus-msi-lite2, which both EHCI/OHCI pairs and the DWC3 controller need, and listing it in those nodes is enough there. Which masters other than GMAC0 sit behind MSI-Lite0 is not documented. The vendor CCU marks both gates CLK_IGNORE_UNUSED, and no node in the vendor device tree names them, so the BSP does not tell us either. CLK_IS_CRITICAL would keep the fabric clocked on every A733 system, including those without Ethernet, and the next master that turns out to need it would work by accident, with nothing in its node saying so. So I would suggest letting the A733 GMAC binding take ahb-msi-lite0 and mbus-msi-lite0 as two additional clocks, with GMAC0 in the dtsi referencing them and the glue driver enabling them, in place of a CCU change. Any other master found to depend on MSI-Lite0 can then list the same gates. As you plan to rebase the Orange Pi 4 Pro Ethernet support on Jerome's GMAC210 series, I will raise the binding side in that thread. For transparency: an LLM coding assistant helped with the analysis and with drafting this reply. Cheers, Daniel
Technical Details
Message-ID:
<awroPiqKWB6Wl7yE@makrotopia.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373170-linux-kernel-netdev=dewy.ruReferences:
<20261112-a733-clk-v7-0-db7c5451ffa2@pigmoral.tech> <20261112-a733-clk-v7-7-db7c5451ffa2@pigmoral.tech> <20261125115320.3692954-1-alastair@d-silva.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373170-linux-kernel-netdev=dewy.ru From: daniel@makrotopia.org (Daniel Golle) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v7 7/8] clk: sunxi-ng: a733: Add bus clock gates Date: Sat, 28 Nov 2026 14:42:06 +0000 Organization: Usenet Network Message-ID: <awroPiqKWB6Wl7yE@makrotopia.org> References: <20261112-a733-clk-v7-0-db7c5451ffa2@pigmoral.tech> <20261112-a733-clk-v7-7-db7c5451ffa2@pigmoral.tech> <20261125115320.3692954-1-alastair@d-silva.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="968377"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:feoaIb84immZXY0MOtV6j0cwwhs= sha256:kHhd9jXT3MnO+Lho7S6nSuRvaxxd4j7vv9l7vPG6AdE= sha1:AC3vCRmHZCNjXrBTONHLtId79tk= sha256:hGdY8yjlffEAsBUzyOEfb69ENaGftPdUUdENkNxMGaQ= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 375EF125F7D; Sat, 28 Nov 2026 17:42:49 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.951 X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1o9kl7YchDej; Sat, 28 Nov 2026 17:42:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373170-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=makrotopia.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 029E9125F76; Sat, 28 Nov 2026 17:42:36 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 498CC2B3D8; Sat, 28 Nov 2026 14:42:34 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795876953; b=EL+23ASgNe15pqYTsE0HPk19dVzhnrnZ1wepTQ1ylGfFyY8A3yvRDq/Wcd7jwYoQkcgl ugGN9zNWGMSSRi1RflqMkLiNwuDFYK3PRXubiSKmQ7DwZQc2/tVesrmjopeaVafy6UJk7 AhBZOxXvhgE8FgKp558D0IKrZDPo+GZc54/uLnxxuWz3znRgvBq5ZR5Ixgk41hXGI/rDw FLq0oLCMKPc6pmIX2dtSs2arIPldwfdENWriW4KBdSjqUoN0Wtq/q6+ZwapL3uheRCc81 jOCMSFqrSQieCy9RUs+aLZ/3Ha7R4/8N0y5/BbSoD/BrSBlpa0/fqCWGQG+hw9AHCYg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795876953; h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:Cc:Subject: Message-ID:References:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=1DK4LwmCNpd1ho+cSH+5j9wFPzA55uu7znxxaqB/BwY=; b=oOsw1MSemtAd3NE+IGfzusf9LQ5Pf+UKbSSP/Dxlrlg8aIHIIOA53q9imNY4ASq655lV 6qLSyfimiQAOucLJ7h1mC9vqeFZMRHcW3QsHLg8OMO7wJ76rAlijRxt3+/imIglh5lKL8 oV/LFY3F5GWcgJScN1LnVDEgF50OpTXSGQmeQo5mz2osl33E1+/IoOp5lh/u1gmMKYZnC XoQILXYLHvvRbqZWR40z8813sGdSE1UX8D0a/mMA9lAJJxaZTtlBncjOUS8E4SN7dQOSR 1KH9z6cRo1UCaKLLdKoiVl7ZLyKT8e9epdD4mdvjEwqPK9r55O5QwTs/Vo1rDyKMsGg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11C3F606A32A; Sat, 28 Nov 2026 14:42:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.142.180.65 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795876947; b=iw2ZpK5Vs5/LzL6pFl2fBr70sDxyeCw1RJO4HlHv2ZRsFeWSN4lJKLjEnsX1LZEQOA8C 63zM3tuHzzDMenkZe1QODTg5JvMT9wkSMlPoypX+veLkD1eE+Z48BtQlPpJQUitIrFfuY UPAxEBAl2q2Pc0/W9ONg4h7wSTRK1WBUc18YSKkCy+8H3CKgPr+FFbYgE/cqUn3ojGajE w5swGMo7XL/KrkYjXv8RDkK5l7LW58ZUk73O2nORzg7Dj1UXLNJ9mubhbP6Bzwnwn9fD3 HKh/r5m+MOHLlc4fw459RraA1sqGTBicf8/612oElEtX+LIsN28SY9XE9l5HBF5ifdg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795876947; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=1DK4LwmCNpd1ho+cSH+5j9wFPzA55uu7znxxaqB/BwY=; b=D6H8RPkoXsLo20aoyUYJf+j8hlfXdDY6jCC9qL5RJ4S82k9xz04SNs6RYJD5FiGnP1NC KipA9BZVhG6p3+HxpfbGCmS2+q/ICfOuNAX0DFuGhTOh/DMnqEsTL36VGX7FQJEWJh+AU 03kflJlQ7ATMQQ38jY7Rp3cxf5uQa2smh2gMM5HHO/XZe7v5P0U6FbI4D933iSxfw4Svu egX1kFZy/aYVabCB8bmskw5Dh++IGgV9a/fTEVkzsJbUJ6MWaIRMWeYTx1s5XfS4yfrKd eqCuxLEk7nKCLxOQ064x4YiXijcxFxNA9j1K8NmjgiZrNZ7LRG55UH6em7d/D0jeUjQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.remote-ip=185.142.180.65 X-Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 366B9606A31F; Sat, 28 Nov 2026 14:42:26 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 366B9606A31F X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org X-Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256:X25519MLKEM768) (Exim 4.100.1) (envelope-from <daniel@makrotopia.org>) id 1xXJcv-000000003a7-3taX; Sat, 28 Nov 2026 14:42:10 +0000 X-Cc: Junhui Liu <junhui.liu@pigmoral.tech>, Stephen Boyd <sboyd@kernel.org>, Brian Masney <bmasney+clk@redhat.com>, Jerome Brunet <jbrunet+clk@baylibre.com>, Chen-Yu Tsai <wens@kernel.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>, Paul Walmsley <pjw@kernel.org>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexandre Ghiti <alex@ghiti.fr>, Richard Cochran <richardcochran@gmail.com>, linux-clk@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andre Przywara <andre.przywara@arm.com>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Jerome Brunet <jbrunet@baylibre.com>, Enzo Adriano <enzo.adriano.code@gmail.com>, Norman Herms <dockseed@proton.me>, Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261125115320.3692954-1-alastair@d-silva.org>