Skip to content

wifi: apple: centauri: retain ownership across failed suspend - #2113

Merged
DjDeveloperr merged 2 commits into
integration/aurorafrom
djdev/m5-n1-refusal-fixes-20261116
Nov 17, 2026
Merged

DjDeveloperr merged 2 commits into
integration/aurorafrom
djdev/m5-n1-refusal-fixes-20261116

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

When cfg80211 disconnect fails, its void leave path can lose the error; suspend can then tear down Bluetooth or Control before a later refusal. Capture the existing disconnect transaction's first error before producer-index publication and return it through cfg80211 suspend. Add the required paired, stateless resume callback; Control owns deferred recovery and fresh registration.

Separate Bluetooth producer quiescence from arena release, preallocate an independent recovery owner before DMA publication, retain original device/default-domain/allocation tuples across unbind, and fence every function before release/removal. Recover refusals even when Control suspend never ran; serialize F0 tuples with remove and coalesce new generations behind running work.

Validation on d0dcfe84f6c195e8f8d4792e23b279f33b9ea2d1:

  • Production-source GCC/Clang models cover registration pairing, retired private-state access, extra commands, receipts, HCI lifetime, ownership and refusal recovery. Exact-head Host CI passed (run44019739169).
  • Full native Image/modules/DT build passed in c766a7981048, combining this head with independently merged backlight drm/apple: defer initial backlight restore until policy is ready #2117, as 7.3.0-m5-n1r2. Actual boot has no cfg80211 registration warning; Wi-Fi/Bluetooth connect.
  • Three actual returning pm_test=devices cycles re-registered Wi-Fi phy0→phy1 on the same Control and restored PM/RTC controls. Latest returned in7.186087s on the same boot. Exact three-display layout first matched7.969403s after the PM write returned, with stable sampled confirmation9.057386s afterward.
  • Latest post-return camera90/90, GPU8/8 plus compute, ANE128/128, network/BT/audio, combined CPU/GPU load and fault checks passed. The collector now uses a checked current-boot journal, preserving historical ANE markers and fresh after-workload fault reads. Original kernel/ESP/system/layout were restored byte-for-byte; fresh default GPU8/8 and zero new faults verified.

Full system sleep qualification remains blocked: Dell SuperSpeed0bda:0409 was present before PM and missing afterward (19→18USB). The overall row correctly failed; no post-PM exception was applied. USB2 siblings returned, and retained logs do not distinguish intentional four-lane DP from a PIPE/negotiation defect. That driver investigation remains separate; this PR does not claim a clean full-system sleep result or attribute the USB loss to a specific cause.

These were returning device tests, not physical deep sleep or individual DMA-fence callback instrumentation. Association disconnect is distinct from full firmware sleep. Asynchronous event attribution, the USB-C producer and slpw wire timing remain unresolved. No new firmware commands or wake-mask policy; default/rootfs suspend enablement stays unchanged. Physical PCI device removal remains outside the retained-allocation contract.

Capture disconnect errors before transport teardown and propagate them from
cfg80211 suspend. Separate Bluetooth producer quiescence from coherent arena
release and register a recovery owner before publishing DMA addresses.

Retain original device/domain/allocation ownership across unbind, fence every
function before freeing or removing the endpoint, and recover aborted suspend
even when Control suspend never ran. Serialize F0 tuple access with remove and
keep new recovery generations from being lost behind running work.

Add production-source host tests with runtime failure controls for receipts,
Bluetooth registration/release and recovery/refusal ordering. These checks do
not establish firmware sleep or wake-event attribution.
Register the resume operation required by cfg80211 when suspend is present.
Native boot otherwise warns in wiphy_new_nm before Wi-Fi registration.

Control owns deferred recovery and fresh registration. The paired callback
must not access Wi-Fi private state, which quiesce may already have retired,
or issue another firmware transaction.

Exercise the actual registration pairing check and resume dispatch in host
tests, with missing-pair, private-access and extra-command controls.
@DjDeveloperr
DjDeveloperr marked this pull request as ready for review November 17, 2026 07:08
@DjDeveloperr
DjDeveloperr merged commit ae7a970 into integration/aurora Nov 17, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the djdev/m5-n1-refusal-fixes-20261116 branch November 17, 2026 23:52
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