Skip to content

Dev/5.10/fix streamoff 1 - #4599

Merged
pelwell merged 2 commits into
raspberrypi:rpi-5.10.yfrom
jc-kynesim:dev/5.10/fix_streamoff_1
Sep 23, 2021
Merged

pelwell merged 2 commits into
raspberrypi:rpi-5.10.yfrom
jc-kynesim:dev/5.10/fix_streamoff_1

Conversation

@jc-kynesim

Copy link
Copy Markdown
Contributor

Fixes a CMA leak, also worked around by reordering streamoffs in FFmpeg

Remove unused ctx state tracking variable and associated defines.
Their presence implies they might be used, but they aren't.

Signed-off-by: John Cox <jc@kynesim.co.uk>
Before uniniting the decode context sync with the IRQ queues to ensure
that decode no longer has any buffers in use.  This fixes a problem that
manifested as ffmpeg leaking CMA buffers when it did a stream off on
OUTPUT before CAPTURE, though in reality it was probably much more
dangerous than that.

Signed-off-by: John Cox <jc@kynesim.co.uk>
@pelwell

pelwell commented Sep 22, 2021

Copy link
Copy Markdown
Contributor

Looks ok to me. Can someone kick the tyres?

@popcornmix

popcornmix commented Sep 23, 2021 •

Copy link
Copy Markdown
Collaborator

Tested with kodi. Was able to play/stop hevc a number of times without issue.

@pelwell
pelwell merged commit 6ab9539 into raspberrypi:rpi-5.10.y Sep 23, 2021
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Sep 23, 2021
See: raspberrypi/linux#4593

kernel: rpivid: Ensure IRQs have completed before uniniting context
See: raspberrypi/linux#4599

kernel: net: phy: lan87xx: Allow more time for link detect
See: raspberrypi/linux#4598
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Sep 23, 2021
See: raspberrypi/linux#4593

kernel: rpivid: Ensure IRQs have completed before uniniting context
See: raspberrypi/linux#4599

kernel: net: phy: lan87xx: Allow more time for link detect
See: raspberrypi/linux#4598
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.

3 participants