linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] media: imx: Disable CSI immediately after last EOF
@ 2019-01-17 20:49 Steve Longerbeam
  2019-01-17 20:49 ` [PATCH v2 1/2] media: imx: csi: " Steve Longerbeam
  2019-01-17 20:49 ` [PATCH v2 2/2] media: imx: prpencvf: " Steve Longerbeam
  0 siblings, 2 replies; 8+ messages in thread
From: Steve Longerbeam @ 2019-01-17 20:49 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.

History:
v2:
- Whitespace fixes
- Add Fixes: and Cc: stable@vger.kernel.org
- No functional changes.

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   |  6 +++--
 2 files changed, 21 insertions(+), 11 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2019-01-19  0:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-17 20:49 [PATCH v2 0/2] media: imx: Disable CSI immediately after last EOF Steve Longerbeam
2019-01-17 20:49 ` [PATCH v2 1/2] media: imx: csi: " Steve Longerbeam
2019-01-18 10:24   ` Philipp Zabel
2019-01-18 19:01     ` Steve Longerbeam
2019-01-19  0:38       ` Steve Longerbeam
2019-01-18 14:34   ` Gael PORTAY
2019-01-17 20:49 ` [PATCH v2 2/2] media: imx: prpencvf: " Steve Longerbeam
2019-01-18 14:36   ` Gael PORTAY

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).