Skip to content

staging: rpivid: Fix crash when CMA alloc fails - #4152

Merged
pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
jc-kynesim:dev/5.10/rpivid_fix_no_cma_1
Feb 16, 2021
Merged

pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
jc-kynesim:dev/5.10/rpivid_fix_no_cma_1

Conversation

@jc-kynesim

Copy link
Copy Markdown
Contributor

If realloc to increase coeff size fails then attempt to re-allocate
the original size. If that also fails then flag a fatal error to abort
all further decode.

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

If realloc to increase coeff size fails then attempt to re-allocate
the original size.  If that also fails then flag a fatal error to abort
all further decode.

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

Copy link
Copy Markdown
Contributor

We've been successfully testing this patch the last week in LibreELEC. It fixed the hard system lockup when playing the "Samsung Wonderland Two" demo from 4kmedia.org with 384MB CMA memory - we've now bumped the default CMA in LE to 512MB.

The fix is probably even more important for RPiOS and other distributions running with the 256MB default CMA configuration as they are more likely to hit the limit with HEVC files.

@pelwell
pelwell merged commit 14e997d into raspberrypi:rpi-5.10.y Feb 16, 2021
@pelwell

pelwell commented Feb 16, 2021

Copy link
Copy Markdown
Contributor

Thanks, John & Hias.

popcornmix added a commit to raspberrypi/firmware that referenced this pull request Feb 22, 2021
kernel: PiFi DAC overlays
See: raspberrypi/linux#4154

kernel: staging: rpivid: Fix crash when CMA alloc fails
See: raspberrypi/linux#4152

kernel: Imx477 long exposure control
See: raspberrypi/linux#4150

kernel: configs: Change CONFIG_BLK_DEV_NVME=y for 2711
See: raspberrypi/linux#4164

kernel: Some fixes to make imx290/imx327 exposure and vblank updates work correctly
See: raspberrypi/linux#4153

kernel: KMS VGA666 overlay
See: raspberrypi/linux#4141

kernel: gpio-fsm: Fix shutdown timeout handling

kernel: configs: Add various missing IPV6 modules
See: raspberrypi/linux#4144
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Feb 22, 2021
kernel: PiFi DAC overlays
See: raspberrypi/linux#4154

kernel: staging: rpivid: Fix crash when CMA alloc fails
See: raspberrypi/linux#4152

kernel: Imx477 long exposure control
See: raspberrypi/linux#4150

kernel: configs: Change CONFIG_BLK_DEV_NVME=y for 2711
See: raspberrypi/linux#4164

kernel: Some fixes to make imx290/imx327 exposure and vblank updates work correctly
See: raspberrypi/linux#4153

kernel: KMS VGA666 overlay
See: raspberrypi/linux#4141

kernel: gpio-fsm: Fix shutdown timeout handling

kernel: configs: Add various missing IPV6 modules
See: raspberrypi/linux#4144
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