Repository navigation
wifi: apple: centauri: retain ownership across failed suspend - #2113
Merged
DjDeveloperr merged 2 commits intoNov 17, 2026
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:c766a7981048, combining this head with independently merged backlight drm/apple: defer initial backlight restore until policy is ready #2117, as7.3.0-m5-n1r2. Actual boot has no cfg80211 registration warning; Wi-Fi/Bluetooth connect.pm_test=devicescycles 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.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.