Skip to content

wifi: apple: centauri: t6050: let the system sleep after a failed N1 startup - #3356

Merged
RyanTheTide merged 4 commits into
mainfrom
fix/centauri-t6050-sleep-after-failed-start
Dec 1, 2026
Merged

RyanTheTide merged 4 commits into
mainfrom
fix/centauri-t6050-sleep-after-failed-start

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Problem

On a T6050 Mac whose N1 (Wi-Fi/BT) startup has failed, the system can never suspend. The K114s with #3337 enumerates the N1, but its installed firmware has no FTAB, so the startup stops in phase 0 (required firmware apple/centauri/k114s-ftab.bin unavailable: -2). From then on every s2idle attempt aborts with pci_pm_suspend(): centauri_t6050_suspend [apple_centauri_t6050] returns -16, and closing the lid does nothing.

Change

On the s2idle path (no firmware sleep), centauri_t6050_suspend() refused anything but CEN_BOOT_READY. It now:

  • returns 0 for CEN_BOOT_FAILED and CEN_BOOT_STOPPED: the boot worker has finished, nothing runs on the N1, and the PCI core saves the config space;
  • keeps -EBUSY for a startup in progress (ROM, cycle, IPC stages), as before;
  • leaves the READY path and the firmware-sleep path unchanged.

Tested: K114s, kernel 7.3.0-42 (linux a851ca0) with the module rebuilt from that source plus this patch, N1 startup failed in phase 0, pm_test=devices + freeze:

  • stock module: centauri_t6050_suspend returns -16, suspend aborted (rc 1);
  • patched: the devices phase completes ("Waiting for 5 second(s)", rc 0), clean suspend exit.

Risk: two-way · T6050 machines with an N1 (J714c/J714s/J716c/J716s/K boards) where the N1 startup failed or was stopped; READY and in-progress behaviour is unchanged.

Still to run

  • A real s2idle cycle on the K114s with a wake source (keyboard/lid). It needs the owner present: the K114s has no RTC wake described yet.
  • An N1 machine with working firmware (J714s), to confirm the READY path is unchanged (it is byte-identical in the source).

…startup

On a s2idle path (no firmware sleep), centauri_t6050_suspend() returns
-EBUSY unless the N1 reached CEN_BOOT_READY. That holds off a sleep while
the boot worker is in the middle of the ROM, cycle or IPC stage, which is
the point. But it also refuses every sleep for good once the startup has
given up (CEN_BOOT_FAILED: missing firmware, say) or was stopped: the
worker does not run again, nothing runs on the N1, and there is no state
to keep.

A MacBook Pro whose installed firmware lacks the N1's FTAB therefore
could never suspend: every attempt ended with
"pci_pm_suspend(): centauri_t6050_suspend returns -16".

Return 0 for CEN_BOOT_FAILED and CEN_BOOT_STOPPED and keep -EBUSY for a
startup in progress. The PCI core saves the config space as for any
driver that does not.

Signed-off-by: Ryan Murray <[email protected]>

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

Verdict at e89a04fc575f: no code blockers. It isn't ready to merge yet: the noirq half of the new path is untested, and CI hasn't run the build jobs (see below).

Checked

  • The change only touches the s2idle path (!apple_centauri_sleep_reboot()):
    • CEN_BOOT_READY still calls pci_save_state(), as before.
    • Startups in progress (ROM, cycle, IPC) still return -EBUSY.
    • CEN_BOOT_FAILED and CEN_BOOT_STOPPED now return 0.
  • Those two phases are final:
    • centauri_t6050_boot_worker() sets FAILED only when it doesn't re-queue itself; an -EAGAIN in cycle or IPC keeps the phase and retries.
    • STOPPED is set on removal and by centauri_t6050_quiesce().
    • So nothing is left running on the N1 when the sleep starts.
  • Firmware sleep and resume are untouched:
    • The firmware-sleep path below is unchanged.
    • centauri_t6050_suspend_noirq() and both resume callbacks return early without firmware_kept or firmware_sleep, so a failed N1 resumes as a no-op in this driver.
  • Commit: checkpatch --strict gives 0/0/0. It is signed off by the author, with no attribution.

