Repository navigation
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. |
DjDeveloperr
left a comment
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.
Assisted-by: LLM (Gemini 4 Neon)
|
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. |
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>
4248745 to
c7b87cb
Compare
J773g opts out of the managed-radio DART contract because its PCIe controller also serves Ethernet. Remove the inherited apple,sid16-page alongside apple,managed-sids: the page applies only to managed mode and the binding requires both properties together. Signed-off-by: Sean Dolbec <sdolbec1@gmail.com>
|
CI found one added binding warning because the J773g managed-radio opt-out left |
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 behindmapper-apcie2, stream 1.Change
The J773g device tree changes are listed below. The shared port description also documents the J773g opt-out.
dart_apcie0andpcie0, including the managed-onlyapple,sid16-page;0x100/count 2 ondart_apcie0(the two radio streams);0x200/count 1 ondart_apcie2(the ADT's stream 1);dart_apcie2and PCIe port 2.Tested
atlantic)end0at 2500 Mb/s with an address;brcmfmaccreateswld0end0at 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 ittg3)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. The shared APCIe power-domain question is still open.Assisted-by: LLM (OpenAI:GPT-6.2-Astra, OpenAI:Codex)