linux_dsm_epyc7002/drivers/media/platform
Javier Martinez Canillas 76ca0824af [media] exynos-gsc: cleanup m2m src and dst vb2 queues on STREAMOFF
Media drivers that use the videobuf2 framework have to give back to vb2
all the buffers that received from vb2 using its .buf_queue callback.

But the exynos-gsc driver isn't doing a proper cleanup so vb2 complains
that the number of buffers enqueued and received are not balanced:

WARNING: CPU: 2 PID: 660 at drivers/media/v4l2-core/videobuf2-core.c:1654 __vb2_queue_cancel+0xec/0x150 [videobuf2_core]
Modules linked in: mwifiex_sdio mwifiex uvcvideo exynos_gsc videobuf2_vmalloc s5p_mfc s5p_jpeg
CPU: 2 PID: 660 Comm: lt-gst-validate Not tainted 4.8.0
Hardware name: SAMSUNG EXYNOS (Flattened Device Tree)
[<c010e24c>] (unwind_backtrace) from [<c010af30>] (show_stack+0x10/0x14)
[<c010af30>] (show_stack) from [<c03291a4>] (dump_stack+0x88/0x9c)
[<c03291a4>] (dump_stack) from [<c011a858>] (__warn+0xe8/0x100)
[<c011a858>] (__warn) from [<c011a920>] (warn_slowpath_null+0x20/0x28)
[<c011a920>] (warn_slowpath_null) from [<bf0b6ed0>] (__vb2_queue_cancel+0xec/0x150 [videobuf2_core])
[<bf0b6ed0>] (__vb2_queue_cancel [videobuf2_core]) from [<bf0b7464>] (vb2_core_streamoff+0x34/0x9c [videobuf2_core])
[<bf0b7464>] (vb2_core_streamoff [videobuf2_core]) from [<bf11b9e8>] (v4l2_m2m_streamoff+0x2c/0xe4 [v4l2_mem2mem])
[<bf11b9e8>] (v4l2_m2m_streamoff [v4l2_mem2mem]) from [<bf01b84c>] (__video_do_ioctl+0x298/0x30c [videodev])
[<bf01b84c>] (__video_do_ioctl [videodev]) from [<bf01b234>] (video_usercopy+0x174/0x4e8 [videodev])
[<bf01b234>] (video_usercopy [videodev]) from [<bf0165c8>] (v4l2_ioctl+0xc4/0xd8 [videodev])
[<bf0165c8>] (v4l2_ioctl [videodev]) from [<c01f291c>] (do_vfs_ioctl+0x9c/0x8f4)
[<c01f291c>] (do_vfs_ioctl) from [<c01f31a8>] (SyS_ioctl+0x34/0x5c)
[<c01f31a8>] (SyS_ioctl) from [<c01078c0>] (ret_fast_syscall+0x0/0x3c)

Fix this by passing back to vb2 all the received buffers that were not
processed.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-11-16 16:29:17 -02:00
..
am437x [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
atmel [media] atmel-isc: start dma in some scenario 2016-10-24 18:22:46 -02:00
blackfin [media] blackfin-capture: Delete an error message for a failed memory allocation 2016-11-16 12:18:52 -02:00
coda [media] coda: fix the error path in coda_probe() 2016-10-24 18:34:45 -02:00
davinci [media] DaVinci-VPFE-Capture: Replace a memcpy() call by an assignment in vpfe_enum_input() 2016-11-16 15:25:06 -02:00
exynos4-is [media] exynos4-is: fimc: Roundup imagesize to row size for tiled formats 2016-11-16 16:24:53 -02:00
exynos-gsc [media] exynos-gsc: cleanup m2m src and dst vb2 queues on STREAMOFF 2016-11-16 16:29:17 -02:00
marvell-ccic [media] marvell-ccic: don't break long lines 2016-10-21 09:30:46 -02:00
mtk-mdp [media] media: fix platform_no_drv_owner.cocci warnings 2016-11-16 13:27:19 -02:00
mtk-vcodec [media] mtk-vcodec: add index check in decoder vidioc_qbuf 2016-11-16 15:27:43 -02:00
mtk-vpu [media] VPU: mediatek: Fix return value in case of error 2016-10-24 18:11:57 -02:00
omap [media] omap: don't break long lines 2016-10-21 09:31:11 -02:00
omap3isp [media] v4l: omap3isp: Use dma_request_chan_by_mask() to request the DMA channel 2016-11-16 16:14:20 -02:00
rcar-vin [media] rcar-vin: add R-Car gen2 fallback compatibility string 2016-09-22 12:52:55 -03:00
s3c-camif [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
s5p-g2d [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
s5p-jpeg [media] squash lines for simple wrapper functions 2016-11-16 13:28:40 -02:00
s5p-mfc [media] s5p-mfc: Collapse two error message into one 2016-11-16 16:25:37 -02:00
soc_camera [media] soc-camera/rcar-vin: remove obsolete driver 2016-09-19 16:29:54 -03:00
sti [media] st-hva: fix a copy-and-paste variable name error 2016-11-16 13:29:04 -02:00
ti-vpe [media] squash lines for simple wrapper functions 2016-11-16 13:28:40 -02:00
vivid [media] cec: move the CEC framework out of staging and to media 2016-11-16 15:40:20 -02:00
vsp1 [media] v4l: vsp1: Fix module autoload for OF registration 2016-11-16 13:16:23 -02:00
xilinx [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
arv.c [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
fsl-viu.c [media] fsl-viu: drop format names 2015-08-11 06:59:09 -03:00
Kconfig [media] v4l: Add Renesas R-Car FDP1 Driver 2016-11-16 16:21:54 -02:00
m2m-deinterlace.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
Makefile [media] v4l: Add Renesas R-Car FDP1 Driver 2016-11-16 16:21:54 -02:00
mx2_emmaprp.c [media] platform: don't break long lines 2016-10-21 10:06:32 -02:00
pxa_camera.c [media] media: platform: pxa_camera: add missing sensor power on 2016-10-24 18:08:12 -02:00
rcar_fdp1.c [media] v4l: Add Renesas R-Car FDP1 Driver 2016-11-16 16:21:54 -02:00
rcar_jpu.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
rcar-fcp.c [media] v4l: rcar-fcp: Fix module autoload for OF registration 2016-11-16 13:17:07 -02:00
sh_veu.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
sh_vou.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
via-camera.c [media] platform: don't break long lines 2016-10-21 10:06:32 -02:00
via-camera.h
vim2m.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00