Skip to content

media: apple: vxd: Drop redundant pm_runtime_mark_last_busy() calls - #178

Merged
henrikklee merged 1 commit into
OrchardLinux:mainfrom
grierj:apple-vxd-drop-redundant-mark-busy
Dec 5, 2026
Merged

henrikklee merged 1 commit into
OrchardLinux:mainfrom
grierj:apple-vxd-drop-redundant-mark-busy

Conversation

@grierj

@grierj grierj commented Dec 4, 2026

Copy link
Copy Markdown

Follow-up cleanup from #170:

  • Remove the four explicit pm_runtime_mark_last_busy(vxd->dev) calls right before pm_runtime_put_autosuspend(vxd->dev), since pm_runtime_put_autosuspend() already calls pm_runtime_mark_last_busy() in this kernel.

Verified live on J207 (iPad Pro 10.5-inch, T8011) with a real-time VA-API (libva-v4l2request → /dev/video0 [apple-vxd]) H.264 decode paused mid-stream for 2.5 s so vdec0 autosuspends to off-0, then resumed to completion:

  • Before decode: runtime_status=suspended, vdec0 = off-0
  • During decode: runtime_status=active, vdec0 = on
  • During 2.5 s mid-stream pause (pts 1.700): runtime_status=suspended, vdec0 = off-0
  • After resume: runtime_status=active, vdec0 = on, decoded output MD5 matches software reference bit-for-bit (0976f3d5b4bf2fe0c0706ed7db8b9c97), zero dmesg errors
  • Idle after decode: runtime_status=suspended, vdec0 = off-0

Assisted-by: LLM

pm_runtime_put_autosuspend() already calls pm_runtime_mark_last_busy() in
this kernel, so the four explicit calls right before it are redundant.

Assisted-by: LLM
Signed-off-by: Grier Johnson <grier@scooterfarm.com>
@henrikklee
henrikklee merged commit 86c4706 into OrchardLinux:main Dec 5, 2026
4 checks passed
@henrikklee

Copy link
Copy Markdown

Merged, thank you @grierj! A tidy follow-up to the #170 review: pm_runtime_put_autosuspend() already marks the device busy, so the four removed calls were redundant. Thanks also for checking on the J207 that the decoded output stays bit-identical.

Nothing changed on the branch, nothing left out, no follow-ups.

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.

2 participants