Before merge

  1. A noirq run with a failed N1:
    • Returning 0 without pci_save_state() means the PCI core's pci_pm_suspend_noirq() sees state_saved == false. It then saves the config space and, through pci_prepare_to_sleep(), puts F0 into D3hot. On resume it brings F0 back to D0 and restores it.
    • That D3hot round trip of a firmware-less N1 is new: until now, s2idle never got past this driver.
    • The K114s row used pm_test=devices, which stops before the late and noirq phases, so it doesn't cover it. pm_test=platform (or processors) with freeze runs suspend_noirq and resume without needing a wake source, so it can run unattended.
    • Either show that run, or keep F0 in D0 the way READY does by calling pci_save_state() for these two phases too. Either way, the comment ("The PCI core saves the config space") should say what happens to the device.
  2. CI: only host-tests and pr-text ran at this head, and readiness is pending. The Apple build and KUnit jobs need to run green.
  3. J714s (working N1): a boot plus one s2idle, to show the READY path is unchanged (already under Still to run).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Real s2idle row (supervised lid sleep), K114s, kernel 7.3.0-42, the N1 startup failed in phase 0 (no FTAB), with this patch's module loaded:

  • Lid closed: PM: suspend entry (s2idle); the devices phase completes (suspend of devices complete after 122 ms, no -16 from centauri_t6050_suspend), late + noirq suspend complete, PM: suspend-to-idle.
  • About 17 s later the lid opened: macsmc-input: lid open ... at +16888 ms in sleep: wakeup, PM: resume from suspend-to-idle, resume of devices complete after 304 ms, PM: suspend exit.
  • After resume: the owner's session is back, the GPU render node and the dock's USB devices are present, no kernel errors, no failed units.

With the stock module the same machine refused every suspend (centauri_t6050_suspend returns -16, see the PR text).

@github-actions github-actions Bot added blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at 357bf2be: not ready yet

Check Detail
CI at head no failing: KUnit asahi, KUnit spi-hid-apple, KUnit avd, KUnit ave, KUnit isp, KUnit jpeg
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no requested by erikwb
Hardware row at head no no line with the head SHA 357bf2be, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · T6050 machines with an N1 (J714c/J714s/J716c/J716s/K boards) where the N1 startup failed or was stopped; READY and in-progress behaviour is unchanged. Still to run - A real s2idle cycle on the K114s with a wake source (keyboard/lid). It needs the owner present: the K114s has no RTC wake described yet. - An N1 machine with working firmware (J714s), to confirm the READY path is unchanged (it is byte-identical in the source).

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Second real s2idle row, same K114s and kernel, with this patch: GNOME idle-suspended the machine at 18:51:59 (lid open), 'PM: suspend entry (s2idle)'. The owner woke it 17 minutes later from the built-in keyboard/trackpad (MTP input) at 19:09:20: 'resume from suspend-to-idle', resume of devices 330 ms, 'suspend exit'. After resume there were no kernel errors, the GPU render node was present and the network was back. With the stock module this idle suspend would have been refused (-16).

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: MERGE at e89a04fc575f, once the J714s row below is in.

Blockers: none in the code.

Before merge:

  1. J714s (working N1): one boot plus one s2idle cycle with this module, as Dj asked. The READY path is unchanged in the source, so this is the second-Mac regression row, not a new test.
  2. The rows name a851ca0e plus this patch, not the head SHA. One line restating them for e89a04fc would clear the readiness bot; the driver source is the same (see Evidence).

Checked: read the whole diff and the boot worker; built at this head with W=1; confirmed the rows ran on the same driver source as this head; looked for a way the new return 0 could hide a startup still in progress; no gates, no tunables, no attribution.

