linux/drivers/staging/media
Steve Longerbeam a19c226773 media: imx: prpencvf: Stop upstream before disabling IDMA channel
Upstream must be stopped immediately after receiving the last EOF and
before disabling the IDMA channel. This can be accomplished by moving
upstream stream off to just after receiving the last EOF completion in
prp_stop(). For symmetry also move upstream stream on to end of
prp_start().

This fixes a complete system hard lockup on the SabreAuto when streaming
from the ADV7180, by repeatedly sending a stream off immediately followed
by stream on:

while true; do v4l2-ctl  -d1 --stream-mmap --stream-count=3; done

Eventually this either causes the system lockup or EOF timeouts at all
subsequent stream on, until a system reset.

The lockup occurs when disabling the IDMA channel at stream off. Stopping
the video data stream entering the IDMA channel before disabling the
channel itself appears to be a reliable fix for the hard lockup.

Fixes: f0d9c8924e ("[media] media: imx: Add IC subdev drivers")

Reported-by: Gaël PORTAY <gael.portay@collabora.com>
Tested-by: Gaël PORTAY <gael.portay@collabora.com>
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Cc: stable@vger.kernel.org	# for 4.13 and up
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-01-31 09:14:50 -02:00
..
bcm2048 Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
davinci_vpfe Merge 4.20-rc5 into staging-next 2018-12-03 07:55:28 +01:00
imx media: imx: prpencvf: Stop upstream before disabling IDMA channel 2019-01-31 09:14:50 -02:00
imx074 media: v4l: mediabus: Recognise CSI-2 D-PHY and C-PHY 2018-10-04 16:06:15 -04:00
ipu3 ipu3: add missing #include 2019-01-07 13:08:30 -05:00
mt9t031 media: v4l: Remove support for crop default target in subdev drivers 2018-10-03 11:58:24 -04:00
omap4iss media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
rockchip/vpu media: rockchip vpu: remove some unused vars 2018-12-07 08:43:59 -05:00
sunxi media: cedrus: Allow using the current dst buffer as reference 2019-01-21 15:43:42 -02:00
tegra-vde Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
zoran media: zoran: fix spelling mistake "queing" -> "queuing" 2018-10-04 14:33:36 -04:00
Kconfig media: staging/intel-ipu3: Add imgu top level pci device driver 2018-12-14 05:48:08 -05:00
Makefile media: staging/intel-ipu3: Add imgu top level pci device driver 2018-12-14 05:48:08 -05:00