linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2]  media: imx: Disable CSI immediately after last EOF
@ 2019-01-17 20:13 Steve Longerbeam
  2019-01-17 20:13 ` [PATCH 1/2] media: imx: csi: " Steve Longerbeam
  2019-01-17 20:13 ` [PATCH 2/2] media: imx: prpencvf: " Steve Longerbeam
  0 siblings, 2 replies; 5+ messages in thread
From: Steve Longerbeam @ 2019-01-17 20:13 UTC (permalink / raw)
  To: linux-media; +Cc: Steve Longerbeam

Disable the CSI immediately after receiving the last EOF before stream
off (and thus before disabling the IDMA channel).

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  -d4 --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. Disabling
the CSI before disabling the IDMA channel appears to be a reliable fix for
the hard lockup.


Steve Longerbeam (2):
  media: imx: csi: Disable CSI immediately after last EOF
  media: imx: prpencvf: Disable CSI immediately after last EOF

 drivers/staging/media/imx/imx-ic-prpencvf.c | 26 ++++++++++++++-------
 drivers/staging/media/imx/imx-media-csi.c   |  7 +++---
 2 files changed, 21 insertions(+), 12 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-17 20:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-17 20:13 [PATCH 0/2] media: imx: Disable CSI immediately after last EOF Steve Longerbeam
2019-01-17 20:13 ` [PATCH 1/2] media: imx: csi: " Steve Longerbeam
2019-01-17 20:20   ` Fabio Estevam
2019-01-17 20:22     ` Steve Longerbeam
2019-01-17 20:13 ` [PATCH 2/2] media: imx: prpencvf: " Steve Longerbeam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).