Skip to content

soc: apple: t6050-aop: keep one ring buffer per endpoint - #2906

Merged
DjDeveloperr merged 3 commits into
mainfrom
hardening/t6050-aop-getbuf-20261123
Nov 26, 2026
Merged

DjDeveloperr merged 3 commits into
mainfrom
hardening/t6050-aop-getbuf-20261123

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Each AFK_GETBUF from the AOP2 firmware allocated a new device-managed buffer, which is only released at unbind (which this driver doesn't allow), and published it without ordering against the readers on the sleep/wake path.

Problem

  • A repeated GETBUF added another buffer every time.
  • The stores of the buffer pointer and its size weren't ordered against t6050_aop2_view(), which reads the rings from the resume path on another thread, so a reader could pair a new buffer with an old size.

Change

  • An endpoint gets one buffer for as long as the firmware runs. A later GETBUF that fits in it gets the same IOVA. One with no size, or larger than the buffer, is refused and logged (ratelimited) without an answer.
  • An answered GETBUF starts the endpoint's rings over (second commit): neither ring is ready, the element count is reset, and the endpoint isn't open until its rings start again, so nothing is written at the previous setup's offsets.
  • The buffer is published with smp_store_release() after its size and IOVA; t6050_aop2_view() reads it with smp_load_acquire(). The ring offsets and sizes are still plain stores, but t6050_aop2_view() checks them against the fixed buffer size on every read, so a reader never leaves the buffer.
  • KUnit suite apple_t6050_aop (CONFIG_APPLE_T6050_AOP_KUNIT_TEST).

No gates; no new parameters.

Testing

  • KUnit (arm64 qemu, LLVM=1): apple_t6050_aop 8/8 pass (first, empty, repeat, smaller, larger, reused and refused GETBUF, ring view bounds). With the fixes reverted and the tests kept, the GETBUF cases fail; with only the ring reset reverted, the reused-GETBUF case fails.
  • arm64 W=1 build: no warnings in the touched files; checkpatch clean apart from the MAINTAINERS note.

Still to run

  • A T6050 (M5) row: AOP2 probe, sensors and mics present, and a sleep/wake cycle. We don't have an M5 in the lab; a row from someone who has one is welcome.
Reviewer detail
  • A smaller GETBUF is answered with the existing (larger) buffer and r->size stays the buffer's real size, so every later bounds check is against memory that exists.
  • Only the endpoint's own messages, in order on the RTKit receive worker, change its buffer, so there's no writer-writer race.
  • Split out of soc: apple, wifi: bound firmware-supplied sizes and addresses in PMP, AOP2, brcmfmac and centauri #2894 per review; changes since: a GETBUF that fits the buffer is answered instead of refused, and the commit text no longer claims more than the release/acquire pair covers.

Each AFK_GETBUF from the AOP2 firmware allocated a new device-managed
coherent buffer and stored it in the endpoint's ring, replacing the one
before. Those buffers are only released at unbind, which this driver
does not allow, so a repeated GETBUF kept adding buffers. The stores of
the buffer and its size were also not ordered against
t6050_aop2_view(), which reads the rings from the resume path in
another thread, so a reader could pair a new buffer with an old size.

An endpoint now gets one buffer for as long as the firmware runs. A
repeated GETBUF that fits in it is answered with the same IOVA; one with
no size or a larger size than the buffer is refused and logged
(ratelimited), without an answer. The buffer is published with
smp_store_release() after its size and IOVA, and t6050_aop2_view() reads
it with smp_load_acquire(), so a reader that finds the buffer also finds
its size. As the buffer and its size never change once set, the readers
need no lock for them. The ring offsets and sizes are still plain
stores; t6050_aop2_view() checks them against the buffer's fixed size
on every read, so a reader never leaves the buffer.

Add KUnit tests (CONFIG_APPLE_T6050_AOP_KUNIT_TEST, suite
apple_t6050_aop) for the GETBUF decision and the ring view's bounds.

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

Copy link
Copy Markdown
Contributor Author

Review at 3975913.

Follow-up to the #2894 review, AOP2 part. Both points raised there are fixed; one question on the reuse path and the hardware row remain.

Fixed from #2894:

  • Too-strict GETBUF (item 4): t6050_aop_getbuf_check() now answers a repeat that fits with the same IOVA and refuses only an empty or larger one (t6050-aop.c:149-156, :167-185). r->size stays the real buffer size, so t6050_aop2_view() (:251-257) still checks against memory that exists.
  • Commit text (item 5): the lock-free claim is now limited to buf/size (smp_store_release at :182, smp_load_acquire at :254), and the text says the ring offsets are plain stores re-checked on every read. That matches the code.

New / still open:

  1. A reused GETBUF leaves the old ring state in place: tx_off/tx_size/tx_ready, rx_*, seq, closed and the buffer's old contents (:167-185 touch none of them). If the firmware sends GETBUF again it is setting its rings up again, and until its new INIT_TX/INIT_RX arrive (:207-216) a sleep stop would put an element at the old offsets in a buffer the firmware treats as fresh. It stays inside the buffer, so it is not a memory bug, but it is a wrong message. Clear tx_ready/rx_ready when a GETBUF is answered from the existing buffer, or say in the commit why the firmware never does this.
  2. A larger GETBUF still gets no answer, so that endpoint is dead until reboot (:168-172). That is acceptable for a size the driver cannot honour, but hardware has not shown what the firmware sends on a repeat. The T6050 row should log every GETBUF (endpoint, size) across a sleep/wake cycle.
  3. Nit: the KUnit suite tests the decision function and the view bounds, not t6050_aop_getbuf() itself. So the publish order and the IOVA reuse are covered by reading only. Fine for now; say so in the PR text ("the GETBUF cases" reads as if the handler ran).

Rows owed at this head (none run): a T6050 Mac: AOP2 probe on the default command line, sensors and mics present, s2idle x2, with the GETBUF log from item 2. The driver only binds on T6050, so no lab Mac can cover it.

@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 adversarial §1–§6 pre-PR checklist review at 39759136e3085ee0ed989d2728228f8085230333 (REQUEST_CHANGES — reuse-path ring state handling, pending CI, and owed §5 T6050 hardware row).

Checklist Summary

  • §1 (No model gating): Pass — no chip, SoC, board, or firmware-version gates.
  • §2 (Production-ready, no hacks): Pass — no new parameters or delays.
  • §3 (Safety — bounds & memory ordering): Mostly sound, with one reuse-path state issue (Blocker #1). First AFK_GETBUF allocates once (16-bit block count << 6, bounded to ~4 MiB per endpoint across 13 endpoints), writes r->iova and r->size, and publishes r->buf via smp_store_release(&r->buf, buf) (t6050-aop.c:180-183). t6050_aop2_view() loads buf via smp_load_acquire(&r->buf) and performs overflow-free bounds checks (off > r->size || size > r->size - off, :254-257). Because r->buf and r->size are immutable after first publication, a reader never accesses outside the allocated buffer.
  • §4 (Clean-room & attribution): Pass — commit 39759136e308 carries human author/committer (Ryan Murray <[email protected]>) and human Signed-off-by: only (zero AI trailers in commits); PR body includes Assisted-by:.
  • §5 (Evidence): Blocked — CI pending and T6050 hardware row unrun.
  • §6 (Naming): Pass.

Blockers

  1. §3 / Protocol correctness — Stale ring state on reused AFK_GETBUF (drivers/soc/apple/t6050-aop.c:167-185):
    • When t6050_aop_getbuf_check() returns 1 (repeat AFK_GETBUF fitting in the existing buffer), t6050_aop_getbuf() returns r->iova while leaving r->tx_ready, r->rx_ready, r->tx_off/tx_size, r->rx_off/rx_size, r->seq, and r->closed intact from the previous setup.
    • If the firmware re-issues AFK_GETBUF to re-initialize rings, any sleep stop arriving before the subsequent AFK_INIT_TX/AFK_INIT_RX will write a sleep element at stale ring offsets inside a buffer the firmware treats as fresh (in-bounds, so not OOB, but a corrupted protocol message).
    • Either clear r->tx_ready/r->rx_ready (with appropriate ordering against readers) when reusing the buffer on a repeat AFK_GETBUF, or verify and document from hardware traces why the firmware never re-initializes rings via repeat AFK_GETBUF.
  2. §5 (Owed T6050 hardware row & pending CI):
    • CI at 39759136e308: 3/7 green (source, host-tests, DWC3/ATC modular-no-atc); 4/7 still in_progress/queued (kunit, rust-build, DWC3/ATC builtin-no-atc, DWC3/ATC builtin-modular-atc).
    • Owed on hardware: a T6050 (M5) row on the default command line showing AOP2 probe, sensors/mics present, s2idle ×2, logging every AFK_GETBUF (endpoint, requested size) across boot and sleep/wake, plus regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors).

Non-blocking Notes

  • Note that t6050_aop2_put()/t6050_aop2_take() evaluate r->tx_off/r->tx_size/r->tx_ready as call arguments before t6050_aop2_view() runs smp_load_acquire(&r->buf). Because r->size is fixed once published and bounds-checked on every read, this cannot cause an OOB access, and the commit message accurately scopes the release/acquire guarantee to buf/size; if tx_ready/rx_ready are cleared on reuse, consider WRITE_ONCE/READ_ONCE or release/acquire on ready.
  • t6050-aop-test.c tests t6050_aop_getbuf_check() and t6050_aop2_view() directly rather than t6050_aop_getbuf() end-to-end; clarifying that in the PR testing summary is helpful.

A GETBUF that reuses the endpoint's buffer left its ring state from the
last setup in place: both rings stayed marked ready at their old offsets
and the element count went on. A sleep stop arriving between the GETBUF
and the firmware's new ring announcements would then write its element
at the old offsets in a buffer the firmware treats as new.

The firmware announces the rings after each GETBUF, so start them over
when one is answered: neither ring is ready, the element count and the
recorded pointers go back to zero, and the endpoint is not open until
its rings start again. A refused GETBUF changes nothing.

Rename t6050_aop_getbuf_check() to t6050_aop_getbuf_claim() as it now
changes the ring, and add KUnit cases for a reused and a refused GETBUF.

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

Copy link
Copy Markdown
Contributor Author

Thanks. Addressed at 3d1734b: an answered GETBUF now starts the endpoint's rings over. t6050_aop_getbuf_claim() (renamed from _check, since it now changes the ring) clears tx_ready/rx_ready (WRITE_ONCE) and resets seq and the recorded tx_rptr/tx_wptr. t6050_aop_getbuf() clears the endpoint's opened bit until AFK_START_ACK comes again, so the sleep stop skips it until its rings are announced and started. A refused GETBUF changes nothing. closed is left alone: it tracks the sleep/wake handshake and is cleared only by the wake's answer. An endpoint with no ready ring can't take a wake element (t6050_aop2_view() returns -EINVAL), so it stays closed rather than getting an element at stale offsets.

KUnit apple_t6050_aop is now 8/8, with new cases for a reused GETBUF (rings no longer viewable, seq 0) and a refused one (state kept). With only the reset reverted, the reused-GETBUF case fails (13 pass, 1 fail). These test t6050_aop_getbuf_claim() and t6050_aop2_view() directly; t6050_aop_getbuf() itself needs RTKit and stays for the hardware row. arm64 W=1: 0 warnings.

The T6050 row (AOP2 probe, sensors/mics, s2idle x2, every GETBUF logged) still needs someone with an M5.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Review at 3d1734b.

Status of the points from my review at 3975913:

  1. A reused GETBUF kept the old ring state: fixed. t6050_aop_getbuf_claim() clears tx_ready/rx_ready, seq and the recorded pointers when a GETBUF is answered (t6050-aop.c:152-168), and t6050_aop_getbuf() clears the endpoint's opened bit until AFK_START_ACK (:185). The sleep stop therefore skips the endpoint (:470), and t6050_aop2_view() refuses a ring that is not ready. A refused GETBUF changes nothing, and the new KUnit case checks both.
  2. Larger GETBUF and the GETBUF log: still open, and it can only be settled on hardware. It belongs to the T6050 row.
  3. KUnit scope: done. The PR text now says the cases test _claim() and the view directly, not the handler.

New, neither blocking:

  1. closed is left as it was on a re-armed endpoint. Take an endpoint whose wake element was never answered, so closed is true, which the firmware then sets up again with GETBUF, rings and START_ACK. It is open again, but the next sleep stop still skips it as "closed already" (:473) and sends it no sleep element. On the next restart, the wake element goes to an endpoint that never got a sleep element. If a fresh GETBUF means the firmware has started that endpoint over, which is what this commit assumes, then clearing closed at START_ACK (or in _claim()) follows from it. If you keep it, give the reason in the commit text, and let the T6050 row's GETBUF log decide.
  2. The ready flags are now cleared with WRITE_ONCE, but they are still set with plain stores at INIT_TX/INIT_RX (:223, :228) and read as plain arguments in put/take/rx_wptr. In-bounds either way, since size is fixed and checked on every view. For consistency, use WRITE_ONCE/READ_ONCE on both sides, or drop the WRITE_ONCE and say that recv is serialized against the sleep path.

Commit trailers are fine (one human Signed-off-by).

Verdict: NITS. Rows owed at this head (none run): a T6050 Mac on the default command line: AOP2 probe, sensors and mics present, s2idle x2, every GETBUF logged (endpoint, size) across boot and sleep/wake. Only an M5 can run it, so this needs an outside row. CI: 1 of 4 green, 3 pending.

@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 adversarial §1–§6 re-review at 3d1734b4a7a168d5133403caf07e826a82d7f175 (REQUEST_CHANGES — Wave 60C repeat AFK_GETBUF reuse blocker resolved with 0 remaining code blockers; still blocked on owed §5 T6050 hardware row and pending CI).

Wave 60C Fix Verification

  • Stale ring state on reused AFK_GETBUF (3d1734b4a7a1, t6050-aop.c:152-203): Fixed. t6050_aop_getbuf_claim() resets tx_ready, rx_ready (WRITE_ONCE(..., false)), seq, tx_rptr, and tx_wptr whenever a GETBUF is accepted (first allocation or fitting reuse), while leaving ring state untouched on a refused GETBUF. t6050_aop_getbuf() clears the endpoint's opened bit (:185) so t6050_aop_sleep_stop() skips it until AFK_START_ACK re-opens it, and t6050_aop2_view() rejects !ready with -EINVAL. New KUnit cases (t6050_aop_test_reused_getbuf_restarts_rings, t6050_aop_test_refused_getbuf_keeps_rings) directly cover both paths, and the PR testing summary accurately reflects their scope.

Checklist Summary

  • §1 (No model gating): Pass.
  • §2 (Production-ready, no hacks): Pass.
  • §3 (Safety — bounds & memory ordering): Pass — r->buf/r->size remain immutable once published via smp_store_release()/smp_load_acquire(), every t6050_aop2_view() re-checks bounds against r->size, and reused GETBUF can no longer emit sleep/wake elements at stale ring offsets.
  • §4 (Clean-room & attribution): Pass — both commits (39759136e308, 3d1734b4a7a1) carry human author/committer (Ryan Murray <[email protected]>) and human Signed-off-by: only (zero AI trailers in commits); PR body includes Assisted-by:.
  • §5 (Evidence): Blocked — see Remaining Blockers below.
  • §6 (Naming): Pass.

Remaining Blockers

  1. §5 (Owed T6050 / M5 hardware row): No hardware row posted yet at 3d1734b4a7a1. Owed on a T6050 Mac on the default command line: AOP2 probe, sensors/mics present, s2idle ×2, logging every AFK_GETBUF (endpoint, size) across boot and sleep/wake, plus regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors).
  2. CI pending: 4/7 green (host-tests, source, rust-build, DWC3/ATC builtin-no-atc); 3/7 still IN_PROGRESS/QUEUED (kunit, DWC3/ATC modular-no-atc, DWC3/ATC builtin-modular-atc).

