Repository navigation
arm64: dts: apple: t8132-j773g: enable the Ethernet port - #1898
Conversation
|
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
Without this change With it: 4/4 boots (one GRUB debug entry, two aura-try trials, one plain boot)
So the change covers the gigabit model too, not only the 10GbE AQC113. Not covered: Wi-Fi association and traffic, Bluetooth, suspend. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Blockers: 1.
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 HW row: J773g (either variant) on the current integration/aurora tip with this commit, booted from a full power-off: Assisted-by: LLM (Claude:Opus 5.5) |
|
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. |
There was a problem hiding this comment.
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.dtsstill inherits the managed-radiopcie0/dart_apcie0properties and leavesdart_apcie2/port02disabled. Note that open PR #2770 (stacked on #2762) overlaps this exact J773g Ethernet enablement and includes the PMGR fix plus port 2clkreq-gpios/deep-sleep support. - §6 (CI & naming): Live CI is green (
dt-checksrun43608987977,host-testsrun43608987958), though both ran on 2026-11-14 before commit202ede05e539.
Blockers
- DT / PMGR correctness on live
integration/aurora(70a00e583b03): Commit202ede05e539(2026-11-19) addedpower-domains = <&ps_apcie_sys_gp>;to&dart_apcie2inarch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi:25, while&pcie0and&dart_apcie0carry nopower-domains(as noted in202ede05e539's own commit message). Enabling&dart_apcie2int8132-j773g.dtswithout/delete-property/ power-domains;makesdart_apcie2the sole genpd consumer ofps_apcie_sys_gp(parentps_apcie_gp):apple-dartruntime PM (drivers/iommu/apple-dart.c:2996,3771,5942,7596) can power-gateps_apcie_sys_gp/ps_apcie_gpunderneath activepcie0/dart_apcie0, anddart_apcie2will fail/defer if J773g disablesps_apcie_sys_gpunder 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. - §4 (Commit attribution / AI trailer): Commit
4248745d32e2carries anAssisted-by: LLMcommit trailer, and the PR description has noAssisted-by:line. RemoveAssisted-by:from the commit message (human author/committer + humanSigned-off-by:only) and place theAssisted-by:disclosure in the PR body. - §5 (Exact-head hardware & regression evidence): Re-test on current
integration/aurora(with the&dart_apcie2power-domainsfix) from a full power-off boot on J773g showingend0andwld0up, Wi-Fi associated with traffic, and the required regression pass (0 SELinux denials, 0 failed units, 0 new kernel errors). - DT/commit accuracy (minor): Reword the commit message and
t8132-j773g.dtscomment to cover both J773g Ethernet variants (10GbE AQC113atlanticand 1GbE BCM57762tg3), and update the stale managed-radio comment inarch/arm64/boot/dts/apple/t8132-apcie-port2.dtsi:7-9.
|
I checked the port-2 change on integration/aurora 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 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. |
4248745 to
c7b87cb
Compare
|
CI found one added binding warning because the J773g managed-radio opt-out left |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: HOLD at 28453913
Blockers:
arch/arm64/boot/dts/apple/t8132-j773g.dts:277-279(§3, shared APCIe power-domain ownership):&dart_apcie2is enabled while retainingpower-domains = <&ps_apcie_sys_gp>;fromt8132-apcie-port2.dtsi:25, whereas&pcie0and&dart_apcie0have nopower-domainsand J773g leavesps_apcie_gp/ps_apcie_sys_gpenabled withoutapple,always-on. Becauseapple_dart_probe()callspm_runtime_put(dev)on normal DARTs (drivers/iommu/apple-dart.c:6403-6404),dart_apcie2becomes the sole genpd consumer and can power-gateps_apcie_sys_gp/ps_apcie_gpunderneath activepcie0/dart_apcie0before Ethernet attaches or on suspend/unbind. Fix: either modelpower-domains = <&ps_apcie_sys_gp>;across&pcie0,&dart_apcie0, and&dart_apcie2on J773g, or mark&ps_apcie_sys_gpapple,always-on;on J773g so genpd never gates the shared domain underneath unmodeledpcie0/dart_apcie0while keepingscripts/dtc/apple-dart-pd-check.pygreen without checker exceptions.- PR body (§4): remove the
Assisted-by:line at the bottom of the PR description (policy updated 2026-11-24: no AI attribution anywhere in commits, PR titles, PR bodies, comments, or reviews; the commits themselves are already clean). - PR body (§5): add top-level
Tested:(Mac, exact head SHA, result) andRisk:(two-way door · J773g only) lines, and record an exact-head full power-off boot row on J773g after the PMGR fix (end0up,wld0associated with traffic,0 SELinux denials, 0 failed units, 0 new kernel errors). No non-target Mac row is needed becauset8132-apcie-port2.dtsiis a comment-only edit.
Checked:
- Prior review follow-ups resolved: commits
c7b87cbe4da0and284539133451have human author/committer (Sean Dolbec) and humanSigned-off-by:only; commit/DTS wording now covers both J773g Ethernet controllers (AQC113atlanticand BCM57762tg3);t8132-apcie-port2.dtsi:7-9updated;284539133451dropsapple,sid16-pagealongsideapple,managed-sids, clearing theapple,dart.yamldependency warning. - §1/§2/§6 clean (board-only DT overrides, no model gating, default cmdline, clean naming).
- Mergeable against
main(5746ef8a5afd); exact-head CI green (dt-checksandhost-tests).
Evidence
- Head:
28453913345137fad739eb97c5c754e807a08b03(2 commits:c7b87cbe4da0,284539133451) onmain(5746ef8a5afd),mergeable: MERGEABLE. - CI at
28453913:dt-checksPASS (45322146294),host-testsPASS (45322146132). - DT / PMGR audit:
t8132-apcie-port2.dtsidiff is comment-only (zero DTB change on J604/J623/J624 or other Macs). Ont8132-j773g.dts,&dart_apcie2inheritspower-domains = <&ps_apcie_sys_gp>;(t8132-apcie-port2.dtsi:25),t8132-pmgr.dtsi:768-783enablesps_apcie_gpandps_apcie_sys_gpwithoutapple,always-on/apple,firmware-owned, andt8132.dtsi:1371-1415leaves&dart_apcie0and&pcie0withoutpower-domains. Note overlap with open PR #2770 (whichever lands second drops the duplicate J773g port-2 hunk). - Hygiene: Commits clean (human author/committer + DCO, no AI trailers); PR body retains an
Assisted-by:footer and lacksTested:/Risk:lines and an exact-head J773g hardware/regression row.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH at 4f0ed7ff4364
Blockers:
- PR body (§5, exact-head hardware evidence): add a full power-off boot row on J773g (either 10GbE AQC113 or 1GbE BCM57762 variant) at
4f0ed7ff4364confirmingps_apcie_gp/ps_apcie_sys_gpanddart_apcie2probe cleanly,end0up,wld0associated with traffic, and0 SELinux denials, 0 failed units, 0 new kernel errors. No non-target Mac row is needed becauset8132-apcie-port2.dtsiis comment-only.
Checked:
- Prior blockers 1 and 2 resolved in
4f0ed7ff4364and PR body:&ps_apcie_gpand&ps_apcie_sys_gp(apple,always-on) are explicitlystatus = "okay"on J773g sot8132-platform-handoff.cretains them on 26.6.2 and genpd holds the shared APCIe domain on across&dart_apcie2runtime PM while keepingapple-dart-pd-check.pyclean (new: 0); PR body attribution footer removed and top-levelTested:/Risk:lines added. - §1–§4 and §6 pass: board-only DT override, default cmdline, clean naming, all 3 commits (
c7b87cbe4da0,284539133451,4f0ed7ff4364) have human author/committer (Sean Dolbec) and humanSigned-off-by:only, mergeable againstmain(1b09b76b53e9), all exact-head CI green.
Evidence
- Head:
4f0ed7ff436414f6e52e521ec05b17570b1fa7cf(3 commits:c7b87cbe4da0,284539133451,4f0ed7ff4364) onmain(1b09b76b53e9),mergeable: MERGEABLE. - CI at
4f0ed7ff4364:dt-checksPASS (45423928550,DARTs without a usable power domain: 87, new: 0),host-testsPASS (45423928332),pr-text / pr-textPASS (45427294591; earlier45423928989was cancelled on PR-body edit),readiness / readinessPASS (45427295192). - DT / PMGR audit:
arch/arm64/boot/dts/apple/t8132-apcie-port2.dtsiis comment-only (zero DTB change on sibling T8132 boards). Onarch/arm64/boot/dts/apple/t8132-j773g.dts,&dart_apcie0deletesapple,managed-sids,apple,sid16-page, andapple,dma-range;&pcie0deletesapple,managed-sidsand maps0x100 -> dart_apcie0(2 streams) and0x200 -> dart_apcie2(1 stream) under inheritediommu-map-mask = <0xffff>;&ps_apcie_gp(status = "okay") and&ps_apcie_sys_gp(apple,always-on,status = "okay") survivet8132_pmgr_policy()(drivers/soc/apple/t8132-platform-handoff.c:190-201) and keepGENPD_FLAG_ALWAYS_ON+ parentsd_count >= 1(drivers/pmdomain/apple/pmgr-pwrstate.c:1007-1080) acrossapple_dart_probe()'spm_runtime_put()(drivers/iommu/apple-dart.c:6404-6405). Overlap with open PR #2770 remains unchanged (whichever lands second drops the duplicate J773g port-2 hunk). - Policy / hygiene: Zero banned names or attribution lines in PR title, PR body, diff, or commits. Exact-head §5 J773g hardware/regression row is the sole remaining item before approval.
The J773g's Ethernet controller is on port 2 of the built-in PCIe controller (ADT pci-bridge2), behind its own DART (dart-apcie2). The J773g already opts out of the managed radio contract. Keep the existing port-0 mapping, map the Ethernet requester's ID to dart-apcie2 stream 1 as described by ADT mapper-apcie2, and enable port 2 and its DART. The controller retains its inherited power-domain configuration. Signed-off-by: Sean Dolbec <[email protected]>
The Ethernet DART's runtime PM may drop the sole genpd reference to APCIE_SYS_GP while pcie0 and dart_apcie0 still use the shared block. Keep SYS_GP on while it has unmodeled users. The active SYS_GP subdomain also keeps its APCIE_GP parent from being switched off. Explicitly enable both board providers so the T8132 PMGR handoff preserves their availability on J773g. The Ethernet DART already references SYS_GP in the shared port-2 description. Signed-off-by: Sean Dolbec <[email protected]>
4f0ed7f to
bdc3cae
Compare
DjDeveloperr
left a comment
There was a problem hiding this comment.
Code approved at bdc3cae7ce1f. The J773g now keeps the shared APCIe system domain on when the Ethernet DART drops its runtime reference. The radio mappings remain present and the DT checks pass. A full power-off J773g boot with Ethernet and associated Wi-Fi traffic is still needed before merge.
Superseded by the review at bdc3cae
|
@DjDeveloperr this is approved and CI is green at |
|
PASS (rebased onto main): J773g (M4 Mac mini, gigabit BCM57762) gets working Ethernet with this change. DHCP isn't covered by our cabling.
|
1 similar comment
|
PASS (rebased onto main): J773g (M4 Mac mini, gigabit BCM57762) gets working Ethernet with this change. DHCP isn't covered by our cabling.
|
Tested: Six T8132 device trees built locally. The five sibling DTBs were byte-identical, with zero new DART power-domain findings and no new normalized J773g schema diagnostics. The sibling checker reported one warning for the intentional J773g-only SYS_GP always-on property. The DART and sibling checker host suites passed 17/17 and 5/5. The exact-head J773g full-power-off Ethernet, associated Wi-Fi traffic and system-health row is pending. The hardware rows below are historical.
Risk: Two-way door · J773g only. The patch enables Ethernet through APCIe port 2 and keeps its shared APCIE_SYS_GP domain on. The cold-boot and power-management behavior of the new head remains to be verified.
Problem
Main’s #3098 already opts the J773g out of the inherited J713 managed-radio PCIe/DART policy. The J773g 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 behindmapper-apcie2, stream 1.Change
The J773g device tree changes are listed below. The shared port description also documents the J773g opt-out.
0x100/count 2 ondart_apcie0(the two radio streams);0x200/count 1 ondart_apcie2(the ADT's stream 1);dart_apcie2and PCIe port 2;dart_apcie2link to APCIE_SYS_GP, and keep that child domain on for the other users.Current source checks
Candidate:
bdc3cae7ce1fon main38ffa67c1ec0. Hosted host tests passed. New-head device-tree checks passed.Prior-head CI
At
4f0ed7ff4364, hosted host tests passed. Device-tree checks passed.At
284539133451, GitHub host tests and device-tree checks passed.Historical hardware
atlantic)end0at 2500 Mb/s with an address;brcmfmaccreateswld0end0at 2500 Mb/s, DHCP, SSH. These 27.2 tests used a separate PMGR policy.tg3)end0at 1000 Mb/s,wld0createdhci_bcm4377logsno brcm,taurus-bf-cal-blob propertywith and without this change.Not tested
dtbs_check: dt-schema crashes on an existingapple,tunableuint8-arrayin this tree. A warning-delta run found nothing new from this change.The shared APCIe power-domain ownership question and the overlap with #2770 are tracked in the review reply. The hardware rows above predate this head. A later CI run reported a binding warning on the inherited
apple,sid16-pagebecause this board dropsapple,managed-sids.28453913removes the dependent property. The merged J773g DTB compiled locally with zero added schema warnings against5746ef8a5, and the 138-board DART power-domain differential reported zero new findings. This head implements the reviewer’s always-on option; exact-head cold-boot qualification and maintainer review remain pending.