mbox series

[0/2] media: imx: Disable CSI immediately after last EOF

Message ID 20190117201347.27347-1-slongerbeam@gmail.com (mailing list archive)
Headers show
Series media: imx: Disable CSI immediately after last EOF | expand

Message

Steve Longerbeam Jan. 17, 2019, 8:13 p.m. UTC
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(-)