Non-blocking Notes

  • r->closed across endpoint re-arm (t6050-aop.c:162-167, 231-233, 473, 594): If an endpoint's wake element timed out (r->closed == true) and firmware later re-initializes it with GETBUF → INIT_TX/INIT_RX → START_ACK, opened becomes set again while r->closed stays true, causing the next t6050_aop_sleep_stop() to skip it (:473) while t6050_aop_restart() still sends a wake element (:594). Consider clearing r->closed on GETBUF claim or AFK_START_ACK (or verifying from the T6050 hardware trace).
  • WRITE_ONCE/READ_ONCE symmetry: _claim() clears tx_ready/rx_ready with WRITE_ONCE, whereas INIT_TX/INIT_RX (:223, :228) write them plainly and put/take/rx_wptr read them plainly; matching WRITE_ONCE/READ_ONCE on both sides keeps KCSAN clean.

…tart

An endpoint whose wake element went unanswered stays closed. If the
firmware then starts the endpoint over (GETBUF, ring announcements,
AFK_START_ACK), it is open again while still marked closed, so the next
sleep stop skips it and the next restart sends it a wake element it
never had a sleep element for. A restarted endpoint has no sleep element
pending, so clear closed when its rings start.

Also mark the rings' ready flags with WRITE_ONCE() when they are
announced and read them with READ_ONCE() on the sleep and wake path,
matching the WRITE_ONCE() that clears them at a GETBUF.

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

Copy link
Copy Markdown
Contributor Author

Both non-blocking notes are done at f3ad1a8 (one commit): closed is cleared at AFK_START_ACK, since a restarted endpoint has no sleep element pending, so the next sleep stop includes it and the restart doesn't send it a stray wake element. tx_ready/rx_ready are now WRITE_ONCE at INIT_TX/INIT_RX and READ_ONCE on the put/take/wptr paths, matching the clear at GETBUF. KUnit apple_t6050_aop 8/8; W=1 and checkpatch clean. The T6050 row is still owed.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Re-review please at f3ad1a8. Your two non-blocking notes from 3d1734b are done: closed is cleared at AFK_START_ACK, and the ready flags use WRITE_ONCE/READ_ONCE on both sides. CI is pending at this head. Still owed: a T6050 (M5) row on the default cmdline. We have no M5, so it needs an outside row.

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.

Formal §1–§6 pre-PR checklist re-review at f3ad1a8f362c0e8ce3fec0faae52748c24f16d74.

Updated Diff Audit (f3ad1a8f362c)

Both non-blocking notes from the 3d1734b4a7a1 review are cleanly resolved in drivers/soc/apple/t6050-aop.c:

  1. Endpoint restart closed state (t6050-aop.c:231-235): AFK_START_ACK now clears r->closed = false before set_bit(ep - AOP_EP_FIRST, &aop->opened), so an endpoint whose wake element previously timed out and was subsequently restarted via GETBUF → INIT_TX/INIT_RX → START_ACK is properly included in the next sleep stop rather than skipped while still receiving a stray wake element.
  2. WRITE_ONCE/READ_ONCE symmetry (t6050-aop.c:223, 228, 309, 366, 401): tx_ready and rx_ready are now written with WRITE_ONCE() in t6050_aop_getbuf_claim(), AFK_INIT_TX, and AFK_INIT_RX, and read with READ_ONCE() across t6050_aop2_put(), t6050_aop2_rx_wptr(), and t6050_aop2_take(). r->buf/r->size publication remains properly ordered via smp_store_release()/smp_load_acquire() with overflow-free bounds checks in t6050_aop2_view().

Checklist Summary

  • §1 No model gating: Pass.
  • §2 Production-ready, no hacks: Pass (0 code blockers).
  • §3 Safety: Pass.
  • §4 Clean-room & attribution: Pass (all 3 commits 39759136e308, 3d1734b4a7a1, f3ad1a8f362c carry human author/committer and human Signed-off-by: Ryan Murray <[email protected]> only, zero AI trailers in commits; PR body disclosure present).
  • §5 Evidence: Waiting on CI & T6050 hardware row.
    • CI at f3ad1a8f362c: 2/7 green (host-tests, source); 5/7 still IN_PROGRESS/QUEUED (kunit, rust-build, DWC3/ATC builtin-no-atc, DWC3/ATC modular-no-atc, DWC3/ATC builtin-modular-atc).
    • Owed hardware row: T6050 (M5) on the default command line showing AOP2 probe, sensors/mics present, s2idle ×2, logging every AFK_GETBUF (endpoint, size) across boot and sleep/wake, with 0 SELinux denials, 0 failed units, and 0 new kernel errors.
  • §6 Naming: Pass.

Zero code or policy blockers remain; posting COMMENT pending CI completion and the owed §5 T6050 hardware row.

@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 adversarial §1–§6 pre-PR checklist re-review at f3ad1a8f362c0e8ce3fec0faae52748c24f16d74 (against live integration/aurora 70a00e583b03; still needed — drivers/soc/apple/t6050-aop.c still allocates a new dmam_alloc_coherent buffer on every AFK_GETBUF without release/acquire ordering).

Checklist Summary

  • §1 No model gating: Pass — no chip, SoC, board, or firmware-version gates.
  • §2 Production-ready, no hacks: Pass — no new cmdline/module parameters or workarounds.
  • §3 Safety: Pass — t6050_aop_getbuf_claim() enforces single coherent buffer allocation per endpoint for firmware lifetime, reuses the existing IOVA for fitting repeat AFK_GETBUFs while resetting ring state (tx_ready/rx_ready via WRITE_ONCE, seq, tx_rptr/tx_wptr) and clearing opened, and refuses empty or oversized requests without modifying ring state; r->buf is published with smp_store_release() after r->size/r->iova and loaded in t6050_aop2_view() via smp_load_acquire() with overflow-free bounds checks; f3ad1a8f362c cleanly clears r->closed on AFK_START_ACK and pairs WRITE_ONCE/READ_ONCE on tx_ready/rx_ready.
  • §4 Clean-room & attribution: Pass — all 3 commits (39759136e308, 3d1734b4a7a1, f3ad1a8f362c) carry human author/committer (Ryan Murray <[email protected]>) and human Signed-off-by: only, zero AI trailers in commits; PR body disclosure present.
  • §5 Evidence: Blocked — see below.
  • §6 Naming & Live CI: Pass — live CI at f3ad1a8f362c is 7/7 green (host-tests, source, rust-build, kunit, DWC3/ATC builtin-no-atc, DWC3/ATC modular-no-atc, DWC3/ATC builtin-modular-atc).

