ARMADA - Marvell CN913x
PCI id 11ab:7080
driver npuep (contrib/npuep)
platforms xgsdt1, xgsdt2-116, xgsdt2-126136, xgsdt2-138
hardware Sophos XGS 136, assembly AMDA0201, 14 ports - ON THE BENCH
state all fourteen front ports carry traffic, connections forwarded in hardware -
~~96%~~ ~~91%~~ ~~92%~~ ~~93%~~ ~~96%~~ 97% by the table below (re-weighed 2026-10-22, after the discoveries, and up the same evening once the TCP window was checked in hardware, on 2026-10-23 with the heartbeat, on 2026-10-25 once the discoveries were all measured, and on 2026-10-29 once HTTP was measured the datasheet's way)
This is the family the project started on and the only one where the datapath works. Everything in the top-level README's "What works" section is this family, and the protocol documents describe it:
- ../facility-protocol.md - the facility framework and the handshake
- ../giu.md - the GIU datapath, which is what carries packets
- ../mvmgmt.md - the management netdev
- ../netagent.md - the network agent and the switch
- ../rpc.md - the RPC facility
- ../npu-bring-up.md - what has to happen, in order
Where this stands
First weighed on 2026-10-17, in the same form as the XGS 3300's table: each row says what it covers, the percentage is a judgement, and the column beside it names what holds the remainder.
| component | done | weight | still missing | what holds it | |
|---|---|---|---|---|---|
| 1 | the receive rate - one stream 773 Mbit/s in and 934 out with the 1 ms poll (415), 976 and 989 at MTU 9,000; a thousand connections at once through the box at MTU 1,500, the link full, in hardware (measured, 2026-10-18); HTTP the datasheet's way - 512 KiB a response, a thousand connections - the link full, all in hardware with the connections kept open (measured, 2026-10-29) | 20 | |||
| 2 | network interfaces - fourteen, assigned by the first boot itself (measured 2026-10-17: LAN bridge 192.168.1.1, WAN on Port1); IPv6 neighbours found on a routed port since 2026-10-18 (455) | 12 | configctl calls by handreload.sh puts the bridge, its members, every address and the management link back since 2026-10-20 (measured); reload.sh refuses (measured) |
||
| 3 | all fourteen front ports - bound, addressed, presented; F1 with a 1000baseT, read from the module, since #533 - measured), two streams of 2 GB through it counted to the frame (measured) |
8 | |||
| 4 | receive service - the rings polled every millisecond, 1,024 frames a pass | 6 | |||
| 5 | performance - the gigabit link full from MTU 1,000 (908 to 961 clear, IPsec 2 to 8% below); HTTP the datasheet's way, the link full (measured, 2026-10-29) | 80% | 7 | 1.40 | the 2.5G labels 11 and 12 not measured at 2.5G; |
| 6 | persistence - boot hook, a kernel stamp that is enforced, the kernel followed through 26.7 to |
100% | 5 | - | |
| 7 | resilience - two hours of TLS through the box with the flow maker on, 795 GiB and not a byte changed (measured); a connection the fast path gives back no longer loops (measured) | 4 | |||
| 8 | protocol and hardware understanding | 15 | 2026-10-25: every one of the discoveries measured on this board (680 closed); not yet understood: an XGS 107's frames tagged for no port (748), and flow offload over vendor version 23 on this family, which no board here runs. re-weighed 2026-10-22: a sweep of the vendor's sources and the coprocessor's own log found capabilities this project had not understood - the discoveries; 383 - another board of this family whose facility table never appears | ||
| 9 | the control plane | 100% | 10 | - | |
| 10 | the outbound datapath - on all four transmit queues since 2026-10-18, measured with every queue in use (ipv6-and-queues-2026-10-18) | 100% | 10 | - | |
| 11 | the rest of the appliance - the coprocessor's temperature in OPNsense's sensor list, fan and PHY readings over the management link, PoE |
6 | the SFP cages' diagnostics, |
||
| 12 | flow offload - |
10 | |||
| 13 | IPsec offload - AES-GCM and CBC with HMAC both ways in hardware, NAT-T, fragmentation before the envelope, replay windows to 4,096, every decrypted frame terminated; on by its setting since 418 | 10 | |||
| 14 | what the vendor's firmware does with this hardware and this project does not yet - found 2026-10-22: the TCP window checked in hardware, inspection that hands a connection back to hardware, live users, |
6 | 2026-10-25: the last two done on this board too - inspection that hands a connection back to hardware (measured) and live users (measured, the Captive Portal's since 2026-10-24). The discoveries - worked on one at a time; the TCP window in hardware since 2026-10-22, not yet after a give-back (measured); |
Weights sum to 129. Weighted: 91% - re-weighed 2026-10-18 with row 12 at 92% (it was 85% on a delivery that was not happening): the remainder is 10.65 of 123, which is still 91%. Weighted: 92% - row 12 at 95% once IPv6 was measured through the box the same evening: the remainder is 10.35 of 123. Weighted: 92% - row 12 at 97% once the flow writes were posted and a takeout took a connection out, later the same evening: the remainder is 10.15 of 123. Weighted: 92% - re-weighed 2026-10-19 with row 3 at 95%, F1 carrying a module and measured, and row 12 at 98%, its counts reaching pf and the interfaces: the remainder is 9.65 of 123. Weighted: 93% - re-weighed 2026-10-20 with row 7 at 80%, once the integrity soak was run on this board: the remainder is 8.45 of 123. Weighted: 94% - re-weighed 2026-10-20 again, with row 12 at 100% once tunnel connections were in the table and row 13 at 95% once IPv6 and extended sequence numbers were taken: the remainder is 7.25 of 123. the remainder is 7.05 of 123 since row 7 went to 85% the same day, when the slow minutes of 531 were found to be the bench PC's - still 94%.Weighted: 95% - row 7 at 95% the same day, once an hour of TLS crossed the IPsec engine without a byte changed: the remainder is 6.65 of 123. the remainder is 6.45 of 123 since row 7 went to 100% the same evening, once the soak through the engine ran two hours - still 95%. The remainder is 5.85 of 123 since row 2 went to 100% too, once the reload that stopped the host was found and fixed - still 95%. The remainder is 5.85 of 123 since row 2 went to 100% too, once the reload that stopped the host was found and fixed, and 5.55 since row 4 went to 95% once the coprocessor's doorbells drove the receive - still 95%. Weighted: 96% - row 13 at 100% the same evening, once six tunnels ran at once through the engine: the remainder is 5.05 of 123. the remainder is 5.05 of 123, and 4.75 since row 4 went to 100% once an hour of TLS crossed the host on the doorbells and they became the default - still 96%. Weighted: 91% - re-weighed down on purpose on 2026-10-22 after the discoveries: row 8 at 90%, row 12 at 95% and a new row 14 at 0%, the remainder 12.00 of 129. Weighted: 92% - row 12 at 98% and row 14 at 15% the same evening, once the first of them, the TCP window, was checked in hardware: the remainder 10.80 of 129. Weighted: 93% - row 14 at 35% on 2026-10-23, once the heartbeat answered on this family by the beat taken: the remainder 9.60 of 129. Weighted: 96% - row 14 at 100% and row 8 at 93% on 2026-10-25, once the discoveries were all measured: the remainder 5.25 of 129. Weighted: 96% - row 11 at 85% on 2026-10-27, once the status light was lit at the end of the boot and the reset button's flag read: the remainder 4.95 of 129. Weighted: 97% - row 1 at 100% on 2026-10-29, once HTTP was measured the datasheet's way: the remainder 3.95 of 129.
Why this figure went down on 2026-10-22 - and why that is good news. A sweep of the vendor's own sources, its board package and the coprocessor's own log found capabilities of this hardware that this project had not known about: the TCP window checked in hardware, inspection that hands a connection back to hardware, live users, and a heartbeat with the fast path - and on the XGS 3300 also a deep packet inspection engine on the coprocessor and a transmit rate limit for each front port. It also showed that a connection in hardware has its TCP window checked nowhere today. These discoveries matter a great deal, so the table now counts them instead of leaving them out: row 8 (understanding) at 90%, row 12 (flow offload) at 95%, and a new row 14 at 0% for what the vendor's firmware does with this hardware and this project does not do yet. They will be worked on one at a time and arrive as updates; every one of them, with its evidence, is on the discoveries page. The first arrived the same evening: the coprocessor checks the TCP window of a connection it holds, and a take-back gives pf its numbers back - row 12 at 98% and row 14 up for it (measured). The second, the heartbeat, is not on this family: its fast path reads the message and drops it, unanswered - row 14 at 20% for the three left, the remainder 10.50 of 129, still 92% (measured). It is, the next day: the answer here is the beat taken off the host's queue by the fast path's own process - row 14 at 35%, the remainder 9.60 of 129, 93% (measured). The same day: a connection a cut names, dropped on the coprocessor itself by its verdict (discovery 3) - a UDP flood cut sent the host 36 frames in ten seconds against 280,202 - which row 14 never weighed, so no figure moves for it (measured). 2026-10-24: pf's DSCP mark kept on a connection in hardware (discovery 8) - a normalization rule's EF arrived as 0xb8, where a connection in hardware had left as 0x0 - which row 14 never weighed either (measured). The same day: a connection its LAN bridge carries made a bridged flow in hardware (discovery 9), where the host's bridge had carried every frame of it - which row 14 never weighed either (measured). The same day: a connection routed by a VLAN subinterface made in hardware (discovery 10), the coprocessor writing its tag - where every VLAN's frames had crossed the host, its processors 32 to 39 % busy against 0.9 to 1.7 % - which row 14 never weighed either (measured). 2026-10-25, every discovery measured (680 closed): inspection then hardware and live users, the two row 14 still had, are done on this board too - row 14 at 100%, row 8 at 93%, the remainder 5.25 of 129, 96%.
What is specific to this family
The facility table sits at a fixed offset in the window and is guarded by a cookie -
0xAFACAFAC for the facility itself, 0xD0FAC10D for the barmap - and its facility records are
{bar, type, offset, size}. Target-to-host doorbells are MSI-X vectors, which npuep allocates.
A fifth facility, GIU, exists here and is what carries the front ports. It does not exist on OCTEON at all, and its absence there is the clearest single sign that these are different protocols rather than one protocol with two PCI ids.
GIU also has four functions for an inspector, which the coprocessor's startup script sets up
whether the host makes them or not (giu-1 to giu-4). Each is backed by memory inside the PF's own
windows at an offset the host writes before its management rings are ready; its configuration is in
its second window, it answers once asked to reset, and every command it is sent names it as a function
- client type and number - or nothing answers. The host makes the first since 2026-10-23, when asked
to, for Suricata on
oxips0: inspection, then hardware.
The reset polarity is a per-board table rather than a constant, so the module reads the assembly number out of the bridge's EEPROM and looks it up. Values are carried for AMDA0200, AMDA0201, AMDA0202-0205, AMDA0208 and AMDA0224. Only AMDA0201 has been tested on real hardware.
What is held here, and what it allows
| material | detail |
|---|---|
| hardware | XGS 136 on the bench, assembly AMDA0201 |
| coprocessor rootfs | complete, including NPU-BSP-slot1/rootfs/ |
| fast path | usfp for this family, 1.9 MB, with symbols |
| firmware | U-Boot for all four ARMADA platforms, from BSP 21.0.0.169 and 22.0.2.546 |
| source | the Sophos GPL release, 794 files, including the pcie_ep_armada patches |
| launcher | armada_target_setup_usfp.sh, selected by DP_DT1/DT2_STARTUP_SCRIPT |
This is the family with the most complete material and the only one whose ports all carry traffic.
Building and running it
npuep is not packaged, for the same reason octep is not: an out-of-tree module has to be
compiled against the headers of the kernel that is actually running, and OPNsense ships no kernel
sources. So it is built on the appliance. install/install.sh lays the sources down in
/usr/local/share/os-xgs-npu/npuep and builds through install/kernel-follow.sh - the same
follower that rebuilds the OCTEON TX module after every kernel update, which since 2026-10-13
follows whichever of the two modules is installed - and 07-npuep loads it at boot, after
reading the kernel stamp beside it and refusing a module built for another kernel (the previous
module is kept as npuep.ko.prev for the kernel it was built for). Before that date the follower
answered every tick on this appliance with "the driver is not installed on this machine", the
upgrade and stop hooks were gated on the OCTEON TX's PCI identity alone, and the boot hook read
no stamp: a kernel update here would have loaded the old module unchecked.
Measured on 2026-10-13, on the XGS 136, with the owner running the update from the GUI: OPNsense
26.7 to 26.7.7 brought the kernel from 15.1-RELEASE-p1 to p4. The reboot's stop hook ran the
follower; it read p4 from /boot/kernel/kernel, fetched that commit's sources, built the module
from the laid-down tree, kept the p1 module as npuep.ko.prev with its stamp, installed the p4
one and cleared the fall-back - 2 min 59 s in all - and the host came up on p4 with the module
loaded, all fourteen ports present and the WAN lease back, nothing done by hand.
Measured again on 2026-10-30, on the XGS 136: the update from OPNsense 26.7.7 to 26.7.8 brought the kernel
from p4 (n284159) to p6 (n284176). The follower built the module from the staged set the kernel
the update had put in /boot/kernel before the update's own reboot - the p4 one kept as
npuep.ko.prev with its stamp - and the host came up on p6 with the module loaded and the five front
ports that had link before; install/verify.sh then read 10 passed, 0 failed. The README's kernel
badge carried n284159 until that day.
Measured again on 2026-11-16, on the XGS 136: the update from OPNsense 26.7.8 to 26.7.9 brought a new
kernel under the same label - p6, from n284176 to n284285. The follower built the module from
the staged set the kernel the update had put in /boot/kernel before the update's own reboot -
the n284176 one kept as npuep.ko.prev with its stamp - and the host came up on n284285 with the
module loaded and the five front ports that had link before; install/verify.sh then read 14
passed, 0 failed. The README's kernel badge carried n284176 until that day.
Corrected on 2026-11-30: the paragraphs of 2026-10-30 and 2026-11-16 said the module was built from
the staged set. An update of OPNsense stages no kernel set - it puts the new kernel in /boot/kernel
and reboots five seconds later, as the pages say from OPNsense's
own update.sh, and as the firmware log of the update to 26.7.10 on the second XGS 3300 read: the
base and kernel sets fetched, the kernel installed, then the base, then the reboot. Only an upgrade
to a new major release stages one. The follower reads /boot/kernel/kernel in that case, and built
from it.
Measured again on 2026-11-30, on the XGS 136: the update from OPNsense 26.7.9 to 26.7.10 brought the
kernel from p6 (n284285) to p7 (n284337). The follower built the module for the new kernel in
/boot/kernel at 21:51:43 UTC, before the boot that brought the host up on it at 21:52:31 - the
n284285 one kept as npuep.ko.prev with its stamp - and the host came up on n284337 with the module
loaded and the 5 front ports that had link before; install/verify.sh then read 15 passed, 0
failed. The README's kernel badge carried n284285 until that day.
Since 2026-10-30 the fall-back to kernel.old is held until the module matches, not for one boot
(measured on the first XGS 3300);
the same follower runs here, and it has not been tried on this appliance yet.
sh contrib/npuep/fetch-sources.sh
sh install/install.sh
The coprocessor from the host
The coprocessor's console is the host's second UART - hint.uart.2.at="isa", port="0x3E8",
irq="3" in /boot/loader.conf.local, so /dev/cuau2 on OPNsense at 115200 - the same
arrangement as the OCTEON TX appliance's. A newline answers with its login prompt; logged in, it
is a Buildroot 2018.11 userland over Linux 4.14.207, with 3 GB of
memory and usfp running. An idle coprocessor prints nothing, so silence is not death. Read on
2026-10-14 on the XGS 136.
The helper that runs one command and returns its reply (as on the OCTEON TX box: a background
reader on the line, the command between two echoed markers) has one difference here: the marker
is sent in two quoted halves, echo "---MARK$$""---", because this shell echoes the command line
back wrapped at 80 columns and bracketed-paste codes around it, and a marker that appears whole in
that echo is taken for the first marker. Keep each command short and plain; some pipes with
quoted field separators came back empty through the line and were not understood.
What the console gives on this appliance, all of it read-only:
- The vendor's tools are on the coprocessor, not on the host as they were under the
original firmware on the OCTEON TX box:
xgs-platform(the platform store: assembly AMDA0201-0003, revision 08, the base MAC and 16 addresses),xgs-ports -b(the real MAC of every label),xgs-phy-temperature -l <label>,xgs-poe -m all,xgs-sff-decode -l <label>,xgs-eeprom -r,xgs-i2c-reg,xgs-mdio(clause 22 and 45),xgs-reg(raw NPU registers),xgs-led <phy|all> <left> <right>andxgs-led-identify -l <label> <seconds>(the identify light this project's Link Health page has no path to from the host - here it has one, through the console; not wired),xgs-sgpio. Two are never run:xgs-healthmondandxgs-1us-led-bus-test. - There is no CPLD on the XGS 136.
xgs-cpld -tand every register read answer "Error opening cpld handle. No such device". The 1U sensor block - CPU, NPU and inlet temperatures and two fans behind a SMBus address, the one the OCTEON TX appliance reads from its host bus - is not on this board. Its temperatures are the host's own (amdtemp, the NCT6779D), the coprocessor's thermal zones (ap-thermal-icandcpu0..3, and the two CP dies atf2400078/f4400078, 41 to 50 C idle), and the PHYs:xgs-phy-temperaturereads 55 C on label 1 (an 88E6193X PHY) and 49 to 53 C on labels 9 to 12 (the AQR412C lanes). - The port map, from the vendor's own platform data (
AMDA0201-0003R00.txtin the GPL release, confirmed by the tools): labels 1 to 8 are the 88E6193X's ports 1 to 8; F1 and F2 are its ports 9 and 10, SFP cages oni2c1(buses 2 and 1, 0x50 and 0x51) with GPIO lines for presence, TX fault, TX disable, RX LOS and rate select; labels 9 to 12 are the four lanes of the AQR412C on the CN9131's own ports, 9 and 10 rate-capped at 1G, 11 and 12 at 2.5G and on the PoE module - one module, 62 W, status good, asxgs-poereports. - The fast path's syslog (tag
dpdk) saysmrvl_mtu_set(): MTU too big, max MTU possible limited by current mbuf sizeat start-up: the jumbo question for this family, unmeasured. mvmgmt0, the management link over PCIe, is up at the host and NO-CARRIER at the coprocessor and carries nothing (issue 374); the coprocessor runssshd, so that link, once it works, is the fast channel. Until then the console is the only path.- Where to look, and what this was read from. The parts named above are photographed on
the hardware page: the 88E6193X switch,
the AQR412C quad PHY, the PD69104 PoE controller,
the NCT6779D, the CN9130 and its memory,
the J1 LED header, with the port chain
and the board map drawn from them. The port map, the PoE
module and the PHY addresses come from the vendor's own platform data file for this assembly,
data/AMDA0201-0003R00.txtin the GPL release, read beside the tools' answers; the console helper and the link are on mvmgmt.md and mvmgmt-in-opnsense.md; the measurements of 2026-10-14 are on issues 374 and 372. - The plugins read and act over the link now. With the management link in place, os-fanctl
reads the coprocessor's seven thermal zones and the PHY behind every copper label in one
command over it (nineteen readings in half a second, cached a minute; the groups
npuandnicon its page), and Link Health identifies a front port by asking the coprocessor's own identify tool by the printed label - the chassis group saysidentify: coprocessor, and the capability is offered while the link's script is installed. Both measured on the XGS 136 on 2026-10-14; the light itself was not yet watched. - The switch tool runs here unchanged.
contrib/mvsw, built for the OCTEON TX box, drives this board's 88E6193X through the samemvmdio_uioat bus 0, SMI address 2 (the board file'smdio22:0:2):idanswers device 0x0193 revision 0;dumpshows port 0 (the coprocessor's uplink) forwarding with link and a VLAN map to every port, every panel port forwarding with a VLAN map to port 0 alone - the same isolation as on the 3300 - and the two SFP cages at ports 9 and 10; Port Control 2 reads jumbo mode 2 (10,240 bytes) on port 0 and mode 1 (2,048) on ports 1 to 10, the 3300's values exactly - as the coprocessor leaves them;since 2026-10-17 a start hook writes 10,240 into ports 1 to 10 at every boot (from 2026-10-17 a start hook wrote 10,240 into ports 1 to 10 at every boot (scripts/xgs/switch-jumbo.sh)scripts/xgs/switch-jumbo.sh); since 2026-10-24 the network agent sets each port's limit from the port's MTU, and the host no longer touches the bus (the measurement). It went over the console in base64, 500 characters a line, verified by checksum at both ends. One difference from the 3300: about one read in ten returns another transaction's data here - the coprocessor's own network agent polls the same MDIO bus, and the multi-chip access is a command write followed by a data read - so a register is read three times and the majority taken, and nothing here writes on the strength of a single read.
The discussion of this page is held in the project's GitHub Discussions. Showing it here loads giscus from giscus.app and GitHub, and writing in it needs a GitHub account - what that means.