Happens on the core 20 image when playing videos with v4l2 + gstreamer. There is this bug with a patch merged to the raspi linux tree - https://github.com/raspberrypi/linux/issues/3325
Is it possible to include it?
kernel: bcm2835-codec bcm2835-codec: bcm2835_codec_stop_streaming: Timeout waiting for buffers to be returned - 69 outstanding
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: Modules linked in: joydev input_leds btsdio bluetooth ecdh_generic ecc brcmfmac brcmutil cfg80211 vc4 v3d gpu_sched bcm2835_codec(CE) drm_kms_helper v4l2_mem2mem bcm2835_isp(CE) crc32_arm_ce videobuf2_dma_co>
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: CPU: 1 PID: 4265 Comm: screenly-client Tainted: G WC E 5.4.0-1027-raspi #30-Ubuntu
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: Hardware name: BCM2711
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: Backtrace:
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<c023a458>] (dump_backtrace) from [<c023a7d4>] (show_stack+0x20/0x24)
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r7:ffffffff r6:00000000 r5:600f0013 r4:c1490414
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<c023a7b4>] (show_stack) from [<c0c57308>] (dump_stack+0xd4/0x118)
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<c0c57234>] (dump_stack) from [<c0255a38>] (__warn+0xe0/0x108)
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r10:bf2849fc r9:00000001 r8:00000009 r7:0000075a r6:bf2c0660 r5:00000009
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r4:bf2c5a90 r3:00000000
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<c0255958>] (__warn) from [<c0255e30>] (warn_slowpath_fmt+0x74/0xd0)
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r7:bf2c0660 r6:0000075a r5:bf2c5a90 r4:00000000
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<c0255dc0>] (warn_slowpath_fmt) from [<bf2c0660>] (__vb2_queue_cancel+0x244/0x2c0 [videobuf2_common])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r8:dd0233f0 r7:dd01640c r6:00000009 r5:dd01640c r4:dd01640c
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf2c041c>] (__vb2_queue_cancel [videobuf2_common]) from [<bf2c1c10>] (vb2_core_streamoff+0x28/0xb4 [videobuf2_common])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r10:bf2849fc r9:00000001 r8:dd0233f0 r7:bf26add8 r6:00000009 r5:dd01640c
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r4:dd01640c r3:00000009
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf2c1be8>] (vb2_core_streamoff [videobuf2_common]) from [<bf253ff4>] (vb2_streamoff+0x24/0x60 [videobuf2_v4l2])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r5:dd01640c r4:dd016400
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf253fd0>] (vb2_streamoff [videobuf2_v4l2]) from [<bf37bd14>] (v4l2_m2m_streamoff+0x40/0x10c [v4l2_mem2mem])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf37bcd4>] (v4l2_m2m_streamoff [v4l2_mem2mem]) from [<bf37be00>] (v4l2_m2m_ioctl_streamoff+0x20/0x24 [v4l2_mem2mem])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r10:bf2849fc r9:00000001 r8:dd0233f0 r7:bf26add8 r6:00000000 r5:40045613
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r4:bf37bde0
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf37bde0>] (v4l2_m2m_ioctl_streamoff [v4l2_mem2mem]) from [<bf26ae00>] (v4l_streamoff+0x28/0x2c [videodev])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf26add8>] (v4l_streamoff [videodev]) from [<bf26fc04>] (__video_do_ioctl+0x244/0x474 [videodev])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r5:40045613 r4:dd0230a0
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf26f9c0>] (__video_do_ioctl [videodev]) from [<bf270278>] (video_usercopy+0x2c0/0x6ec [videodev])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r10:bf26f9c0 r9:d1fdde0c r8:00000004 r7:00000000 r6:00000000 r5:00000000
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r4:40045613
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf26ffb8>] (video_usercopy [videodev]) from [<bf2706c4>] (video_ioctl2+0x20/0x24 [videodev])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r10:00000036 r9:00000020 r8:dd48e780 r7:a7511100 r6:40045613 r5:de41a3d8
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r4:bf2706a4
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf2706a4>] (video_ioctl2 [videodev]) from [<bf2691f4>] (v4l2_ioctl+0x4c/0x60 [videodev])
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<bf2691a8>] (v4l2_ioctl [videodev]) from [<c04926cc>] (do_vfs_ioctl+0x3c4/0x7fc)
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r5:de41a3d8 r4:a7511100
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<c0492308>] (do_vfs_ioctl) from [<c0492b70>] (ksys_ioctl+0x6c/0x90)
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r10:00000036 r9:00000020 r8:dd48e780 r7:a7511100 r6:40045613 r5:00000000
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r4:dd48e781
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<c0492b04>] (ksys_ioctl) from [<c0492bac>] (sys_ioctl+0x18/0x1c)
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: r9:d1fdc000 r8:c02012e4 r7:00000036 r6:b10ce054 r5:00eed900 r4:a1ca7000
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: [<c0492b94>] (sys_ioctl) from [<c02012c4>] (__sys_trace_return+0x0/0x1c)
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: Exception stack(0xd1fddfa8 to 0xd1fddff0)
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: dfa0: a1ca7000 00eed900 00000020 40045613 a7511100 b06306f1
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: dfc0: a1ca7000 00eed900 b10ce054 00000036 b0ce3000 befea670 011bbb40 fa232cf3
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: dfe0: b0fd2c5c befe9d14 a1c70151 b06306f8
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: ---[ end trace 03fcc7f361815fec ]---
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: videobuf2_common: driver bug: stop_streaming operation is leaving buf 922f9311 in active state
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: videobuf2_common: driver bug: stop_streaming operation is leaving buf 56ebc385 in active state
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: videobuf2_common: driver bug: stop_streaming operation is leaving buf f7f1f313 in active state
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: videobuf2_common: driver bug: stop_streaming operation is leaving buf f0f5833e in active state
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: videobuf2_common: driver bug: stop_streaming operation is leaving buf 574e815e in active state
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: videobuf2_common: driver bug: stop_streaming operation is leaving buf ba5d7734 in active state
Feb 11 15:21:44 srly-sz1t3eclznhelq4 kernel: videobuf2_common: driver bug: stop_streaming operation is leaving buf 6eb8fdf6 in active state
And there is also this fix in the rpi tree that is related - https:/ /github. com/raspberrypi /linux/ pull/3790/ files