Skip to content

arm64: dts: apple: t8132-j773g: enable the Ethernet port - #1898

Open
techmore wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
techmore:j773g/ethernet-dt-20261114
Open

techmore wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
techmore:j773g/ethernet-dt-20261114

Conversation

@techmore

@techmore techmore commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The J773g device tree inherits the J713 managed-radio PCIe/DART policy, but the J773g also has an Ethernet controller on PCIe port 2 behind dart_apcie2 (AQC113 on the 10GbE model, BCM57762 on the gigabit model). With only the inherited radio map, port 2 is disabled and its requester ID has no IOMMU mapping. The ADT records the Ethernet function behind mapper-apcie2, stream 1.

Change

The J773g device tree changes are listed below. The shared port description also documents the J773g opt-out.

  • stop using the inherited J713 managed-radio properties on dart_apcie0 and pcie0;
  • keep RID 0x100/count 2 on dart_apcie0 (the two radio streams);
  • add RID 0x200/count 1 on dart_apcie2 (the ADT's stream 1);
  • enable dart_apcie2 and PCIe port 2.

Tested

Unit Stub Result
J773g, 10GbE (AQC113, atlantic) 26.6.2 3/3 boots: end0 at 2500 Mb/s with an address; brcmfmac creates wld0
J773g, 10GbE 27.2 2 boots on 2026-11-19, one with none of the bring-up kernel parameters: end0 at 2500 Mb/s, DHCP, SSH. Needs a PMGR policy fix underneath that is not part of this PR; no kernel boots on a 27.2 stub without it
J773g, gigabit (BCM57762, tg3) 26.6.2 4/4 boots by DjDeveloperr (comment above): end0 at 1000 Mb/s, wld0 created

hci_bcm4377 logs no brcm,taurus-bf-cal-blob property with and without this change.

Not tested

  • A full dtbs_check: dt-schema crashes on an existing apple,tunable uint8-array in this tree. A warning-delta run found nothing new from this change.
  • Boot after a full power-off, Wi-Fi association and traffic, Bluetooth, suspend.

The shared APCIe power-domain ownership question and the overlap with #2770 are tracked in the review reply. The hardware rows above predate this wording-only revision.

Assisted-by: LLM (OpenAI:GPT-6.2-Astra)

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Hardware test on a second J773g: a base Mac mini M4 with gigabit Ethernet, 2026-11-18/19. The Ethernet controller on this unit is a Broadcom BCM57762 (tg3), not the AQC113.

Setup

  • Kernel: the installed linux-aurora 7.3.0-1-40, i.e. aurora-silicon/linux 9125b31 (cand/7.3.0-40), unchanged.
  • DTB: 9125b31 plus this PR's commit, cherry-picked as-is and built with dtc 1.8.1. The stock J773g DTB inside the ESP Stage 2 (m1n1/boot.bin) is byte-identical to a host build of 9125b31, so only the DTB was swapped.
  • Boot chain: aura Stage 1 1.0.0b13, Stage 2 1.0.0b13 on the first boot and a J773g display build on the later boots, U-Boot 250385f8.
  • pcie-apple, apple-dart and gpio-macsmc have no commits between your tested base 1f5037ae and 9125b31.

Without this change
apple-dart 490000000.iommu fails probe with -16 (the managed-radio admission), and port 0 then stays at setup fail: -517 forever. There is no Ethernet and no Wi-Fi.

With it: 4/4 boots (one GRUB debug entry, two aura-try trials, one plain boot)

  • Both ports train: pci@0,0 link up after 2ms, pci@2,0 link up after 15ms.
  • 02:00.0 [14e4:1682] BCM57762 binds tg3 and appears as end0, which runs at 1000 Mb/s with the MAC aura fills in. SSH over it works from the first boot, about 23 s after power-on.
  • 01:00.0 [14e4:4434] BCM4388 binds brcmfmac and creates wld0.
  • 01:00.1 (hci_bcm4377) logs the same no brcm,taurus-bf-cal-blob property error you saw.

So the change covers the gigabit model too, not only the 10GbE AQC113.

Not covered: Wi-Fi association and traffic, Bluetooth, suspend.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-19T12:30:16.329393Z
We couldn’t complete this review. Comment @codex review to try again.
4248745 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Blockers: 1.

  1. The commit (4248745) has an Assisted-by: LLM trailer. Please drop it from the commit message and put the disclosure on the last line of the PR body instead (Assisted-by: LLM (<Vendor>:<Model>)). The body has no such line yet.
  2. arch/arm64/boot/dts/apple/t8132-j773g.dts:263-270 and the commit message name only the AQC113. DjDeveloperr's 4/4 run shows that the gigabit J773g has a BCM57762 (tg3) on the same port and stream, so please word both to cover either controller (e.g. "the Ethernet controller on port 2").
  3. Nit: arch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi:7-9 still says the port and its DART stay disabled until the managed contract admits a second port. That is no longer true for the J773g after this change. Mention that the J773g enables port 2 by not using the contract.

The DT is otherwise consistent. The iommu-map keeps RIDs 0x100-0x101 on dart_apcie0 streams 1-2, and RID 0x200 goes to dart_apcie2 stream 1. Both match under the inherited iommu-map-mask = <0xffff> (t8132-jxxx.dtsi:452). Deleting apple,managed-sids from both pcie0 and dart_apcie0 removes the -EBUSY probe path described in the commit, and the ethernet0 child and port02 node come from t8132-desktop.dtsi and t8132-apcie-port2.dtsi unchanged.

HW row: J773g (either variant) on the current integration/aurora tip with this commit, booted from a full power-off: end0 and wld0 up, Wi-Fi associated with traffic, and 0 AVC, 0 failed units, 0 new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor

On 110861f, the J773g still uses the inherited managed-radio properties and port 2 and dart_apcie2 stay disabled, so the change is still needed. The commit applies cleanly on 110861f. #2770 (open, stacked on #2762) carries the same port 2 mapping plus clkreq GPIOs, link speeds and multi-port deep sleep. Whichever lands first, the other should drop the duplicate hunk. @techmore, the review points are still open: move the Assisted-by line from the commit to the PR body, word the comment and commit for either Ethernet controller, update the t8132-apcie-port2.dtsi note, and add the full power-off J773g row on the current tip.

Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches; CHECK_DTBS over every Apple DTB: no new warnings against the tip.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formal pre-PR §1–§6 review at 4248745d32e2 against integration/aurora tip 70a00e583b03: REQUEST_CHANGES.

DT, PMGR & Supersession Audit

  • Not superseded on live integration/aurora: arch/arm64/boot/dts/apple/t8132-j773g.dts still inherits the managed-radio pcie0/dart_apcie0 properties and leaves dart_apcie2/port02 disabled. Note that open PR #2770 (stacked on #2762) overlaps this exact J773g Ethernet enablement and includes the PMGR fix plus port 2 clkreq-gpios/deep-sleep support.
  • §6 (CI & naming): Live CI is green (dt-checks run 43608987977, host-tests run 43608987958), though both ran on 2026-11-14 before commit 202ede05e539.

Blockers

  1. DT / PMGR correctness on live integration/aurora (70a00e583b03): Commit 202ede05e539 (2026-11-19) added power-domains = <&ps_apcie_sys_gp>; to &dart_apcie2 in arch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi:25, while &pcie0 and &dart_apcie0 carry no power-domains (as noted in 202ede05e539's own commit message). Enabling &dart_apcie2 in t8132-j773g.dts without /delete-property/ power-domains; makes dart_apcie2 the sole genpd consumer of ps_apcie_sys_gp (parent ps_apcie_gp): apple-dart runtime PM (drivers/iommu/apple-dart.c:2996,3771,5942,7596) can power-gate ps_apcie_sys_gp/ps_apcie_gp underneath active pcie0/dart_apcie0, and dart_apcie2 will fail/defer if J773g disables ps_apcie_sys_gp under the T8132 PMGR policy. Add /delete-property/ power-domains; on &dart_apcie2 (or coordinate directly with #2762/#2770) and update the commit message claim that the controller/DART keeps no power domains.
  2. §4 (Commit attribution / AI trailer): Commit 4248745d32e2 carries an Assisted-by: LLM commit trailer, and the PR description has no Assisted-by: line. Remove Assisted-by: from the commit message (human author/committer + human Signed-off-by: only) and place the Assisted-by: disclosure in the PR body.
  3. §5 (Exact-head hardware & regression evidence): Re-test on current integration/aurora (with the &dart_apcie2 power-domains fix) from a full power-off boot on J773g showing end0 and wld0 up, Wi-Fi associated with traffic, and the required regression pass (0 SELinux denials, 0 failed units, 0 new kernel errors).
  4. DT/commit accuracy (minor): Reword the commit message and t8132-j773g.dts comment to cover both J773g Ethernet variants (10GbE AQC113 atlantic and 1GbE BCM57762 tg3), and update the stale managed-radio comment in arch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi:7-9.

Assisted-by: LLM (Gemini 4 Neon)

Copy link
Copy Markdown
Contributor Author

I checked the port-2 change on integration/aurora 5746ef8a5afd. The revised DTS comment and commit message cover both AQC113 and BCM57762, and the shared port description explains the J773g opt-out. The J773g DTB preserves the two radio RIDs and maps Ethernet RID 0x200 to dart_apcie2 stream 1. The J604 port-2 DART keeps its original disabled status and power domain.

I found a power-management blocker before pushing the revision. With the inherited domain retained, dart_apcie2 would be the only modeled consumer of a domain shared with pcie0 and dart_apcie0. Dropping its domain instead produces one new finding from scripts/dtc/apple-dart-pd-check.py against the base DTB: /soc/iommu@492000000 dart_apcie2 apple,t8132-dart okay: no power-domains (new). The absence of new schema warnings misses that failure.

Should J773g model all three consumers under its PMGR policy, or does firmware own this domain throughout Linux runtime? The latter would need a documented, narrowly justified checker exception. #2770 overlaps the port mapping and also drops the domain. Whichever lands second should drop the duplicated change. I am holding the branch revision, including its attribution cleanup, pending that ownership decision. The full-power-off boot with Ethernet, associated Wi-Fi carrying traffic and clean health counts is still outstanding.

J773g uses an AQC113 or BCM57762 Ethernet controller on port 2 of
the built-in PCIe controller (ADT pci-bridge2) behind its own DART (dart-apcie2). The
shared T8132 tree runs that controller under the managed radio contract,
which admits port 0 only, so port 2 and dart-apcie2 stay disabled and the
Mac mini has no wired network.

On the J773g the managed radio description is also what stops PCIe as a
whole: with apple,managed-sids on dart-apcie0 the DART probe fails with
-EBUSY, the root port defers forever (pci@0,0 setup fail: -517), and
neither the Ethernet nor the radio appears.

Do not use the managed radio contract on this board: drop
apple,managed-sids and apple,dma-range, map the Ethernet's requester ID
to dart-apcie2 stream 1, and enable port 2 and its DART. The controller retains its inherited power-domain configuration.

Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
@techmore
techmore force-pushed the j773g/ethernet-dt-20261114 branch from 4248745 to c7b87cb Compare November 24, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants