Skip to content

apple: quiet two expected J700 boot messages (AFK retired-channel close, power-LUT fallback) - #343

Merged
RyanTheTide merged 3 commits into
aurora-wipfrom
cleanup/boot-warnings-20261017
Oct 17, 2026
Merged

RyanTheTide merged 3 commits into
aurora-wipfrom
cleanup/boot-warnings-20261017

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Two boot-time messages on the MacBook Neo were noise rather than faults, so they're quieted:

  • An AFK retired-channel close no longer warns.
  • The J700 power-LUT fallback is logged at info. No released loader publishes those tables, so the fallback is the expected path.

The history behind each decision is in the boot-warning audit; every other boot warning is either justified or owned elsewhere.

This PR also includes a tools-only apple-dcp selftests commit. It adds the new helper to the extraction lists and changes no expectations, so run.py stays at 55/55.

Review: independent, PASS. The demotions were checked against the audit's history, and none hides a real fault.

Testing (all five backlog PRs together, merged onto aurora-wip 45647d08)

The five PRs (rust-clippy, boot-warnings, kunit-parsers, harden-all, spi-apple-cs) were merged in order into one candidate, integ/batch1-20261017 6908f0ffd9ca. A simulated run of the GitHub merges, in this order, lands on exactly that tree.

Build and test gates

  • Published config: 0 warnings, 2,513 modules.
  • Every intermediate merge builds, and W=1 adds 0 new warnings in the touched directories.
  • KUnit:
    • C: 242/242;
    • Rust: 110/111 (the one skip is deliberate);
    • tipd 43/43 and tipd-spmi 48/48;
    • usb-dart-atc-lockdep 135/135, with no lockdep reports;
    • bt 10/10.
  • apple-dcp host selftests: 55/55.

Earlier combined kernel (these five plus tipd-hpd-pulse-v2 and clamshell-mic, on aurora-wip 3f12d3d7):

  • MacBook Neo:
    • Touch ID registered on the first attempt;
    • AOP LPAI/HPAI captures had 0 ring errors;
    • the display, GPU, Wi-Fi, BT, camera, mic and thermal checks all passed;
    • 3/3 s2idle cycles passed;
    • 0 WARN/BUG.
    • One rear-port Type-C event (a PD re-election burst from the debug host) hit the known ATC PIPE-to-dummy timeout. It was root-caused as not related to these branches, and did not reproduce on a re-boot.
  • M1 Pro:
    • pm_test 3/3, 0 DART faults, tipd rebind 10/10, USB4 routers bound;
    • eDP, Wi-Fi, BT, NVMe and GPU OK;
    • the SEP sensor registers with the spi-apple CS change, and 0 of 14 xART records changed.

This candidate, final hardware

  • MacBook Neo: running now; not a gate for this PR. It was hardware-qualified in the combined kernel above.
  • M1 Pro: running now; not a gate for this PR.

🤖 Generated with Claude Code

afk_recv_handle_teardown() warns when the co-processor closes a channel
that has no live service. On M1 and M2 that should not happen, because
the driver never gives up a service on its own. Since the H17P
reconnect support, it gives up services in two places:

 - dpavservep_detach() retires the DCPAVSERV EDID service when the
   external display goes away, before the firmware closes its channel;
 - afk_service_discard() drops a service whose preparation declined it,
   such as the optional AppleDCPDP2HDMI service on its second channel.

The firmware then closes both channels on every unplug and the driver
prints two "teardown for disabled channel" warnings, although it has
nothing left to do.

Log a teardown at debug level when the slot that last served the
channel is torn down, and keep the warning for a channel no slot knows.
A slot that is reused for another channel forgets the old one, so an
unexpected close is still reported. Rename that warning to say
"unknown", which is the only case left.

Add KUnit cases for a retired, a declined, a reused and a live slot.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
The H17P DCP asks for five power-LUT tables through the provider
property callback. Commit 2277872 ("drm: apple: retain J700 provider
replies with older loaders") answers with the J700 tables when the
device tree lacks them, because the loader in use predates those
properties, and warns once that it does so.

No released loader adds these properties yet, so the warning appears on
every J700 boot. The reply carries the same bytes as the disp0 entries
of the Apple Device Tree, and both displays work with it, so there is
no fault to report. Log the fallback at info level instead. The message
still names the missing property, and properties that are present but
malformed are still errors.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
… level

The service-rebind group extracts afk_recv_handle_teardown(), which now
asks afk_epic_channel_retired() whether a teardown names a channel that
was retired before it logs. Extract that helper and the
afk_service_retired() check it uses, so the group keeps compiling the
production teardown path.

The firmware-provider group compiles trampoline_provider_property_h17p(),
which now reports the J700 power-LUT fallback with dev_info_once().
Give its host prelude a no-op dev_info_once() next to dev_warn_once().

No expectation changes; all 55 host tests pass.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant