Repository navigation
accel/ane: bind the H17 device so its power domain can turn off - #838
Merged
Merged
Conversation
…tate The staged H17 backend left its platform device unbound: probe returned -ENODEV and the backend attached a separate virtual genpd device for ANE_SYS. The unbound device is a fw_devlink consumer of the PMGR power controller, so "sync_state() pending due to 400000000.ane" stayed forever. Until sync_state runs, genpd keeps every boot-on domain under that controller on (stay_on), ANE_SYS included, whatever its users put. On the Neo, ANE_SYS never powered off, at idle or across system sleep. - The H17 probe now binds the device (ane_fw_staged_bind()). platform_probe has attached it to its single power domain, so the backend powers ANE_SYS through the device's own runtime PM. A second virtual device is not possible on a bound single-domain device. - With a loader hand-off the engine is powered as the loader left it: the bind holds ANE_SYS (runtime active, one reference) until the bring-up takes its own reference or stops. Without a hand-off the device is runtime suspended and the domain may go off. - The bound device's system sleep callbacks go through the generation dispatch (ane_fw_platform_suspend()/resume()) to an H17 backstop that refuses only while the firmware is retained, as the PM notifier does. H16 keeps its backend callbacks. KUnit: only the staged (Exclave-owned firmware) platform binds for the backend, and it keeps the backend sleep path. Tested on the Neo (C5, fleet14k): bound with the hand-off hold, no sync_state pending line, display and USB up at boot. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
notmysegv
pushed a commit
to notmysegv/linux
that referenced
this pull request
Nov 4, 2026
…tion/aurora Bring integration/aurora up to aurora-wip e1524e6, the source of 7.3.0-aurora-fleet14l, promoted on all four machines on 2026-11-02. The range also covers the fleet14i, fleet14j and fleet14k sources (a8fa302, d67eece, ce900d1). It adds aurora-silicon#822, aurora-silicon#823, aurora-silicon#824, aurora-silicon#827, aurora-silicon#829, aurora-silicon#834, aurora-silicon#835, aurora-silicon#836, aurora-silicon#838, aurora-silicon#840 and aurora-silicon#839. No conflicts. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
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.
On the Neo (T8140, H17) the staged ANE backend left the ANE platform device unbound: probe returned -ENODEV and the backend drove the engine itself. Because that device never bound, the PMGR power controller that owns ANE_SYS never got its sync_state (
sync_state() pending due to 400000000.ane), so genpd kept every boot-on domain under that controller powered. ANE_SYS never turned off, not at idle and not across system sleep, whatever the backend put.Change
ane_fw_platform_probe()binds the device for the staged backend (ane_fw_staged_bind()).platform_probehas already attached the device to its single power domain, and the backend now powers ANE_SYS through the bound device's own runtime PM instead of a second virtual genpd device.Testing (fleet14k, modules built from this commit only)
rtcwake -m memsuspends and resumes.rtcwakerefused cleanly ("ANE: system sleep not supported yet, suspend refused"), no oops, and MobileNet 16/16 again afterwards.🤖 Generated with Claude Code