Evidence
  • CEN_BOOT_FAILED is final: only probe sets CEN_BOOT_ROM, and the worker sets FAILED only when it doesn't re-queue (-EAGAIN in cycle/IPC keeps the phase and retries). CEN_BOOT_STOPPED comes only from removal and quiesce. So the new return 0 can't race a startup: ROM/cycle/IPC still return -EBUSY.
  • Dj's open point (the noirq half: pci_pm_suspend_noirq() now saves F0 and puts it into D3hot) is covered by data. His review was at 06:40Z, and the two real s2idle rows came after it: the 07:37Z lid sleep ("late + noirq suspend complete", then resume) and the 08:09Z 17-minute GNOME idle sleep with a keyboard wake. Both are full suspend/resume cycles with a failed N1, so they include the D3hot round trip.
  • Row source vs head: git diff a851ca0e e89a04fc -- drivers/net/wireless/apple/centauri/ is exactly this patch, and main hasn't changed that directory since a851ca0e. The rows therefore ran this head's driver.
  • Build: make W=1 drivers/net/wireless/apple/centauri/t6050/ (arm64, aurora_defconfig) at e89a04fc: 0 warnings. checkpatch --strict: clean. No CI job builds drivers/net/wireless (it isn't in apple-build-kunit's paths), so this build stands in for it.
  • Conflicts: none with main 2d96d922 or with the other open K-board PRs (#3372, #3376, #3383, #3363).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr code-owner ping (6-point rule, point 6) at e89a04fc: App-approved and CI green, with the K114s row(s) in. Merge earliest 13:50 AEDT if there's no objection and the regression-row point is settled (see lanes: ORCH5 decides whether the J714s row is waived for T6050-only code). Revert: git revert -m 1 <merge>.

erikwb
erikwb previously requested changes Nov 29, 2026

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

Verdict: FINISH, then merge at e89a04fc575f

Blockers:

  1. drivers/net/wireless/apple/centauri/t6050/centauri_pci.c:1145: CEN_BOOT_FAILED only means that startup stopped retrying. If the ROM image response times out, centauri_t6050_rom_boot() has already enabled PCI bus mastering and published a DMA descriptor (lines 326–356). It returns without stopping DMA, and the worker marks the phase failed at line 492. The new success path lets PCI noirq put the function in D3hot without the driver checking whether transactions have drained. CEN_BOOT_STOPPED also precedes the DMA fence in centauri_t6050_quiesce() (lines 806–825), which can fail. Allow sleep after a failure before DMA starts, or require a successful quiesce and DMA fence for the other cases.

Checked: The K114s tests included full lid and keyboard wake cycles for the missing-file case. READY still saves PCI state and in-progress phases still return busy. Host tests, PR text and readiness passed, and the branch has no conflicts. The patch adds no model gate, tunable or timing constant.

Evidence

The K114s module was built from a851ca0e plus this patch. The missing file returns at line 298, before any boot DMA is submitted. The two real s2idle runs answer the earlier noirq coverage question for that path. A working-N1 s2idle cycle would cover the READY path after the fix.

@github-actions github-actions Bot added the changes-requested A reviewer requested changes (bot) label Nov 29, 2026
…ailed start

A failed or stopped N1 startup no longer holds off system sleep, but a
failure is not always DMA-free. When the ROM image response times out,
the ROM boot has already enabled bus mastering and published the boot
descriptor, and it returns without stopping DMA. A stopped startup sets
CEN_BOOT_STOPPED before quiesce fences its DMA, and that fence can fail.
Either way, PCI noirq could put the function in D3hot with transactions
outstanding.

Before allowing the sleep, release the boot DMA the same verified way
teardown does (free_boot only frees buffers after a confirmed bus-master
stop), then check that nothing is left: no IPC, firmware or descriptor
buffers and bus mastering off. A function that already reads all ones is
off the bus and cannot master. If the DMA cannot be confirmed stopped,
refuse the sleep with -EBUSY, as before this series.

A startup that failed before any DMA (missing firmware) passes the check
at once, so the K114s case that motivated the change still sleeps.

Signed-off-by: Ryan Murray <[email protected]>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: FINISH, then merge at a4eb6e8a

Blockers:

  1. centauri_t6050_boot_dma_idle() (drivers/net/wireless/apple/centauri/t6050/centauri_pci.c:285) does not check c->recovery->arena (Beta/Bluetooth DMA backing) before admitting CEN_BOOT_STOPPED to s2idle:
    • In centauri_t6050_quiesce() (lines 820–846), c->boot_phase = CEN_BOOT_STOPPED is set at line 826 even if centauri_t6050_beta_call(c->recovery, false), centauri_t6050_domain_fence(c->recovery), or centauri_t6050_beta_call(c->recovery, true) fails — leaving c->recovery->arena allocated and potentially unfenced.
    • centauri_t6050_quiesce() explicitly treats c->ipc || c->firmware || c->descriptor || c->recovery->arena as live DMA backing (line 833), whereas centauri_t6050_boot_dma_idle() checks only c->ipc || c->firmware || c->descriptor and F0's PCI_COMMAND_MASTER (lines 290–297).
    • If a failed quiesce leaves c->recovery->arena != NULL (with c->ipc/c->firmware/c->descriptor already released or cleared by centauri_t6050_free_boot()), centauri_t6050_suspend() sees CEN_BOOT_STOPPED, concludes idle == true, and returns 0 — putting F0 into D3hot while Beta's DMA arena is still retained/unfenced.
    • Fix: Check c->recovery && c->recovery->arena (taking cen_recovery_lock before c->boot_lock to preserve existing lock ordering, or refusing CEN_BOOT_STOPPED whenever arena is non-NULL) so s2idle is refused (-EBUSY) whenever Beta's DMA arena has not been fenced and released.
  2. Open CHANGES_REQUESTED review, queued CI, and exact-head hardware row:
    • Hosted CI at a4eb6e8a (apple-build, host-tests, pr-text, readiness, KUnit) is still queued.
    • Needs @erikwb sign-off on the updated DMA-fence handling once blocker 1 is closed.
    • Needs an exact-head hardware row covering the updated commit (plus the working-N1 READY s2idle regression row if not waived).

Checked:

  • Audited commit a4eb6e8a (+49/-1 in drivers/net/wireless/apple/centauri/t6050/centauri_pci.c, DCO Signed-off-by present on both commits, MERGEABLE on main):
    • For CEN_BOOT_FAILED after a ROM-boot timeout (with c->firmware/c->descriptor allocated and PCI_COMMAND_MASTER set), centauri_t6050_free_boot() invokes centauri_t6050_free_irqs() and centauri_t6050_stop_dma(c->pdev) (pci_clear_master() + pci_wait_for_pending_transaction()) before freeing firmware/descriptor; if stop_dma() fails or !c->link_ready && c->boot_attempted, the buffers remain non-NULL and centauri_t6050_boot_dma_idle() returns false -> -EBUSY.
    • For c->ipc != NULL, centauri_t6050_free_ipc() runs centauri_t6050_ipc_fenced() across all owned functions before releasing c->ipc; if fencing fails, c->ipc stays non-NULL -> -EBUSY.
    • For a missing-firmware failure (before dma_alloc_coherent/pci_set_master), centauri_t6050_boot_dma_idle() returns true immediately without touching hardware.
Evidence
  • drivers/net/wireless/apple/centauri/t6050/centauri_pci.c L820–L846 (centauri_t6050_quiesce) vs L285–L298 (centauri_t6050_boot_dma_idle) and L1165–L1186 (centauri_t6050_suspend).
  • Non-blocking nit: reading c->boot_phase under c->boot_lock (or pairing WRITE_ONCE in centauri_t6050_boot_worker()/centauri_t6050_quiesce() with READ_ONCE in centauri_t6050_suspend()) avoids a plain-write/READ_ONCE data race annotation under KCSAN.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Pushed a4eb6e8a for the blocker above (normal push on top of e89a04fc).

What changed. A failed or stopped startup now only lets the system sleep once no boot DMA can be in flight. Before returning 0, suspend runs the same verified release that teardown uses (centauri_t6050_free_boot(), which frees buffers only after centauri_t6050_stop_dma() confirms bus mastering is off and transactions have drained). It then checks that nothing is left: no IPC, firmware or descriptor buffers, and PCI_COMMAND_MASTER clear. A function that already reads all ones is off the bus and is treated as idle. If the DMA can't be confirmed stopped (for example the ROM-response timeout with the link not ready, where free_boot deliberately keeps the buffers), suspend returns -EBUSY as it did before this series.

The missing-firmware case (no DMA ever submitted) passes the check at once, so the K114s case this PR is about still sleeps.

Row at a4eb6e8a on the K114s (T6050, firmware 27.2): PASS. Ryan's bridge9 kernel 7.3.0-k114sstack8 with apple_centauri_t6050 built from bridge9 plus only this commit. It was loaded on a one-shot boot (stock module blacklisted for that boot only), and the live build-id matched the lab build.

  • READY path: Wi-Fi came up and connected.
  • 3/3 pm_test=devices s2idle cycles completed the device-suspend phase. Wi-Fi was still connected after each, with no centauri PM errors and no "refusing sleep".
  • The Mac was then put back on its saved default with the stock module.

Not covered: a real s2idle with a key wake (needs hands at the Mac), and the ROM-timeout branch, which I can't trigger on demand. Build: W=1 clean, checkpatch clean.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The new check correctly refuses suspend when a failed ROM transition retains its descriptor. There is still a verification gap when boot_dma_idle first sees PCI_COMMAND_MASTER set but the three checked pointers are NULL. free_boot calls stop_dma, which can clear MASTER and then time out waiting for pending transactions. It returns void, so the second idle check can accept the cleared bit and allow suspend after the drain timed out. Please propagate a failed fence through to -EBUSY when cleanup was needed, or establish a stronger invariant that excludes this path. Add a focused regression for the drain failure. The posted K114s devices-only row exercised READY, so it does not cover this branch. The J714s row or explicit waiver remains a separate merge gate.

…d-start sleep

The previous change ran free_boot() and then re-checked the DMA state, but
free_boot() returns void. When the boot DMA state was "no buffers left but
MASTER still set", free_boot() could clear MASTER and then time out
draining transactions; the second check only saw the cleared bit and let
the system sleep with transactions possibly outstanding.

When cleanup is needed, release the buffers as before and then run an
explicit bus-master fence with centauri_t6050_stop_dma(), whose result
says whether MASTER is clear and the pending transactions drained. Allow
the sleep only if every buffer is gone and that fence succeeded.

The decision is a small helper with KUnit coverage (no N1 hardware
needed), including the drain-timeout case:
./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 \
	--kunitconfig drivers/net/wireless/apple/centauri/t6050

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Pushed 8b304a49 for the drain-failure gap (normal push on top of a4eb6e8a).

  • Change. When cleanup is needed, suspend releases the buffers as before and then runs an explicit fence, centauri_t6050_stop_dma(). That call returns whether MASTER is clear and the pending transactions drained. Sleep is allowed only if every buffer is gone and that fence succeeded. A drain that timed out inside free_boot() times out again here and refuses the sleep (-EBUSY). It no longer passes on a cleared MASTER bit.
  • Regression. The decision is now a small helper, centauri_t6050_failed_sleep_ok(), covered by KUnit (no N1 hardware). The four cases are: nothing live, released and fenced, buffers released but the drain timed out (must refuse), and buffers retained. Result on arm64 QEMU: 4/4 pass.
    ./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig drivers/net/wireless/apple/centauri/t6050
  • Builds. W=1 clean and checkpatch clean.
  • Hardware. This commit only touches the failed/stopped branch. The READY path is unchanged from a4eb6e8a, which has a K114s row above (Wi-Fi connected, 3/3 device-suspend cycles).
  • Still open. The J714s row, or ORCH5's waiver, is still a separate gate, as you noted.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The explicit fence fixes the first suspend attempt. Please carry the failure across retries. When both fence attempts time out with no tracked buffers, stop_dma has already cleared MASTER. A second suspend can then enter the initial boot_dma_idle fast path, see null pointers and MASTER clear, and skip transaction draining. Require a fresh verified drain on a reachable function or retain the unverified-fence state until a retry verifies it. Please cover two consecutive suspend attempts in the test, with the first drain timed out and the pending transaction still present on the second. The current KUnit cases cover the single-attempt decision.

After cleanup, the previous version accepted a sleep only if stop_dma()
verified the drain, but it kept a fast path: a state with no buffers and
MASTER clear was taken as idle without draining. A timed-out fence leaves
exactly that state, since stop_dma() clears MASTER before it waits, so a
second suspend attempt could skip the drain and sleep with a transaction
still outstanding.

Drop the fast path. A failed or stopped startup now releases any boot
buffers and then runs a fresh fence on every suspend attempt; the sleep is
allowed only if all buffers are gone and that fence drained. A function
that reads all ones is off the bus and cannot master. A start that failed
before any DMA (missing firmware) drains at once and still sleeps.

The KUnit cases use a fake function with the same contract as
stop_dma(), covering two consecutive timed-out attempts with the
transaction still pending and a later attempt that drains.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Pushed 357bf2be for the retry gap (normal push on top of 8b304a49).

  • Change. No more fast path on a cleared MASTER bit. On every suspend attempt, a failed or stopped startup releases any boot buffers that are left, then runs a fresh fence: stop_dma() on a reachable function, which clears MASTER and waits for pending transactions. A function reading all ones is off the bus and can't master. The sleep is allowed only if every buffer is gone and this attempt's fence drained. A retry after a timed-out fence therefore drains again and keeps refusing while the transaction is stuck. A startup that failed before any DMA (missing firmware) drains at once and still sleeps.

  • KUnit. A fake function with the same contract as stop_dma() (clears MASTER, reports whether it drained). Cases:

    • nothing live
    • released and drained
    • two consecutive attempts that both time out with the transaction still pending (both refuse, both fence), then one that drains (sleeps)
    • buffers retained

    4/4 pass on arm64 QEMU: ./tools/testing/kunit/kunit.py run --arch=arm64 --make_options LLVM=1 --kunitconfig drivers/net/wireless/apple/centauri/t6050

  • Builds. W=1 clean, checkpatch clean.

  • Hardware. The READY path is unchanged; its K114s row is the one at a4eb6e8a. The J714s row (or ORCH5's waiver) is still the separate gate.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The retry blocker is resolved. With boot buffers released, each suspend attempt fences a reachable function again under boot_lock, including after a previous attempt cleared MASTER. The posted arm64 QEMU KUnit run covers two attempts that refuse while a transaction is pending and a third that succeeds after it drains. The K114s devices-only receipt covers READY. Keep exact-head hosted checks and the J714s regression row or explicit waiver as merge gates.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s row at head 357bf2be: PASS. Ryan's bridge9 kernel 7.3.0-k114sstack8, with apple_centauri_t6050 built from bridge9 plus this PR's three fix commits (so the module content matches this head). It was loaded on a one-shot boot with the stock module blacklisted for that boot only; the live build-id 139af936… matches the lab build.

  • READY path: Wi-Fi came up and connected.
  • 3/3 pm_test=devices s2idle cycles completed the device-suspend phase, with 0 "refusing sleep" and Wi-Fi still connected afterwards.
  • The Mac was put back on its saved default with the stock module (build-id 9c27ef50…), and the one-shot entry and unit were removed.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@erikwb your 11-29 blocker (a ROM-timeout or stopped start reaching D3 with boot DMA live) is addressed in a4eb6e8a, 8b304a49 and 357bf2be: a failed or stopped startup now releases its boot buffers and fences again on every suspend attempt, and sleeps only when that fence drains. Details and the K114s exact-head row are in the comments above, and KUnit is 4/4 including two consecutive drain timeouts. Could you re-review at 357bf2be?

@github-actions github-actions Bot added the needs-hw-row No hardware row at the PR head (bot) label Nov 29, 2026
@RyanTheTide
RyanTheTide requested a review from erikwb November 30, 2026 00:53
@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Dec 1, 2026
@RyanTheTide
RyanTheTide dismissed erikwb’s stale review December 1, 2026 06:38

Thanks erikwb. The failure you showed (a failed or stopped N1 start reaching D3 with boot DMA live) is fixed at head 357bf2b by a4eb6e8, 8b304a4 and 357bf2b: every suspend attempt after a failed start releases the boot buffers and runs a fresh verified fence, and only sleeps once it drains. KUnit covers two consecutive drain timeouts; K114s row at 357bf2b passes. Dismissing this stale review so it can merge; if you still see a gap, please reopen with the case and we'll follow up.

@RyanTheTide
RyanTheTide merged commit 595e754 into main Dec 1, 2026
46 of 61 checks passed
@RyanTheTide
RyanTheTide deleted the fix/centauri-t6050-sleep-after-failed-start branch December 1, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:m5 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants