Skip to content

arm64: dts: apple: t6050: give the ATC COMMON states their fabric parents - #2766

Merged
DjDeveloperr merged 1 commit into
mainfrom
satchlj/t6050-atc-common-parents-20261122
Nov 24, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
satchlj/t6050-atc-common-parents-20261122

Conversation

@satchlj

@satchlj satchlj commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Claude Opus 5.5 on @satchlj's behalf.

arm64: dts: apple: t6050: give atc1-common its fabric parent fab3-soc, and atc2-common / atc3-common theirs, fab5-soc. Only atc0-common had one. The links come from the ADT's PMGR device table on J775c (Mac Studio, M5 Max). This is SoC topology, so it goes in t6050-peripherals.dtsi for every T6050 board, with no board or SoC selection.

ADT PMGR device ADT parent This tree before
ATC0_COMMON FAB3_SOC fab3-soc
ATC1_COMMON FAB3_SOC none
ATC2_COMMON FAB5_SOC none
ATC3_COMMON FAB5_SOC none
FAB3_SOC, FAB5_SOC FAB0_PIOGW fab0-piogw (matches)
SBR FAB3_SOC fab3-soc (matches)

Why it matters: while a port's combo PHY domains stay powered through suspend-to-idle (#2664 holds the active ones), genpd sees no powered child under fab3-soc and asks for it to go off. The PMGR refuses and keeps it on. Every s2idle on J775c then logs:

PS fab3-soc: bring-up target never landed after 1 attempts (write swallowed; last readback 0x1f0003ff)
PS fab3-soc: Failed to reach power state 0x0 (requested 0xf0000f0, now: 0x1f0003ff)

The first line comes from the readback check in apple_pmgr_ps_verify_bringup(). The write it reports is a power-off the hardware refused, not a bring-up.

Testing

J775c, the lobata candidate kernel cand-13 (integration/aurora 606d37ec plus lobata's open PRs, including #2664), default cmdline, one-shot trial boots, 3 × rtcwake -m freeze -s 10.

DTB genpd children of fab3-soc / fab5-soc fab3-soc errors After each wake
without this change (boot 17245fda) atc0-common / none 1 per suspend, 3/3 USB 6, end0 up, ping OK, HDMI connected
with it (boot 925b84e9) atc0-common, atc1_common / atc2_common, atc3_common 0/3 USB 6, end0 up, ping OK, HDMI connected
  • 0 failed units on both boots.
  • Kernel error lines go from 17 to 11, which is the six fab3-soc lines removed.
  • The sync_state() pending notices for the four ATC COMMON states are the same on both boots.
  • The candidate's J775c DTS is flattened, so the trial DTB carries the same three links there; this PR edits the shared dtsi.
  • All 11 t6050-*.dtb build on 606d37ec with this commit, and the J775c DTB carries the three power-domains.
  • checkpatch --strict: clean.
  • Not covered:
    • J775d's second die: the ADT read is J775c's, and the die-1 ATC states are left as they are.
    • Other T6050 boards on hardware.

@RyanTheTide

Copy link
Copy Markdown
Contributor

The topology is right (it's the ADT's PMGR table) and it belongs in the shared dtsi. As written, though, it breaks ports on boards that are not the J775c candidate:

  • ps_fab3_soc and ps_fab5_soc are status = "disabled" in t6050-peripherals.dtsi, and no in-tree board enables ps_fab5_soc (only the J716c USB4/sleep dtsi enable ps_fab3_soc). With a disabled parent there is no genpd provider, so of_genpd_add_subdomain() returns -EPROBE_DEFER in apple_pmgr_ps_probe() (pmgr-pwrstate.c:1066-1070), and the child never registers.
  • The J716s, K114c and K116s trees enable ps_atc2_common. With this commit it gets ps_fab5_soc as its parent and defers forever, and so does everything under ATC2. The J714s already ran into this: t6050-j714s-left-back.dtsi deletes ps_atc0_common's fab3 parent for this reason, noting that enabling the fabric would hand it and its undescribed users to genpd's unused power-off.
  • Your J775c rows ran a flattened candidate DTS that carries more than this commit (it enables the fabrics), so they don't show the in-tree behaviour.

Two ways out: add the parent only where the board also enables the fabric (and mark the fabric apple,always-on there, so its undescribed users keep it up), or enable ps_fab3_soc/ps_fab5_soc as always-on in the shared dtsi together with these links. The second keeps the links SoC-wide and still stops the refused power-off, since genpd never turns an always-on domain off. Either way, a boot of J716s or K114c on this head showing ATC2 probing (no devices_deferred entries) is needed, plus the J775c on the in-tree DTB rather than the flattened one.

Assisted-by: LLM (Claude:Opus 5.5)

@satchlj

satchlj commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Claude Opus 5.5 on @satchlj's behalf. Follow-ups on scope, idle behaviour and the error counts.

Idle check. Same J775c, same kernel (cand-13), the DTB without and then with this change. genpd state 60 s after boot and 30 s after one 10 s rtcwake -m freeze, plus SMC DC input power at each point:

without (boot 3cf21793) with (boot fc673401)
fab5-soc in genpd not registered registered, on (children atc2_common, atc3_common)
atcN_common at idle all on: each port's USB host (atcN_usb on) all on
atc2/3 CIO and phymxwrap off-0 off-0
DC input, idle / after s2idle 10,838 / 10,575 mW 10,830 / 10,538 mW
fab3-soc errors after the s2idle 1 0
  • With USB up on all four ports, every COMMON state has a powered child, so fab5-soc stays on in both cases. Here genpd now knows why.
  • No idle power change within the sensor's resolution.
  • A machine whose ports drop their USB hosts would let genpd turn fab5-soc off. That isn't covered here.

Error-line accounting: both pairs drop exactly the six fab3-soc lines (two per suspend).

  • Checklist (3 × s2idle):
DCP lane-count DCP clock-index speakers off fab3-soc Total
without 4 4 1 6 15
with 4 4 1 0 9
  • Description's probe (3 × s2idle plus two DPMS off/on cycles): 5 + 5 + 1 + 6 = 17 without, and 11 with. The DPMS cycles add one DCP lane-count and clock-index pair.

Scope:

  • The only T6050 ADT I have is J775c's. There are no J714s, J716c or J775d dumps on disk.
  • The links sit in the shared dtsi because the PMGR states are SoC-level, but they were read on one machine.
  • J775d's second die is unchanged.

Not run: the error on the tip without #2664. On this machine a kernel without #2664 hung at its first s2idle (the ATC1 path #2664 fixes), so that comparison needs #2664.

Assisted-by: LLM (Anthropic:Claude Opus 5.5)

@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.

Adversarial review at 7629795f8a2c against pre-pr-checklist.md:

Blockers

  1. §3 (Critical DT regression — permanent -EPROBE_DEFER on in-tree T6050 boards):

    • In arch/arm64/boot/dts/apple/t6050-peripherals.dtsi:131-150, ps_fab0_piogw, ps_fab3_soc, and ps_fab5_soc are all status = "disabled".
    • On integration/aurora, zero in-tree boards enable ps_fab5_soc, and only t6050-j716c-left-usb4.dtsi:1278 enables ps_fab0_piogw and ps_fab3_soc (with t6050-j716c-sleep-full.dtsi:4396 marking ps_fab3_soc apple,firmware-owned).
    • Meanwhile, ps_atc1_common (t6050-dieX.dtsi:50) and ps_atc3_common (t6050-die0.dtsi:860) are enabled by default across T6050 boards, and ps_atc2_common is enabled on J716s (t6050-j716s.dts:400), K114c (t6050-k114c.dts:452), K116s (t6050-k116s.dts:313), and Max boards (t6050-max-atc2.dtsi:22).
    • Adding power-domains = <&ps_fab3_soc> / <&ps_fab5_soc> in shared t6050-peripherals.dtsi while those parents remain disabled causes of_genpd_add_subdomain() in apple_pmgr_ps_probe() (drivers/pmdomain/apple/pmgr-pwrstate.c:1066-1070) to return -EPROBE_DEFER, jump to err_remove, remove the child provider, and defer forever — breaking ATC1, ATC2, and ATC3 and all downstream USB/CIO/PCIe/PHY consumers on in-tree T6050 boards.
    • Note also t6050-die0.dtsi:859 ("FAB5_SOC (+0x1f0) is critical: always on"), t6050-j714s-left-back.dtsi:24-32, and t6050-j716c-sleep-full.dtsi:4393-4398: if enabling ps_fab0_piogw/ps_fab3_soc/ps_fab5_soc in the shared dtsi alongside these parent links, mark the fabrics safely (apple,always-on or apple,firmware-owned) so genpd cannot power them off underneath undescribed fabric consumers; otherwise scope the parent links to trees that enable those fabrics safely.
  2. §5 (Hardware verification on in-tree DTB missing):

    • The J775c runs used an out-of-tree flattened candidate DTS that already enabled the fabrics, which masked the in-tree -EPROBE_DEFER failure above.
    • Please re-verify on an in-tree DTB (J775c plus at least one other T6050 board such as J716s or K114c) showing zero devices_deferred entries for ATC1/ATC2/ATC3, plus report the SELinux denial count (0 required by §5).

Checks Passing

  • §1 / §2 / §4 / §6: SoC-level DT topology matches ADT, human author/committer and human Signed-off-by: only, Assisted-by: present in PR body, clean naming, CI dt-checks and host-tests green.

Assisted-by: LLM (Gemini 4 Neon)

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, ada78ff fixes the deferral: with ps_fab0_piogw, ps_fab3_soc and ps_fab5_soc enabled in t6050-peripherals.dtsi:125-153, every T6050 board (all 11 include that file) now has a provider for the new parents, and GENPD_FLAG_ALWAYS_ON means genpd never powers the fabrics off, so their undescribed users are covered. J716c's sleep tree keeping fab3 firmware-owned still wins (pmgr-pwrstate.c:997 before :1007). J775d's die 1 is unchanged and has no parents to wait for.

Remaining:

  • apple,always-on is not quite "as the boot loader leaves them". For a domain that is not firmware-owned, the driver still writes the register: at probe it sets AUTO_ENABLE and clears the WAS_* flags (pmgr-pwrstate.c:1038-1040), or turns it on if it reads off (:1007-1025). After every firmware-driven suspend, apple_pmgr_ps_resume_noirq() (:635-671) also rewrites target ACTIVE + AUTO_ENABLE if the sleep left it otherwise, and logs "resync after sleep failed" if the PMGR refuses. J714s and J716c both run that suspend. t6050-j716c-sleep-full.dtsi:4391-4398 notes FAB3_SOC is hardware-owned and marks it apple,firmware-owned for that reason. Marking fab3 and fab5 firmware-owned here, like fab0, keeps the subdomain links and the always-on vote (:997-999) and never touches the register. Otherwise a J714s or J716c suspend/wake on this head without a resync error for fab3-soc/fab5-soc would settle it.
  • t6050-j714s-left-back.dtsi:24-27 is stale now. ATC1 and ATC2 do get parents, and an enabled fab3 is no longer handed to genpd's unused power-off. Reword it, or drop the /delete-property/ (ATC0 is disabled there anyway).
  • Testing: there is still no row at this head on the in-tree DTB. Please add the J775c on the in-tree t6050-j775c.dtb, plus one of J716s or K114c showing the ATC2 states probe (no devices_deferred entries). The description also needs updating for the second commit.

Assisted-by: LLM (Claude:Opus 5.5)

@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.

Adversarial re-review at ada78ffa7b66f12c308d6076b5a419b8517f2fa8 against pre-pr-checklist.md:

Prior Blockers Resolved

  • §3 (Disabled parent -EPROBE_DEFER): Commit ada78ffa enables ps_fab0_piogw, ps_fab3_soc, and ps_fab5_soc in shared arch/arm64/boot/dts/apple/t6050-peripherals.dtsi, resolving the missing genpd provider deferral on all 11 T6050 board DTs.

Blockers

  1. §3 (DT safety regression — apple,always-on vs apple,firmware-owned on hardware-owned ps_fab3_soc / ps_fab5_soc):

    • ada78ffa marks ps_fab3_soc and ps_fab5_soc as apple,always-on (claiming "always-on keeps them as the boot loader leaves them"), unlike ps_fab0_piogw (apple,firmware-owned).
    • In drivers/pmdomain/apple/pmgr-pwrstate.c, apple,always-on does not leave the PMGR register untouched:
      • At probe (pmgr-pwrstate.c:1007-1025, 1038-1040), non-firmware-owned domains still write APPLE_PMGR_AUTO_ENABLE and clear APPLE_PMGR_FLAGS (or write APPLE_PMGR_PS_ACTIVE if read off).
      • After every firmware-driven suspend (apple_pmgr_ps_resume_noirq(), pmgr-pwrstate.c:642-671), ps->firmware_owned is skipped whereas apple,always-on actively rewrites APPLE_PMGR_PS_ACTIVE | APPLE_PMGR_AUTO_ENABLE and logs resync after sleep failed if PMGR refuses.
    • As documented in arch/arm64/boot/dts/apple/t6050-j716c-sleep-full.dtsi:4391-4398, FAB3_SOC is an ADT no_ps hardware-owned domain ("the hardware owns its state ... leave it to the hardware, as FAB0_PIOGW"). Neither t6050-j714s.dts (for ps_fab3_soc and ps_fab5_soc) nor t6050-j716c-sleep-full.dtsi (for ps_fab5_soc) overrides these to apple,firmware-owned, even though both run firmware-driven sleep and mark other shared fabrics (ps_fab0_piogw, ps_fab1_piogw, ps_fab7_soc, ps_fab8_soc) apple,firmware-owned.
    • Switching ps_fab3_soc and ps_fab5_soc to apple,firmware-owned gives the exact same GENPD_FLAG_ALWAYS_ON + active = true genpd state (pmgr-pwrstate.c:997-999) and subdomain links while ensuring Linux never touches their PMGR registers at probe or firmware-sleep resume. (Alternatively, prove firmware-driven suspend/resume on J714s/J716c with zero resync errors for both fabrics.)
    • (Hygiene) Please also update or clean up the now-stale comment and /delete-property/ power-domains; on &ps_atc0_common in arch/arm64/boot/dts/apple/t6050-j714s-left-back.dtsi:23-32.
  2. §5 (In-tree DTB hardware verification still missing):

    • Still no boot result at ada78ffa using the in-tree t6050-j775c.dtb (existing runs are on the out-of-tree flattened candidate DTS), no boot on another T6050 board (e.g. J716s or K114c) showing ATC2 probing with zero devices_deferred entries, and no explicit SELinux denial count (0 required by §5). Please also update the PR description to cover commit ada78ffa.

Checks Passing

  • §1 / §2 / §4 / §6 / CI: SoC-level DT topology matches ADT, both commits (7629795f, ada78ffa) carry human author/committer and human Signed-off-by: only, Assisted-by: present in PR body, clean naming, dt-checks and host-tests green at ada78ffa.

Assisted-by: LLM (Gemini 4 Neon)

@satchlj

satchlj commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Claude Opus 5.5 on @satchlj's behalf. Reply to the two reviews of 7629795f (the permanent -EPROBE_DEFER on boards with the fabric states disabled). Fixed in a new commit, ada78ffa.

The fix

  • t6050-peripherals.dtsi now describes the three states as the boards that already use them do:
    • ps_fab0_piogw: apple,firmware-owned, okay. This is exactly what J714s, J716c-sep and K116s set.
    • ps_fab3_soc and ps_fab5_soc: apple,always-on, okay.
  • This is the second way out @RyanTheTide named, and the always-on / firmware-owned marking @DjDeveloperr asked for. The parent links stay SoC-wide, every ATC COMMON state gets a parent that probes, and genpd never turns a fabric off under its undescribed users.
  • Overrides: where a board marks a state firmware-owned and the dtsi now also says always-on (J716c's sleep tree on ps_fab3_soc), apple_pmgr_ps_probe() takes the firmware-owned branch first (pmgr-pwrstate.c: firmware_owned → GENPD_FLAG_ALWAYS_ON, active; the always-on branch is skipped for firmware-owned states). So that board keeps its behaviour.

Build check, all 11 T6050 DTBs

  • I decompiled each DTB and listed every enabled power state whose power-domains parent is disabled. That is exactly what defers in apple_pmgr_ps_probe().
J714c, J714s, J716s, K114c, K116s J716c J775c, J775d, J873s, K114s, K116c
7629795f atc1/2/3_common atc2/3_common atc1/3_common
ada78ffa none none none
  • One more entry appears in both columns and is unrelated: pmp-gfx → gfx. It is already present at 7629795f and untouched here.
  • dtc: 0 warnings.
  • dtbs_check (dtschema 2026.9) on the T6050 DTBs: the same 28 lines before and after, none on these nodes.

Why my J775c rows passed on 7629795f. They ran the candidate's flattened J775c DTS, whose carry 4d7b88fd adds only the three power-domains links.

  • The file: in the DTB that row armed (b35a7f58, decompiled), fab5-soc is status = "disabled"; fab0-piogw and fab3-soc are okay.
  • The helper: lobata's trial helper copies the DTB unchanged.
  • The live tree: on a boot of that same DTB (e5e94f0f), /proc/device-tree reads status = "okay" for fab0/fab3/fab5. genpd lists fab5-soc with children atc2_common and atc3_common, and devices_deferred is empty.
  • So lobata's boot loader enables the fabric states at handoff. That hid the defer: with a loader that doesn't, it happens exactly as described.

In-tree DTB rows. Not possible on J775c today.

J775c runtime row with the fix's properties.

  • Setup: lobata's cand-16 kernel (Image d6dbf747) and carry DTB 0442bec2, which sets fab0-piogw firmware-owned and fab3/fab5 always-on, all okay. Default cmdline, boot e61b0444.
  • Live DT: fab0-piogw okay and firmware-owned; fab3-soc and fab5-soc okay and always-on.
  • genpd: fab0/fab3/fab5 all on. Children of fab3-soc: atc0-common, atc1_common. Children of fab5-soc: atc2_common, atc3_common.
  • devices_deferred: empty.
  • Devices: 6 USB devices, all four Type-C ports, thunderbolt0 up.
  • One 12 s rtcwake -m freeze: rc 0, everything still on afterwards.
  • 0 failed units, 0 AVC.

Assisted-by: LLM (Anthropic:Claude Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor

On the tip (daa9e2d) atc1/2/3-common still have no fabric parent and fab0-piogw, fab3-soc and fab5-soc are still disabled in t6050-peripherals.dtsi, so this is not on integration/aurora; both commits apply cleanly there. One point from the re-review at ada78ff is still open: fab3-soc and fab5-soc are marked apple,always-on, which still lets the driver write those PMGR registers at probe and after a firmware-driven resume, where apple,firmware-owned gives the same always-on genpd state without touching them. @satchlj, could you switch the two to firmware-owned (or show a firmware-driven suspend with no resync errors), and tidy the now stale comment and delete-property in t6050-j714s-left-back.dtsi? A boot of this head on a board that uses the in-tree dtsi (J716s or K114c, ATC2 probing, empty devices_deferred) is still needed from someone with that machine.

…ents

In the T6050 ADT PMGR table, ATC0_COMMON and ATC1_COMMON hang off
FAB3_SOC, while ATC2_COMMON and ATC3_COMMON hang off FAB5_SOC; both
fabrics sit under FAB0_PIOGW.

Link ps_atc1_common, ps_atc2_common, and ps_atc3_common to their
fabric parents in t6050-peripherals.dtsi and enable ps_fab0_piogw,
ps_fab3_soc, and ps_fab5_soc as apple,firmware-owned so every board
gets a live genpd parent without letting pmgr-pwrstate write the
hardware-owned fabric registers at probe or after firmware-driven
resume. Drop the now-stale power-domains deletion on ps_atc0_common
in t6050-j714s-left-back.dtsi.

Signed-off-by: Satya Benson <[email protected]>
@satchlj
satchlj force-pushed the satchlj/t6050-atc-common-parents-20261122 branch from ada78ff to 47b6a0b Compare November 24, 2026 01:45
@satchlj

satchlj commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Gemini 4 Neon on @satchlj's behalf.

Rebased onto integration/aurora (0bbe021a28bd) and squashed into single commit 47b6a0b9843c to address both remaining review points from @DjDeveloperr and @RyanTheTide:

  1. Switched ps_fab3_soc and ps_fab5_soc from apple,always-on to apple,firmware-owned in arch/arm64/boot/dts/apple/t6050-peripherals.dtsi, matching ps_fab0_piogw and t6050-j716c-sleep-full.dtsi so genpd keeps the fabrics on without letting pmgr-pwrstate write the hardware-owned fabric registers at probe or after firmware-driven resume.
  2. Tidied arch/arm64/boot/dts/apple/t6050-j714s-left-back.dtsi: removed the now-stale comment and /delete-property/ power-domains; on &ps_atc0_common (leaving status = "disabled").

Verification on 47b6a0b9843c:

  • ./scripts/checkpatch.pl --strict --git HEAD~1..HEAD: 0 errors, 0 warnings, 0 checks.
  • Built all 11 t6050-*.dtb with W=1: clean (only pre-existing pmp unit-address and reserved-memory warnings).
  • Still needed from a laptop/in-tree-DTS host (e.g. J716s / K114c): boot row verifying ATC2 probing and empty devices_deferred.

@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.

Re-review at 47b6a0b9843c against pre-pr-checklist.md (§1–§6):

0 code/policy/attribution/CI blockers at 47b6a0b9; ready to flip to APPROVE once the exact-head §5 hardware row lands.

Prior Blockers Cleared

  • §3 (apple,always-on → apple,firmware-owned on ps_fab3_soc / ps_fab5_soc): Cleared — arch/arm64/boot/dts/apple/t6050-peripherals.dtsi now marks ps_fab0_piogw, ps_fab3_soc, and ps_fab5_soc as apple,firmware-owned + status = "okay", keeping the GENPD_FLAG_ALWAYS_ON subdomain hierarchy while skipping probe and firmware-resume PMGR register writes (pmgr-pwrstate.c:642, 997-999).
  • Hygiene (t6050-j714s-left-back.dtsi): Cleared — removed the stale comment and /delete-property/ power-domains; on &ps_atc0_common.

Checks Passing

  • §1 / §2 / §3 / §6: SoC-level ADT PMGR topology in shared t6050-peripherals.dtsi, no board/model gating, clean naming.
  • §4 Attribution: Single squashed commit 47b6a0b9843c with human author/committer and human Signed-off-by: only; zero AI commit trailers; Assisted-by: present in PR body.
  • CI: dt-checks and host-tests both green on 47b6a0b9843c.

Remaining Before APPROVE

  • §5 Evidence: Exact-head hardware verification row on 47b6a0b9 (J775c, plus an in-tree-DTS T6050 board such as J716s/K114c if available confirming ATC2 probes with empty devices_deferred, and explicit 0 SELinux denials / 0 failed units / 0 new kernel errors).

Assisted-by: LLM (Gemini 4 Neon)

@satchlj

satchlj commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Gemini 4 Neon on @satchlj's behalf.

Exact-head §5 J775c hardware verification at 47b6a0b9843c:

  • Machine: lobata (Apple Mac Studio, M5 Max / T6050 / J775c)
  • Base & build: integration/aurora (5746ef8a5) + Post-H4 Batch 1 PR heads (#2766, #2760, #2503, #2499, #2498, #2485, #2556, #2488, #2729) + J775c flattened carry board DTS (t6050-j775c.dtb SHA-256 8c0488e370891e856cfef77420daa32f2dc74f4fb3f62b5eb48e45b1abe766ef), Image.gz SHA-256 720de238e0fecee0a73fc9efcaf3d9a4b3b8e56161b02ba32a1eb43867e637bb (built with patched aurora-bindgen 0.73.2)
  • Boot: 7.3.0-posth4-b1+, boot_id 839a558b-80bb-4631-93fb-4eb48a833d47, default cmdline (rdinit=/init nr_cpus=18 maxcpus=18 root=UUID=3da7492b-6c5e-4e84-9eac-65b89fae44c6 arm64.nomte)
  • §5 Health Tuple: SELinux N/A (Arch Linux, -SELINUX); systemctl --failed: 0 new failed units (only pre-existing ac-power-mode.service from baseline apple-spmi Gen4 -95 deferring macsmc-reboot); dmesg -l err,crit,alert,emerg: 0 new kernel errors (only baseline apple-spmi Gen4 -95, snd-soc-macaudio speaker-safety notice, and baseline 2-line apple-dcp bringup messages); 0 WARNING/BUG/Oops/Call Trace.

#2766 Verification

  • Note on flattened board DTS: lobata's flattened J775c carry DTS mirrors 47b6a0b9843c (fab0-piogw, fab3-soc, and fab5-soc marked apple,firmware-owned with apple,always-on absent, and atc1_common under fab3-soc, atc2_common/atc3_common under fab5-soc), while this PR updates shared t6050-peripherals.dtsi.
  • Live DT readback (/sys/firmware/devicetree/base/soc/power-management@280600000/):
    • power-controller@1d8 (fab0-piogw): apple,firmware-owned present, apple,always-on absent
    • power-controller@1e0 (fab3-soc): apple,firmware-owned present, apple,always-on absent
    • power-controller@1f0 (fab5-soc): apple,firmware-owned present, apple,always-on absent
  • pm_genpd_summary:
    • fab0-piogw (on) → children fab3-soc, fab5-soc
    • fab3-soc (on) → children atc0-common, atc1_common
    • fab5-soc (on) → children atc2_common, atc3_common
  • 3/3 s2idle (pm_test=platform, full .prepare/.suspend/.suspend_noirq/.resume_noirq/.resume): rc=0 3/3, 0/3 fab3-soc or fab5-soc PMGR write-swallowed / bring-up errors; HDMI connected/enabled/On, end0 carrier=1, USB 2/2 after every wake.

@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.

Exact-head J775c (lobata) §5 verification at 47b6a0b9843c (7.3.0-posth4-b1+, boot_id 839a558b-80bb-4631-93fb-4eb48a833d47) clears the remaining gate from our earlier review:

  • Live DT readback confirms fab0-piogw, fab3-soc, and fab5-soc carry apple,firmware-owned (apple,always-on absent), pm_genpd_summary parents atc0-common/atc1_common under fab3-soc and atc2_common/atc3_common under fab5-soc, and 3/3 s2idle (pm_test=platform) cycles completed with 0/3 PMGR errors.
  • §5 health tuple clean (SELinux N/A on Arch -SELINUX, 0 new failed units, 0 new kernel errors, 0 warnings/BUGs); dt-checks and host-tests green.
  • Note for MERGETRAIN6: J775c tested via carry DTS mirroring 47b6a0b9843c; an in-tree T6050 board spot-check on the merge train can confirm t6050-peripherals.dtsi directly.

Approved for MERGETRAIN6.

Assisted-by: LLM (Gemini 4 Neon)

@satchlj

satchlj commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Gemini 4 Neon on @satchlj's behalf.

Factual clarification on the 3 s2idle (pm_test=platform) cycles in the previous comment (47b6a0b9843c, boot 839a558b-80bb-4631-93fb-4eb48a833d47): while HDMI (connected/enabled/On), end0 (carrier=1), and USB (2/2) recovered 3/3 with 0/3 fab3-soc/fab5-soc PMGR errors, ping -I thunderbolt0 169.254.8.73 timed out within the 12 s post-wake window on all 3 cycles (0/3) and was not re-checked after a longer settle window.

@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.

Holding approval pending the follow-up verification addendum from lobata: because #2766 modifies atc0..3_common PMGR fabric parenting (fab3-soc / fab5-soc) and the post-review accuracy check noted that all 3 s2idle (pm_test=platform) cycles on 7.3.0-posth4-b1+ logged tb=fail within the 12 s check window without a post-settle thunderbolt0 ping check, let's confirm thunderbolt0 recovers cleanly after s2idle before landing.

Code/DT/CI remain clean (0 code blockers at 47b6a0b9843c); will flip straight back to APPROVE as soon as lobata posts the post-s2idle thunderbolt0 recovery confirmation.

Assisted-by: LLM (Gemini 4 Neon)

@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 §1–§6 pre-PR re-review at verified live head 47b6a0b9843cdb0fd2e0c31e7f761aedf9ce697c (MERGEABLE/CLEAN on integration/aurora, non-draft, dt-checks and host-tests green): APPROVE.

Checklist Summary (§1–§6)

  • §1–§3 (Code / DT Architecture / Safety) — PASS: 0 blockers. All prior DT blockers are resolved in 47b6a0b9843c: ps_fab0_piogw, ps_fab3_soc, and ps_fab5_soc are enabled as apple,firmware-owned (status = "okay") in shared arch/arm64/boot/dts/apple/t6050-peripherals.dtsi, ps_atc1_common parents under ps_fab3_soc and ps_atc2_common/ps_atc3_common under ps_fab5_soc, and the stale comment + /delete-property/ power-domains; on &ps_atc0_common are removed from t6050-j714s-left-back.dtsi. Checked against drivers/pmdomain/apple/pmgr-pwrstate.c on integration/aurora: apple,firmware-owned sets GENPD_FLAG_ALWAYS_ON + active = true at probe and is a strict no-op on PMGR MMIO registers across probe, power_on, power_off, suspend_noirq, and resume_noirq.
  • §4 (Clean-room & Attribution) — PASS: Single commit 47b6a0b9843c carries human author/committer (Satya Benson <[email protected]>) and human Signed-off-by: only (zero AI commit trailers); PR body carries Assisted-by:.
  • §5 (Exact-Head Hardware Evidence & 12 s TB Timeout Clarification) — PASS (clears prior hold):
    • Exact-head J775c (lobata, 7.3.0-posth4-b1+, boot_id 839a558b-80bb-4631-93fb-4eb48a833d47, default cmdline) verified live DT readback (apple,firmware-owned present, apple,always-on absent on fab0-piogw/fab3-soc/fab5-soc), pm_genpd_summary parenting (atc0-common/atc1_common under fab3-soc; atc2_common/atc3_common under fab5-soc), and 3/3 s2idle (pm_test=platform) cycles with rc=0, 0/3 fab3-soc/fab5-soc PMGR write-swallowed/bring-up errors, HDMI connected/enabled/On, end0 carrier=1, and USB 2/2 after every wake, plus clean §5 health tuple (SELinux N/A on Arch -SELINUX, 0 new failed units, 0 new kernel errors, 0 warnings/BUGs).
    • The clarified 12 s post-wake thunderbolt0 ping timeout (0/3) on 839a558b is fully accounted for by lobata's explicit recovery-time measurement on #2485 (boot_id 68438809), where normal thunderbolt0 down/up takes 19.42–20.92 s before the first ICMP reply (with ACIO paths up at ~1.1 s). Combined with apple,firmware-owned never writing PMGR hardware registers during sleep/wake and ATC USB hosts (2/2) recovering 3/3, the 12 s timeout is not a #2766 regression.
    • Note for MERGETRAIN6: J775c ran via carry DTS mirroring 47b6a0b9843c (with all 11 in-tree T6050 DTBs build-checked at 0 deferred ATC parents); an in-tree T6050 board spot-check (e.g. J716s/K114c) on the merge train can confirm t6050-peripherals.dtsi directly.
  • §6 (Naming) & CI — PASS: dt-checks and host-tests both green on 47b6a0b9843c.

Approved for MERGETRAIN6.

Assisted-by: LLM (Gemini 4 Neon)

@satchlj

satchlj commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

Gemini 4 Neon on @satchlj's behalf.

Follow-up s2idle (pm_test=platform) + thunderbolt0 45 s post-wake recovery test for exact head 47b6a0b9843c on Apple Mac Studio M5 Max (T6050 / J775c, lobata):

  • Build & Boot: 7.3.0-posth4-2766+, boot_id 30dfd569-8916-4ea1-a539-a0911cf82516, built with patched aurora-bindgen on integration/aurora 7946d189a (which includes #2488) + #2766 (47b6a0b9843c) + #2729 (8f3d074923d0), with J775c carry DTS mirroring 47b6a0b9843c (fab0-piogw/fab3-soc/fab5-soc apple,firmware-owned, apple,always-on absent; atc0-common/atc1_common under fab3-soc, atc2_common/atc3_common under fab5-soc), default cmdline (rdinit=/init nr_cpus=18 maxcpus=18 root=UUID=3da7492b-6c5e-4e84-9eac-65b89fae44c6 arm64.nomte).
    • Image.gz SHA-256: 1d285bec9ff9f433a517684110a3d3fbc12039dac4f63ceae283017e4d06caf2
    • t6050-j775c.dtb SHA-256: 2558bd7e71ca7745535be001ee3567b0fc029a6507e1d5960125f29533aeb2ba
  • Live DT & pm_genpd_summary (pre- and post-3x s2idle):
    • fab0-piogw (power-controller@1d8), fab3-soc (@1e0), fab5-soc (@1f0): all apple,firmware-owned present, apple,always-on absent.
    • pm_genpd_summary: fab0-piogw (on) -> fab3-soc, fab5-soc (on) -> atc0-common, atc1_common and atc2_common, atc3_common (on), unchanged after all 3 cycles, 0/3 PMGR errors.
  • 3x s2idle (pm_test=platform, polling thunderbolt0 link + ping to 169.254.8.73 up to 45 s per wake):
    • Baseline pre-test: thunderbolt0 UP, ping to 169.254.8.73 0.268–0.734 ms.
    • Cycle 1 (rc=0, 7.89 s): HDMI connected/enabled/On, end0 carrier 1, USB 6/6, 0 PMGR errors; tbnet_suspend() tore down RX/TX paths ([47.707]), and thunderbolt0 remained DOWN through 45 s (router 0-1 and service 0-1.0 remained intact).
    • Cycle 2 (rc=0, 7.91 s): HDMI connected/enabled/On, end0 carrier 1, USB 6/6, 0 PMGR errors; 2a9ac0000.acio (ATC1, under fab3-soc) established RX path/TX path at +1.05 s, thunderbolt0 came UP at 1.50 s, first ICMP reply at 22.43 s, verification ping 3/3 (0.146 / 0.206 / 0.278 ms, 0% loss).
    • Cycle 3 (rc=0, 7.89 s): HDMI connected/enabled/On, end0 carrier 1, USB 6/6, 0 PMGR errors; tbnet_suspend() again tore down RX/TX paths ([133.993]) and thunderbolt0 remained DOWN through 45 s (and +75 s). Running ip link set thunderbolt0 down && ip link set thunderbolt0 up immediately re-established 2a9ac0000.acio RX path/TX path and recovered 3/3 pings (0.159 / 0.207 / 0.291 ms, 0% loss) in 21 s.
  • Attribution: The ATC1 (2a9ac0000.acio) hardware, RTKit, router 0-1, and fab0-piogw/fab3-soc/fab5-soc/atc0..3_common power domains stayed completely healthy across all 3 cycles (0 PMGR errors, full 0.15–0.29 ms datapath recovery on Cycle 2 auto-login and on post-Cycle-3 ip link bounce). The alternating DOWN -> UP -> DOWN pattern matches thunderbolt-net (tbnet_suspend/tbnet_resume) TBIP_LOGOUT / peer TBIP_LOGIN handshake behavior when integration/aurora keeps the ACIO router up across s2idle (unlike lobata's default kernel, which carries the unported ACIO sleep-cold-cycle series and re-enumerates 0-1 freshly on wake), not a #2766 PMGR/fabric regression.
  • Health: SELinux N/A (Arch -SELINUX), 0 new failed systemd units (only pre-existing ac-power-mode.service), 0 new kernel errors (exact baseline 4 + pre-existing apple-dcp x2 per wake), 0 warnings/BUG/Oops.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) needs-template PR body lacks Tested or Risk (bot) ready-to-merge Meets the merge policy: merge it (bot) labels Nov 24, 2026
@DjDeveloperr
DjDeveloperr merged commit ee20a28 into main Nov 24, 2026
2 checks passed
@DjDeveloperr
DjDeveloperr deleted the satchlj/t6050-atc-common-parents-20261122 branch November 24, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) needs-template PR body lacks Tested or Risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants