| Message ID | 20261101185735.762559-1-tcmichals@gmail.com (mailing list archive) |
|---|---|
| Headers |
Return-Path: <linux-sunxi+bounces-27023-sunxi=pue.re@lists.linux.dev>
X-Original-To: noreply@patchwork.local
Delivered-To: noreply@patchwork.local
Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mxe881.netcup.net (Postfix) with ESMTPS id BB4D81C3F01
for <noreply@patchwork.local>; Sun, 1 Nov 2026 19:57:52 +0100 (CET)
Authentication-Results: mxe881;
dkim=pass header.d=gmail.com;
spf=pass (sender IP is 172.105.105.114)
smtp.mailfrom=linux-sunxi+bounces-27023-noreply=patchwork.local@lists.linux.dev
smtp.helo=tor.lore.kernel.org
Received-SPF: pass (mxe881: domain of lists.linux.dev designates
172.105.105.114 as permitted sender) client-ip=172.105.105.114;
envelope-from=linux-sunxi+bounces-27023-noreply=patchwork.local@lists.linux.dev;
helo=tor.lore.kernel.org;
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org
[100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id D5B3824E43
for <noreply@patchwork.local>; Sun, 1 Nov 2026 18:57:50 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793559469;
b=UAf410+iF4jNNBKZ9lAlasNe6CXNt3Z7alo4dyftA4DTYBpJ9M19gt2yNd+dysYz/6rK
SLut25CqaaZvlymVo6XhQuffi5q76K/WWhW0+47yfwknVfaV1C1lLJvalaXvALiLvl/1K
tSxEjB39pBZEv/Barp+n7uJQnun9+fSejwDT4EQiuuSjrHNPpmP3WvZqxbTGdnKDUeCj/
J4ixg+bC5+SSiWb+juf8wtNvIx0Yq+2OWN47D9U1QLabw5AzCL+SPEdhlGFc80i972izS
5gWMxSlM9kfdAw5TWeJRIcWgSprWN67BHaccMUSVOhcCgnmukPi39QyIDLWATsqxsCQ==
ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793559469;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
bh=6kZ202AvHWljwqwG04WTTgSqbAzapYvPwFz9uVKHoOo=;
b=L+uyJyvov1wHI4A0iqIZKI4+XZkaGL/d9/WmsBWPamkJaSbHdq93nsXspIZNk8AS3Cil
v70w07DXSQH0gCB4bJuQ2AFqMQEvcfLFwQsuC+GIZ9meqkc2BiaV42IXh8Wa+OMPEYDhG
AQt8mSGRrl2S3kaBjq25xPBuVBCnPfKL7Ysq4Lah7R98jw2Vp4WjQpyGJJar+vREGHMjJ
ma9WrZBiVRYvmLt0GOrRZeRkPv6mG1KDEOSNZUVHcrsDnlLV2t9PPIFs8MjIkAV8vu2vd
wMQthGbRLYlBv56Q+SoKcGjLKd3TbYL4x9gJa1kH0yycvZ5CentYlNrF3Cnkfaie+8A==
ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=K25ZCiEL;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 02797606A329;
Sun, 1 Nov 2026 18:57:49 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key,
unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=K25ZCiEL
X-Original-To: linux-sunxi@lists.linux.dev
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.remote-ip=209.85.128.175
ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793559468;
b=5cf0HIFe2IG1Y7ZegVg4BsZUDETksjRd1+Zwb96qOomNQNOER63B9El2fYt/Tisb8r3J
FcVRoForXCVSaWE6+ERcOQ2bFph8IxKK3NW6/SJHl0i4QfIn16o7DXHpA8n3q5rM8TI5I
Gy+Ho0Mo8mX7er7JDRBbJG3K1ORQkBGsP4zKIGUAZqGpHoby4wmIet1QLEJt/b9TMR2Mf
1l7zfSePNQmVoRqIjJhdUhhfOI30slpLMtHWVVA7NnAXHHUf9QYWQnFgplMaia2Fh3LuY
kv1FHVoBxlxW/La6hLwVhqGG5kDi1eHZz+d53QBgfsT2i359KE8xOG9AbEcW9BsfFCA==
ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793559468;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding;
bh=6kZ202AvHWljwqwG04WTTgSqbAzapYvPwFz9uVKHoOo=;
b=NZleviQ2ich35dcloBpuOUMVMs1tJjVHXx131nZlIIPW3TEogh0qGUBz77EGnxB4Q+hU
LmofIHz4XiqpD51AjPpKCFC/7cJ21ID9/OUTXp61uH2yH1ai4ZjKV5XCr4gyUbwJZQPTO
YF7Cf7rKdfmjdCPToZwO4DA+0+lz8X1tp9RR3c+BaZPJnNftMYS8w6/q6C40BwdqVGhRP
FQiSxrCu9UPCUmTlO6HTarwuWTKmZiA+ML6ki//JzVtdNo+5SUNN4rwhTdQgoZT2my0/r
AW/YTBp8B67B76lPztbLBrEj0ToQ7TWteces7RmdYCgNe8NKBIg8zqJR5rccT+mF/LA==
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20260707 header.b=K25ZCiEL;
arc=none smtp.remote-ip=209.85.128.175
Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com
[209.85.128.175])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest
SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E82D606A324
for <linux-sunxi@lists.linux.dev>; Sun, 1 Nov 2026 18:57:48 +0000 (UTC)
DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7E82D606A324
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
Received: by mail-yw1-f175.google.com with SMTP id
00721157ae682-8b06c0794cfso19786147b3.0
for <linux-sunxi@lists.linux.dev>;
Sun, 01 Nov 2026 10:57:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793559467; x=1794164267;
darn=lists.linux.dev;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=6kZ202AvHWljwqwG04WTTgSqbAzapYvPwFz9uVKHoOo=;
b=K25ZCiELEW6DJq3Yi5Q8g5Yk8mjY5nUeRwiSxqQW5qM2JxYS6Ti815ZQPRxq2RGhJl
Gi9pfQzWAfux2SQxkQqfNCXjSn6D2z1njQBMO7qRwrJYhjfaEQeOCLkYFXTGtTmKpEPM
UiYJDOC/0hvyRjbEDZPWwBrM1M+3Kz2QAFiKMoiiDHoJzIWggO4jmCCTg2luftc4ccfS
XzrDWmZZzU7qRpNgyZvyyrl3+HZaWYUaDgpDlcammygsMJuZGav1LF0h2wzsiYTSEvzW
/BjoIXOxuMMe0A/xbvE0TPg/A7G7WV7xGTRvZjFLuw2+ysrPNFHCNfSjL2rxTxKd1S8C
nI4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793559467; x=1794164267;
h=content-transfer-encoding:mime-version: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=6kZ202AvHWljwqwG04WTTgSqbAzapYvPwFz9uVKHoOo=;
b=t6CAeEv48aq0M8jezGz61uYXPBY60umuYf4vTItvMmo4BDjRsaz0Ar+tdtajZaKBvm
GlFzhnWtZ6yn5zaCEujG3inNAbizSgslqX7F5k2gidQmcC9FH6HBZoEGWVLItHiesO/U
CNEYBARTPsqwMToaJfNRNmBPX6OaT75cuB/upcyqLX9ls7Ijaa6Kp3PMM+GdnT7jyR0U
JJqloz/UbKYdnBjJ3IKhakvc40XJMA0oVeDE84EZz1qNfQsKA/7hSTYVDejhT3oPU8xq
kC5gyGJdfLn0+RnqPVRs1sLXyEN/CQ0d7AAOg5SB/fvzfDSJQU/ksVIxEmqebJulz38I
uKpQ==
X-Gm-Message-State: APuU4Z8/24pg5pXabNAs+3EvNlwp9BYXXmPHdZJj2HxVZDs1xpxMWLRN
VtnUyrPFbqj+8pXRFD21/xhe/rrY2ASWPJcDmeh+mRlbTV0q/OCmQqHH
X-Gm-Gg: AYBFou2Wo2BGXnJzU8n7DSrcTaGIKzICfk1Bh8892Izp8nRGg9ncGKJ1fPmvejNKA7G
OmHt+xj0hhO9dvnFuv86bSXBuv9giq1e7rZBdMiosf4DrZHYUNPHzUnEyZcwQXyOD3aC7EX5sXP
1xZ08d53wzvVsKjgK7jmOSkV1guAAtEH+7/COuI18cMMJMW8xzkxwNazao/z1MqvSKJGvJnA1ub
0rrkraDGok5ZwbPC/JvdHOdWlDNBi/Ja7lSDIANMYQP+Pm1FcHggX/K/ngZuIDlUF9SvdgSQhUt
7cb+ES39vLETGR6BwGszruu7bb4L+XWusy8j7XABHwoYXqjfxvz0edQwh4KJKSqjVUb4RzMEx4m
Xl1P+/A0xs2YQJ+246oKno1Oi0I6+Ys6pRFd757SERP2Esl8yBqYGiEgtn24eFjyLOW7ePlvbsH
WhCz5yshHYzSc1qMhnoB0r7OdK7zHUL6DPXkcn69y3en2QDfS0uJIKt0kqHpD05cvdfgMNGHuiI
AuGkKOVm7zXu8eQ0+Xo2Wnu4eY3l4o9EElwqJctgWGjfLPQ5eQIFFoJ8n44RneReO6DztTp7Cpz
K4xVDe9BVfzIyKhAVRrWWK2VUToYxYtuhgOuY5dPeyqX5ea+HRLAz1U/XziF5OoBndU=
X-Received: by 2002:a05:690c:a046:b0:8b0:eab2:f502 with SMTP id
00721157ae682-8b2b67992e6mr47158847b3.61.1793559467403;
Sun, 01 Nov 2026 10:57:47 -0800 (PST)
Received: from hp ([71.12.40.102])
by smtp.gmail.com with ESMTPSA id
00721157ae682-8b2b716d420sm40869397b3.33.2026.11.01.10.57.45
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 01 Nov 2026 10:57:47 -0800 (PST)
From: Tim Michals <tcmichals@gmail.com>
To: Jassi Brar <jassisinghbrar@gmail.com>,
Bjorn Andersson <andersson@kernel.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>
Cc: linux-sunxi@lists.linux.dev,
linux-remoteproc@vger.kernel.org,
devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Tim Michals <tcmichals@gmail.com>
Subject: [PATCH v3 0/7] Add Allwinner A523 message box and XuanTie E906
remoteproc support
Date: Sun, 1 Nov 2026 12:57:28 -0600
Message-ID: <20261101185735.762559-1-tcmichals@gmail.com>
X-Mailer: git-send-email 2.53.0
X-Mailing-List: linux-sunxi@lists.linux.dev
List-Id: <linux-sunxi.lists.linux.dev>
List-Post: <mailto:linux-sunxi@lists.linux.dev>
List-Help: <mailto:linux-sunxi+help@lists.linux.dev>
List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev>
List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev>
List-Owner: <mailto:linux-sunxi+owner@lists.linux.dev>
Precedence: list
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Rspamd-Server: rspamd-worker-8404
X-Spamd-Result: default: False [0.31 / 15.00];
BAYES_HAM(-5.50)[100.00%];
RBL_SENDERSCORE(2.00)[172.105.105.114:from];
SUSPICIOUS_RECIPS(1.50)[];
DMARC_POLICY_SOFTFAIL(1.00)[gmail.com : SPF not aligned (relaxed),
No valid DKIM,none];
MID_CONTAINS_FROM(1.00)[];
R_MISSING_CHARSET(0.50)[];
MAILLIST(-0.18)[generic];
MIME_GOOD(-0.10)[text/plain];
BAD_REP_POLICIES(0.10)[];
HAS_LIST_UNSUB(-0.01)[];
FREEMAIL_CC(0.00)[lists.linux.dev,vger.kernel.org,lists.infradead.org,gmail.com];
FORGED_SENDER_MAILLIST(0.00)[];
FROM_HAS_DN(0.00)[];
TAGGED_RCPT(0.00)[dt];
RCPT_COUNT_TWELVE(0.00)[15];
RCVD_COUNT_FIVE(0.00)[6];
TAGGED_FROM(0.00)[bounces-27023-noreply=patchwork.local];
ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG];
TO_DN_SOME(0.00)[];
FREEMAIL_FROM(0.00)[gmail.com];
RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[209.85.128.175:received,100.77.114.92:received];
RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from];
FROM_NEQ_ENVFROM(0.00)[tcmichals@gmail.com,linux-sunxi@lists.linux.dev];
R_SPF_ALLOW(0.00)[+ip4:172.105.105.114];
FORGED_RECIPIENTS_MAILLIST(0.00)[];
ARC_ALLOW(0.00)[subspace.kernel.org:s=arc20261015:i=2];
FREEMAIL_TO(0.00)[gmail.com,kernel.org,linaro.org,csie.org,sholland.org];
RCVD_TLS_LAST(0.00)[];
MIME_TRACE(0.00)[0:+];
RCVD_VIA_SMTP_AUTH(0.00)[]
X-Rspamd-Queue-Id: BB4D81C3F01
X-MORS-Enabled: yes
X-MORS-DOMAIN: patchwork.local
X-MORS-HOSTING: hosting172546
X-MORS-USER: hosting172546
X-getmail-retrieved-from-mailbox: INBOX
|
| Series |
Add Allwinner A523 message box and XuanTie E906 remoteproc support
|
|
Message
Tim Michals
Nov. 1, 2026, 6:57 p.m. UTC
This series adds a driver for the message box of the Allwinner A523, A527 and T527 (sun55i) and a remoteproc driver for their T-Head XuanTie E906 RISC-V core, with bindings, DT nodes and KUnit tests. v2: https://lore.kernel.org/linux-sunxi/20260927002021.797069-1-tcmichals@gmail.com/ Changes in v3 (details in each patch): - Message box: all four banks are clocked and out of reset (an unclocked bank drops writes). The FIFO is drained before its pending bit is cleared, and messages are delivered after the controller lock is dropped. A kick is done once the receiver's FIFO has room; a full FIFO is never written, and in poll mode the check and the write are under one lock. The shared reset is never asserted, as in sun6i-msgbox: the other banks carry traffic between the other processors. allwinner,tx-done-irq selects the receiver bank's write interrupt instead of the 1 ms poll. OMAP's ti,mbox-send-noirq is the same kind of per-mailbox switch, in the other direction: it turns the TX interrupt off for the WkupM3. - Remoteproc: one mailbox channel; the receive callback is deferred to an ordered workqueue; address translation covers only the two SRAM windows; debug reset and power domains added; all register regions, clocks and resets are required, the mailbox is optional. Carveouts and crash dump segments are registered in parse_fw(), and crash dumps contain both SRAMs and the carveouts. - Bindings: fixed lists for reg, clocks, resets and interrupts; "schema" dropped from the subjects (Krzysztof). All four message box interrupts are required: every A523 has them. The DSP and CPUS message box bank addresses were swapped in v2 and are fixed. The SRAMs are named as in the T527 manual (sram-a3-0, sram-a3-1). - KUnit patches moved after the drivers. Both suites redirect register access with static stubs to mocks, so they run on any architecture, UML included. Patches 6 and 7 only add tests and can be dropped or taken separately. - Rebased on next-20261030. Notes for review: - The remap register (0x07010364, PRCM) is shared with the DSP: bit 1 shares the 512 KiB SRAM A3_2 with the E906's subsystem, bit 0 belongs to the DSP. The driver maps only this register and read-modify-writes bit 1, which is safe while no other Linux driver writes it. I can move it to a syscon or the R-CCU, or describe SRAM A3_2 through the sunxi SRAM driver (allwinner,sram), if preferred. - memory-region index 0 is the virtio DMA pool, then dram and trace, as in the TI K3 and MediaTek SCP bindings. - The optional crash interrupt is supported by the driver but not wired in any DT and not tested on hardware; the A523 has no dedicated line for it and the vendor BSP has none. - System suspend is not supported: the E906 runs next to a Linux that stays up, so the driver has no PM callbacks. - Merging: patches 1, 2 and 6 are for the mailbox tree, 3, 4 and 7 for remoteproc, and 5 for sunxi. Patch 5 needs the bindings in patches 1 and 3. Testing on a Radxa Cubie A5E (A527), Linux 7.1 PREEMPT_RT and PREEMPT with the same driver and test files: - KUnit: 37/37 message box, 26/26 remoteproc, built in and as modules. Under UML on x86_64 one message box test is skipped (it needs SMP or spinlock debugging). - rpmsg ping (10000 messages, about 167 us round trip) and stress (100000 messages, 16 in flight, no loss), with vrings in DRAM and in SRAM, TX done by poll and by write interrupt, and message box unbind/bind with the remoteproc driver unbound. One interrupt per message. - The same tests with PROVE_LOCKING and DEBUG_ATOMIC_SLEEP (and PROVE_RAW_LOCK_NESTING on PREEMPT): no lockdep or sleep-in-atomic report. - On next-20261030: W=1 build of each patch with GCC and clang, built in and as modules, dt_binding_check and dtbs_check are clean; checkpatch --strict reports only "does MAINTAINERS need updating?" for the new files, which the entries added in patches 2 and 4 cover. Tools: I used Claude Code (Anthropic) to help review the code against the v2 comments, write the KUnit tests, run the board tests and draft commit messages. I reviewed every change; all tests above ran on my board. Thanks to Krzysztof Kozlowski, Chen-Yu Tsai and Rob Herring for reviewing v1 and v2. Tim Michals (7): dt-bindings: mailbox: Add Allwinner A523 message box mailbox: sun55i: Add Allwinner A523 message box driver dt-bindings: remoteproc: Add Allwinner A523 RISC-V remote processor remoteproc: sunxi: Add Allwinner A523 XuanTie E906 driver arm64: dts: allwinner: a523: Add message box and remoteproc nodes mailbox: sun55i: Add KUnit tests remoteproc: sunxi: Add KUnit tests .../mailbox/allwinner,sun55i-a523-msgbox.yaml | 146 ++ .../allwinner,sun55i-a523-rproc.yaml | 146 ++ MAINTAINERS | 15 + .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 47 + drivers/mailbox/Kconfig | 24 + drivers/mailbox/Makefile | 3 + drivers/mailbox/sun55i-msgbox.c | 613 ++++++++ drivers/mailbox/sun55i-msgbox.h | 95 ++ drivers/mailbox/sun55i_msgbox_kunit.c | 1387 +++++++++++++++++ drivers/remoteproc/Kconfig | 26 + drivers/remoteproc/Makefile | 2 + drivers/remoteproc/sunxi_rproc.c | 855 ++++++++++ drivers/remoteproc/sunxi_rproc.h | 124 ++ drivers/remoteproc/sunxi_rproc_kunit.c | 1314 ++++++++++++++++ 14 files changed, 4797 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/allwinner,sun55i-a523-msgbox.yaml create mode 100644 Documentation/devicetree/bindings/remoteproc/allwinner,sun55i-a523-rproc.yaml create mode 100644 drivers/mailbox/sun55i-msgbox.c create mode 100644 drivers/mailbox/sun55i-msgbox.h create mode 100644 drivers/mailbox/sun55i_msgbox_kunit.c create mode 100644 drivers/remoteproc/sunxi_rproc.c create mode 100644 drivers/remoteproc/sunxi_rproc.h create mode 100644 drivers/remoteproc/sunxi_rproc_kunit.c base-commit: 7649ba73f9e7e1e04d0b46213e39c79ae09dd55c