Remaining Blocker

  1. §5 T6050 (M5) hardware & regression evidence owed: This PR modifies production driver code (drivers/soc/apple/t6050-aop.c), and while KUnit (apple_t6050_aop 8/8) and 7/7 CI are green, no T6050 hardware row has been posted yet. Owed on a T6050 (M5) Mac on the default command line: AOP2 probe, sensors/mics present, s2idle ×2 logging every AFK_GETBUF (endpoint, requested size) across boot and sleep/wake, plus regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors).

Zero code, attribution, or CI blockers remain.

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at f3ad1a8f: ready to merge

Check Detail
CI at head ok 7 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok comment at f3ad1a8f
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:platform
Merge: gh pr merge 2906 --merge (Owners and Core through the bypass: add --admin).

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

@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: FINISH, then merge at f3ad1a8f362c: the code is ready; it needs only a row at this head.

Blockers: none in the code. Missing row: one T6050 (M5) Mac at this head with AOP2 probing, the sensors and mics present, and two s2idle cycles. The M5 lead can run it on the J714s.

Checked: no Apple material, no gates: one ring buffer per endpoint. KUnit apple_t6050_aop 8/8, CI green.

@DjDeveloperr
DjDeveloperr dismissed stale reviews from themself November 25, 2026 04:01

Superseded by the review at f3ad1a8

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) ready-to-merge Meets the merge policy: merge it (bot) labels Nov 25, 2026
@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed ready-to-merge Meets the merge policy: merge it (bot) labels Nov 25, 2026

Copy link
Copy Markdown
Contributor

PASS on a 14-inch MacBook Pro (J714s, M5 Pro/T6050, G17S B1), kernel 7.3.0-m5-rows-prs, at f3ad1a8f362c0e8ce3fec0faae52748c24f16d74.

Candidate 053c0549b09b7a48582d5dfbfeb1ddbb25af442d merged these unchanged heads onto main 15695c3ba53291e78bf62140598dbdffc7fb2b72 plus Clang fix 0050f580cc54892302f38e458e609d1b793010e0, which has since merged. The baseline was that same main plus the fix (f2b85419afafcfd6e6bc5ceeaa79e9ee557563a4).

The merged heads were #2906 f3ad1a8f362c, #3123 822a1dd7369c, #3116 064c3c65cd3e, #2949 0a4f6d6576a3, #2913 48b6d70dde9e, #2218 b3e6c51a4b5f and #2007 4738426f6c24.

AOP2 probed and started with 6 endpoints. Both arms showed 4 IIO sensor devices and the microphone array capture device. The candidate returned from deep sleep in 30.7 s, logged AOP: restarted after the sleep, AP ON, 6 of 6 endpoints open again, and still had all 4 sensors and the microphone array. The ambient-light read succeeded before and after wake.

The sleep check used deep mem. The baseline s2idle attempt stayed unreachable.

The command line matched the default. SELinux was disabled. tailscaled.service was the one failed unit on both boots and on the default. Each boot had 6 error-priority lines, all the known DCP clock-index message. After one deep cycle, there were 83 warning/error-priority lines on the baseline and 79 on the candidate, with zero added lines and zero kernel WARNING: reports. The known DCP clock-index message occurred 10 times on each arm through the wake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform 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.

2 participants