From: Norman Herms <dockseed@proton.me>
To: Daniel Golle <daniel@makrotopia.org>,
Alastair D'Silva <alastair@d-silva.org>
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>,
Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
Subject: Re: [PATCH v7 7/8] clk: sunxi-ng: a733: Add bus clock gates
Date: Sat, 28 Nov 2026 18:40:46 +0000 [thread overview]
Message-ID: <3226b5c8-c10b-457f-85e4-a3dc43d31d1f@proton.me> (raw)
In-Reply-To: <awroPiqKWB6Wl7yE@makrotopia.org>
On Sat, Nov 28, 2026 at 02:42:06PM +0000, Daniel Golle wrote:
> Which masters other than GMAC0 sit behind MSI-Lite0 is not documented.
The A733 User Manual v1.00 groups them in its memory map (chapter 2):
under MSI_LITE0_SYS it lists GMAC0, DMAC0 and the crypto engine
(CE_NS, CE_S, CE_KEY_SRAM), together with the MSI_LITE0 registers and
SECURE_DEBUG_CFG.
I checked this on a Radxa Cubie A7S from userspace with devmem, clearing
one gate at a time and restoring it right after:
- ahb-msi-lite0 (0x5c0 bit 16) cleared: the GMAC0 MAC_Version register
(0x4500110) reads 0 instead of 0x2053, and a value written to
CE_TDA0_NS or to the descriptor address register of an idle DMAC0
channel reads back as 0. With the gate set again, all three read back
correctly.
- mbus-msi-lite0 (0x5e0 bit 29) or bus-msi-lite0 (0x594 bit 0) cleared:
register access to all three is unchanged.
So DMAC0 and CE need ahb-msi-lite0 for register access as well. If the
gates go into the consumer nodes, the DMAC0 and CE nodes would have to
list ahb-msi-lite0 too, not only GMAC0. Whether they also need
mbus-msi-lite0 for DMA is open; I did not test DMA with that gate
cleared.
The board ran a 6.18 kernel whose CCU driver does not touch these gates.
Measured and written up by AI agents (Claude) on my board.
Norman
next prev parent reply other threads:[~2026-11-28 18:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 7:11 [PATCH v7 0/8] clk: sunxi-ng: Add support for Allwinner A733 CCU and PRCM Junhui Liu
2026-11-12 7:11 ` [PATCH v7 1/8] dt-bindings: clk: sun60i-a733-ccu: Add Allwinner A733 support Junhui Liu
2026-11-12 7:11 ` [PATCH v7 2/8] clk: sunxi-ng: sdm: Add dual patterns support Junhui Liu
2026-11-12 7:11 ` [PATCH v7 3/8] clk: sunxi-ng: a733: Add PRCM CCU Junhui Liu
2026-11-12 7:11 ` [PATCH v7 4/8] clk: sunxi-ng: a733: Add PLL clocks support Junhui Liu
2026-11-25 12:24 ` Alastair D'Silva
2026-11-26 3:19 ` Junhui Liu
2026-11-26 3:37 ` Junhui Liu
2026-11-26 6:48 ` Alastair D'Silva
2026-11-12 7:11 ` [PATCH v7 5/8] clk: sunxi-ng: a733: Add bus " Junhui Liu
2026-11-12 7:11 ` [PATCH v7 6/8] clk: sunxi-ng: a733: Add mod " Junhui Liu
2026-11-12 14:58 ` Chen-Yu Tsai
2026-11-12 7:11 ` [PATCH v7 7/8] clk: sunxi-ng: a733: Add bus clock gates Junhui Liu
2026-11-25 11:53 ` Alastair D'Silva
2026-11-26 3:56 ` Chen-Yu Tsai
2026-11-28 14:42 ` Daniel Golle
2026-11-28 18:40 ` Norman Herms [this message]
2026-11-12 7:11 ` [PATCH v7 8/8] clk: sunxi-ng: a733: Add reset lines Junhui Liu
2026-11-15 12:09 ` [PATCH v7 0/8] clk: sunxi-ng: Add support for Allwinner A733 CCU and PRCM Chen-Yu Tsai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3226b5c8-c10b-457f-85e4-a3dc43d31d1f@proton.me \
--to=dockseed@proton.me \
--cc=alastair@d-silva.org \
--cc=alex@ghiti.fr \
--cc=andre.przywara@arm.com \
--cc=aou@eecs.berkeley.edu \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=daniel@makrotopia.org \
--cc=devicetree@vger.kernel.org \
--cc=enzo.adriano.code@gmail.com \
--cc=jbrunet+clk@baylibre.com \
--cc=jbrunet@baylibre.com \
--cc=jernej.skrabec@gmail.com \
--cc=junhui.liu@pigmoral.tech \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=sboyd@kernel.org \
--cc=vinicius.eduardo.pedrosa@gmail.com \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®