Repository navigation
Merge aurora-wip batch 5 (fleet14m to fleet14n, 7f126982) into integration/aurora - #876
Merged
Merged
Conversation
FWIL maps all firmware errors to -EBADE, so brcmf_run_escan cannot recognize BCME_BUSY and takes the error-level path instead. The scan callback then logs the same rejection a second time. This can happen when the firmware cannot accept an escan around initial association. Add an iovar setter that reports the command's firmware status alongside the existing host error, under the protocol lock. Keep existing FWIL callers and the feature-probing firmware-error mode unchanged. Leave the status zero on transport or local setup failures. Translate only an explicit BCME_BUSY escan reply to -EBUSY. Report it once at debug level and use the existing scan cleanup without arming the timeout, so userspace can retry. Treat the existing connecting check as busy as well. Keep other errors at error level and include the raw firmware status to distinguish non-busy scan rejections. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
genpd_resume_noirq() powers the T6000 GPU's GFX domain back on after pm_test=platform. Its actual-state field can still report clock-gated (0x4) after the existing 100 us timeout, with the target already at 0xf. genpd_sync_power_on() ignores the callback's error and marks the domain on, so checking for the actual-state acknowledgment remains important. Allow power-on the same bounded 10 ms polling budget used by m1n1's pmgr_set_mode(). Keep the existing power-off and reset/disable budgets, and the strict-state domain's existing 10 ms budget. Continue to report and return a timeout if the actual state does not acknowledge the request; neither an on target nor an intermediate actual state counts as success, except for the existing externally-clocked policy. Extend the emulated-register KUnit tests with an acknowledgment beyond the old budget and a stuck noirq power-on that still returns an error and retains the on request for genpd. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The AP/STA virtual interface creation comment precedes an AWDL cleanup helper instead of brcmf_apsta_add_vif(). W=1 reports a mismatched function name and an undocumented cfg parameter when compiling cfg80211.c. Move the existing comment immediately above the function it describes so the brcm80211 W=1 verification can run without kernel-doc warnings. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
During platform-test resume the GPU's genpd_resume_noirq() path requests GFX active again. The failing register value 0x0f000b4f has target 0xf, actual state 0x4 and bit 11 set: the upstream power/clock is unavailable. The 100 us actual-state poll includes this parent wake interval, even though genpd has already made its software parent vote. Replace the wider active-state timeout with a separate bounded poll for bit 11 to clear on the T6000 PMGR GFX register only. Keep the normal 100 us actual-state budget after that condition clears; an active target or a cleared parent condition alone is not a successful power-on. Keep all other domains' budgets, including the existing strict-state policy. Use delay-based atomic polling for the parent so its bound does not require running timekeeping in the noirq/syscore window. The 10 ms parent ceiling is provisional pending hardware measurements. A parent that never becomes available or a missing actual-state ACK still logs an error and returns failure. Retain the system-sleep on request because genpd_sync_power_on() ignores errors in this path. Exercise delayed and missing parent acknowledgments, an actual state that stays clock-gated after parent availability, the unchanged budget for other domains and read failures in the emulated-register KUnit suite. Add a reproducible arm64 KUnit configuration. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
At 3840x2160 the Neo encoded ProRes at about 60% and JPEG at about 85% of macOS on the same machine, because nothing asked the PMP to raise the SoC rail while the engines worked. macOS holds a VMAX request for each engine while it encodes. Describe the two PMP report entries, ProRes (soc-device record 14, SOC-DEV-DVFS entry 0x197) and the JPEG pair (record 19, entry 0x19c), both at level 2, and give them to the engines as their "perf" power domain next to the physical one. Both drivers attach the domain list with runtime PM links, so the request is held exactly while an engine is runtime-active, as AVD and AVE already do. The DARTs keep only their physical domains. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
pmdomain: apple: wait separately for the T6000 GFX parent
…re-busy wifi: brcmfmac: distinguish firmware busy when starting escan
media: apple: ProRes and JPEG performance requests on the Neo
T6040 describes its PMGR banks with apple,t6041-pmgr first and apple,t8103-pmgr as a fallback. The transparent-bus probe rejects a fallback-only match to avoid claiming devices with a dedicated driver. Match T6041 explicitly so its register banks bind as transparent buses. This allows the proxy fw_devlink consumers of their child power domains to complete and releases the genpd sync_state hold through the normal driver core path. Exercise the production probe and match table on the host, including a removed-match negative control and the guard against claiming unknown specific compatibles. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
bus: simple-pm-bus: bind T6041 PMGR register banks
With the firmware retained, every system sleep has been refused on H17. The firmware-assisted sleep (EXCLAVE_MODE_STOP 0x31, then SUSPEND 0x24) does not complete on the 25G83 firmware: 0x31 completes, but 0x24 is never taken (the firmware blocks on its DM-bus manager). So H17 cycles the engine instead, and does it invisibly to applications. System sleep on H17 (platform flag sleep_warm off): - PM_SUSPEND_PREPARE closes the session gate, waits for the request in flight, refuses the sleep with nothing written if a command is still pending, and powers the engine off: sub-block, PWGATE, CPU, then ANE_SYS through genpd, which turns the domain off in the noirq phase. - PM_POST_SUSPEND powers it up with the boot-time checks. It accepts the engine registers that sit in an always-on block (DAPF, wrapper status), rewrites RVBAR only if a power-off cleared it, re-attaches the domain for SID0, rewrites DAPF, copies TEXT and DATA back from the untouched no-map preload and checks their digests, clears heap, pool and IPC, and runs the boot handshake and startup again. The shared allocations are carried and re-served by SHAREDMALLOC. - The session keeps every open program and replays it behind its existing handle: regions rewritten from the HWX snapshot as at its first LOAD (every mapping keeps its DVA), LOAD and CREATE sent again, and the firmware's new program and process IDs remapped. The first EXECUTE after is queued. A program closed while asleep is only released. A failed replay is logged as PROGRAM REPLAY FAILED with a warning and quarantines the session. A program whose firmware was lost (no replay) gets -ENODEV, and a LOAD on its file replaces it. - LOAD and EXECUTE during the cycle wait at the gate, interruptibly; with O_NONBLOCK they get -EAGAIN. A close after a quarantine is no longer logged as a teardown error. - Each wake logs genpd's ANE_SYS transitions (a power notifier on the bound device, with the PMGR state read back) and the resume latency: firmware ready, first program ready, node reopened, programs replayed. - Any failure before the power-off keeps everything and refuses the sleep; a failure after it quarantines. A quarantined engine no longer blocks later sleeps. Hibernation and restore stay refused. The warm path is kept behind the flag, off: 0x31 on the command ring at table position 2 (DEBUG, whose completion leaves the result word as the size), once per firmware boot, then 0x24, WFI and a warm boot with SCRATCH7 = 1, falling back to the cold cycle. The boot log lists the firmware's channel table, and a failed transport names the line that raised the error. H16 is unchanged: it still refuses system sleep. KUnit: replayed handles run on new firmware IDs with the identical LOAD image, regions and EXECUTE buffer table; O_NONBLOCK during the cycle; a refused replay quarantines; a program closed while asleep is not replayed; a lost program and a close deferred across a restart; shared allocations carried into a new transport; the control ring and its completion form; the restartable engine states and RVBAR handling. Tested on the Neo (J700, fleet14l, Stage 2 0f7c0d8a), C8b: - MobileNet held across 1 and across 10 s2idle cycles: the same handle gave identical output after every wake, and a fresh LOAD after them gave identical output too. - Three programs held in three processes across one sleep: all three replayed, each with identical output. - ANE_SYS really off every cycle (genpd off 1, on 1, PMGR 0x2300 at off). - Resume latency over 10 wakes (min/median/max): firmware ready 16/18/23 ms, first program 18/20/24 ms, node reopened 18/20/24 ms. - journalctl -b -p3 empty, display and USB fine, suspend_stats 14/0. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
accel/ane: H17 system sleep with the engine running, transparent to applications
With the firmware retained, every system sleep has been refused on H16 (J616s, M4 Pro). The firmware-assisted sleep does not work on the 25G83 firmware: SUSPEND (0x24) is never taken, bare, after SET_SNE_PMU_BASE2 (0x29) at startup, or after EXCLAVE_MODE_STOP (0x31). So H16 cycles the engine cold, as H17 does since #850, and does it invisibly to applications. System sleep on H16 (platform flag sleep_cold on, sleep_warm off): - PM_SUSPEND_PREPARE closes the session gate, waits for the request in flight, refuses the sleep with nothing written if a command is still pending, and powers the engine off with no firmware command: the three DARTs, then the five ANE domains in reverse. - PM_POST_SUSPEND powers them up again and boots the firmware from the preload. The H16 firmware runs from the preload in place, so its DATA is live: the DATA snapshot taken and verified against the firmware profile digest at bring-up is kept and copied back. RVBAR is written again only while it reads unlatched after a real power-off. The heap tail is cleared; pool, IPC and heap are cleared and reused at their DVAs; the RTKit state is reset; the boot runs again (pinning once); the shared allocations are carried over and re-served. - The session then replays every open program behind its existing handle (the #850 replay), and the first EXECUTE is queued. - Each wake logs genpd's transitions of the five domains (a power notifier on each) and one line with the path, firmware ready, first program ready, node reopened and the programs replayed. A failure quarantines with everything kept, as on H17. The warm path (0x29 at startup, an optional 0x31, then 0x24, WFI and a warm boot with the cold boot as its fallback) is kept behind sleep_warm, off on both chips, with a full SUSPEND trace for the next investigation. A LOAD refused because another program is still loaded is the caller's EBUSY and is no longer logged as an error. KUnit: the boot reuses a surface it mapped before at the same DVA and size, cleared, without a new mapping. Tested on the J616s (fleet14l, boot 1f679646): - MobileNet held across 1 and across 10 s2idle cycles: the same handle gave identical output after every wake, and a fresh LOAD after them gave identical output too. - All five ANE domains went off every sleep (genpd off 1 or 2, on 1 or 2, about 10.1 to 10.8 s off). - Resume latency over 10 wakes (min/median/max): firmware ready 9/13.5/17 ms, first program 11/14/18 ms, node reopened 11/14/18 ms. - suspend_stats 11/0. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The first interrupt is the firmware mailbox: the coprocessor raises it when it posts to a host ring and it stays high until the host clears the mailbox status. The other four belong to the codec and are handled by the firmware. On the J700 the mailbox line fires about twice per encoded frame (the Process ack and its answer), while two of the others stay asserted all the time, so the driver must request only the first. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The firmware starts its next queued frame only after the host has taken the answer to the previous one. The driver did not know which interrupt signals the rings, so it polled them, sleeping 0.5 to 1 ms between polls once a frame had been out for a while, and noticed each answer 0.32 ms (median) and 0.67 ms (mean) after the mailbox line rose. That delay was added to every frame: on the J700, 1080p H.264 ran at 165 fps against macOS's 180 on the same input, with byte-identical output, and the gap stayed near 0.5 ms per frame at every size. Request the first DT interrupt, the mailbox. Its handler masks the line (it stays high until the mailbox status is cleared, which only the ring poll does, under hw_lock), wakes the ring wait in ave_ipc_pump() and queues work that collects answers nobody waits for and schedules the sessions they concern. The ring poll clears the status, unmasks the line and only then reads the rings, so an event that arrives in between raises the line again. ave_ipc_pump() now sleeps on that wake-up instead of a timer, and the per-session 2 ms poller becomes a 25 ms watch for stuck or starved sessions, which the interrupt work kicks at once when frames come back between jobs. On the J700 (aurora-wip a7a8a25, fleet14m before, same synthetic input and 4 Mb/s VBR as the macOS VideoToolbox bench, mean of two runs, fps): before after macOS 26.6.2 H.264 High 1080p 165.2 179.2 180.3 HEVC Main 1080p 152.0 168.2 171.3 HEVC Main 10 1080p 150.7 167.6 170.8 H.264 High 2160p 47.2 48.2 48.4 HEVC Main 2160p 45.2 45.8 46.2 Two concurrent 1080p sessions go from 162 to 173 fps together. A full speed 1080p encode now costs 9.3k context switches instead of 42.6k. All coded streams are bit-exact with the polling driver's. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
media: apple: ave: wake on the mailbox interrupt (Neo encode at 98-99% of macOS)
accel/ane: H16 system sleep with the engine running, transparent to applications
Cache regulatory requests under RTNL while the wiphy is suspended and replay the latest valid country from wiphy resume, after transport resume. Keep failed updates pending and preserve the initial band setup until it succeeds. Stop and drain network TX before the PCIe D3 handshake, fence message-buffer TX and flowring workers while retaining their pending work, and restart them only after interrupts and HOSTREADY are restored. Track bus flow control independently so resume cannot clear disconnected or firmware flow-control stops. Restore the console timer and TX on a failed D3 handshake. Add production-code host controls for regulatory replay, TX stop reasons, deferred workers, retained/cold resume and suspend rollback, with five assertion-producing mutations. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Keep failed country updates pending with their existing firmware diagnostics, without returning the regulatory error from the wiphy PM callback. A country not present in the firmware mapping must not cause cfg80211 to shut down all interfaces on wake. Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…latory wifi: brcmfmac: quiesce TX and defer country updates across suspend
…tion/aurora Bring integration/aurora up to aurora-wip 7f12698, the source of 7.3.0-aurora-fleet14n, promoted on all four machines on 2026-11-02. The range also covers the fleet14m source a7a8a25. It adds #780, #781, #848, #849, #850, #853, #851 and #854. 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.
Batch 5 of 6 bringing integration/aurora up to aurora-wip. It's a merge commit, with no rebase and no rewrite.
Range
aurora-wip up to 7f12698 (fleet14n). The range also covers the fleet14m source (a7a8a25).
PRs: #780 brcmfmac escan busy, #781 T6000 GFX parent wait, #848 ProRes/JPEG perf votes, #849 T6041 PMGR bind, #850 H17 ANE system sleep, #853 AVE mailbox IRQ, #851 H16 ANE sleep, #854 brcmfmac suspend quiesce.
No conflicts. The merged tree is the aurora-wip boundary tree plus the #858 and #860 patch content that integration/aurora already had (as #855 and #856). Only drivers/usb/typec and the aurora-sep files differ from the booted fleet source.
Hardware evidence
Source: aurora-ctl/reports/fleet14-20261101/RESULTS.md
Gates on this merge tree (buildbox, fleet recipe: canonical Fedora asahi base + asahi.config)
🤖 Generated with Claude Code