Thor MGBE 25G — short analysis
NVIDIA documents two paths to enable 25G symmetric on Thor MGBE0..3.
Both target the p4071/T4000 module on the AGX Thor Developer Kit
carrier, flashed with jetson-agx-thor-devkit.conf.
| Path | Where the edits live | Reflash needed | Reversible by | Works on |
|---|---|---|---|---|
| HR — source rebuild (Adaptation Guide §“Enable 25 Gigabit Ethernet on QSFP Port”) | tegra264-p4071-0000.dtsi + BPMP DTB |
yes | reverting source + rebuild | p4071+p3834-0008 |
| SD — ODMDATA token (“Enable 25 GbE on QSFP”) | jetson-agx-thor-devkit.conf |
yes | unset ODMDATA, reflash | p4071+p3834-0008 |
Companion patches attached:
thor-25g-option-hr.patch— git patch
againstLinux_for_Tegra$ /source/...thor-25g-option-sd.patch— git patch
againstLinux_for_Tegra$ /jetson-agx-thor-devkit.conf
What each path actually changes
HR edits three knobs at source so the prebuilt DTBs are correct:
- Kernel DTSI per controller:
nvidia,uphy-gbe-mode = <1>→<2>,
deletenvidia,phy-iface-mode = <0x0>,fixed-link.speed = <10000>
→<25000>. - BPMP DTB
/uphy/:uphy1-config = <7>→<8>,
mgbe[0-3]-speed = <2>→<3>. - Rebuild + redeploy both DTBs, reflash.
SD lets MB1 ODMDATA tokens patch the same BPMP-DTB properties
at boot, and lets the prebuilt tegra264-p4071-0000+p3834-xxxx-dynamic.dtbo
patch the same kernel-DT properties via its uphy1-config-8-keyed
fragments. The end-state device tree is identical; only the
production mechanism differs.
How *-dynamic.dtbo conditional fragments load
p3834-0008-p4071-0000-nvme.conf registers the dynamic overlay
with:
OVERLAY_DTB_FILE+=",tegra264-p4071-0000+p3834-xxxx-dynamic.dtbo";
That gets the dtbo loaded by UEFI plugin-manager at boot — but
loaded ≠ applied. Every MGBE fragment in this dtbo is gated:
fragment@1 {
target-path = "/bus@0/ethernet@a808a10000";
delete_prop = "nvidia,phy-iface-mode";
board_config {
odm-data = "uphy1-config-8"; /* <-- predicate */
};
__overlay__ { status = "okay"; nvidia,uphy-gbe-mode = <2>; ... };
};
Plugin-manager evaluates each fragment’s board_config predicates
against the active ODMDATA string. With ODMDATA="" (stock), all
four MGBE fragments evaluate false and the __overlay__ bodies are
silently skipped. The kernel boots against the base
tegra264-p4071-0000+p3834-0008-nv.dtb, which is 10G-only per
tegra264-p4071-0000.dtsi.
Note: confirm the active DTB_FILE, TBCDTB_FILE, and BPFDTB_FILE
from the flash $device*.conf that you use.
Diagnostic — was the fragment applied? Read any single MGBE
node from the live DT (/proc/device-tree/bus@0/ethernet@a808a10000/)
and check:
| Property | Fragment applied (25G) | Fragment skipped (stock 10G) |
|---|---|---|
nvidia,uphy-gbe-mode |
<2> |
<1> |
fixed-link/speed |
<25000> |
<10000> |
nvidia,phy-iface-mode |
absent (deleted by overlay) | present as <0x00> |
nvidia,phy-iface-mode is the cleanest tell — the fragment carries
delete_prop = "nvidia,phy-iface-mode", so its survival in the live
DT is proof the fragment didn’t fire. Equivalently, check what
plugin-manager actually saw:
cat /proc/device-tree/chosen/plugin-manager/odm-data 2>/dev/null | tr '\0' '\n'
cat /proc/cmdline | tr ' ' '\n' | grep -i odm
Net effect on the SD patch:
ODMDATA="" -> predicate false -> 10G live
ODMDATA="uphy1-config-8,mgbe[0-3]-speed-3" -> predicate true -> 25G live
The dtbo itself does not need to change. The SD patch flips the
predicate; the rest is mechanical.
When to use which
- Pick SD if the system already flashes from
jetson-agx-thor-devkit.conf, you’re OK with the prebuilt dynamic
overlay’s exact shape, and you want a 1-line change. Most cases. - Pick HR if you need to customize anything else inside the MGBE
fragments (MTU, MAC index strategy, additional driver knobs),
you’re cutting a downstream BSP for distribution, or you want the
25G enable to be deterministic in your build artifact without an
external ODMDATA dependency.
Important – Rebuilding the BPMP DTB (HR path, step 2)
JP7.2 does not ship BPMP DTS source. Do the edit via dtc
round-trip:
cd ~/.git/jp7.2/Linux_for_Tegra/bootloader/generic
BPMP=tegra264-bpmp-3834-0008-4071-xxxx.dtb
dtc -I dtb -O dts -o /tmp/bpmp.dts $BPMP
sed -i \
-e 's|uphy1-config = <0x7>;|uphy1-config = <0x8>;|' \
-e 's|mgbe\([0-3]\)-speed = <0x2>;|mgbe\1-speed = <0x3>;|g' \
/tmp/bpmp.dts
dtc -I dts -O dtb -o $BPMP /tmp/bpmp.dts
cp $BPMP ../$BPMP # second location flash.sh expects
Verify before flashing:
dtc -I dtb -O dts $BPMP | sed -n '/^\tuphy /,/^\t};/p'
# expect: uphy1-config = <0x8>; mgbe[0-3]-speed = <0x3>;
Caveats
- All four ports run at the same rate.
uphy1-config-8
allocates UPHY1 lanes to MGBE in a 4×25G grouping; you cannot
mix per-port (e.g. 25G on mgbe0..2 and 10G on mgbe3) under this
config. - Cable / endpoint reach matters. Passive QSFP28 copper at 25G
is reliable to roughly 3m; longer runs need active-DAC or AOC
assemblies. Optical SFP28 modules add a cost per/end and a small
latency hit. - Verify ODMDATA token form. Use the top-level dashed form
(mgbe<N>-speed-3), not the legacy sub-node form
(mgbe<N>_speed=25G). The latter is parsed against a
/mgbe/mgbe@Nsubtree that Thor’s BPMP-DTB does not have, and
the entire ODMDATA line is silently dropped.
thor-25g-option-sd.patch.txt (1.3 KB)
thor-25g-option-hr.patch.txt (2.5 KB)