Repository navigation
media/dts: apple: enable the T6000 AVE DMA fault reporter with runtime PM - #2811
Draft
RyanTheTide wants to merge 2 commits into
Draft
RyanTheTide wants to merge 2 commits into
RyanTheTide wants to merge 2 commits into
Conversation
The AVE auxiliary DMA fault reporter lives in the venc_sys power domain, which the encoder and its DARTs gate whenever the codec is idle. The driver requested its shared fault interrupt but never touched runtime PM, so once the device bound genpd counted it as active and kept ps_venc_sys powered for good, defeating the encoder's idle power saving. Enable runtime PM and leave the reporter runtime-suspended. A DMA fault can only be raised, and the interrupt it shares with the codec DARTs only asserted, while the encoder is running and the domain is therefore powered, so the fault handler always reads registers in a powered domain. The domain is live at bind (the codec DARTs are already up), so start active and drop the vote once the handler is installed, letting genpd gate venc_sys with the rest of the encoder. Signed-off-by: Ryan Murray <[email protected]>
Now that apple-ave-dma participates in runtime PM and no longer pins ps_venc_sys, enable the auxiliary DMA fault reporter on T6000 alongside the video encoder and the DARTs it shares the venc_sys domain and fault interrupt with. T6001 and T6002 keep theirs disabled until the binding is proven on that hardware. Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Review at 65a5219 (non-author, draft). Changes requested: the interrupt handler can read the block's registers while its power domain is off.
Change needed:
Small points, not blocking:
Assisted-by: LLM (Claude:Opus 5.5) |
This branch has not been deployed
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.
Replaces #1861 (same changes, commit trailers fixed, on the current integration/aurora).
The AVE auxiliary DMA fault reporter (
dma-controller@40d020000,apple,t6000-ave-dma) alreadyhas a driver in tree, but its DT node ships disabled on T6000, so the reporter never binds and AVE
DMA faults go unreported. Enabling the node as it stands would pin
ps_venc_syson: the driver onlyrequested its shared fault interrupt and never touched runtime PM, so once the device bound genpd
counted it as active and kept the encoder's power domain up for good, losing the AVE idle power
saving.
Two commits:
media: apple/ave: enable runtime PM in the reporter and leave it runtime-suspended, the sameway the codec DARTs it shares
venc_sys(and the fault interrupt) with already behave, so genpdcan gate the domain again. A DMA fault can only be raised, and the shared interrupt only asserted,
while the encoder is running and the domain is powered, so the fault handler always reads
registers in a powered domain. The domain is live at bind, so the probe starts active and drops
the vote once the handler is installed.
arm64: dts: apple: t6000: enabledma-controller@40d020000next to the video encoder and theDARTs it sits alongside in
venc_sys. T6001 and T6002 keep theirs disabled until the binding isproven on that hardware.
Tests
dt-checks(incl.apple,ave-dma.yaml) and host-tests pass.7.3.0-aurora-fleet72dg8= this branch on integration/aurora,one-shot boots: clean to multi-user + Wi-Fi, s2idle 3/3, 0 AVC / SError / oops, 0
DMA fault:lines; H.264 encode unaffected (1080p 129 fps, High-B 146 fps, 4K 38.8 fps, 0 decode errors).
The runtime-PM change is inert while the node is disabled (the driver never probes), so this
confirms no regression from carrying it.
venc_sysisoffat idle with itschildren (
venc_dma,venc_pipe4/5,venc_me0/1) and the codec devices all suspended. The fixmirrors the apple-dart runtime-PM pattern those DARTs already use in the same domain.
Node-bind row: pending a Stage 2 DTB refresh
Proving the reporter actually binds the enabled node needs
ave0_dmaenabled in the DTB the Macloads at boot, i.e. a Stage 2 DTB refresh — the same step
#1687and#1760need on their Macs togo live. The two lighter mechanisms don't apply here: a runtime DT overlay can't re-trigger
platform-device creation on a
statusflip of a base node, and the M1 Pro aura-try reproduce guardcan't match because this Mac's committed
boot.binis stale against its currentupdate-m1n1config (built before the m1n1/u-boot bumps, not refreshed at the fleet72 promotion). Staying draft
until the row runs on a refreshed M1 Pro Stage 2 DTB.