Linux Media Controller development
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: James Harper <james@ejbdigital.com.au>,
	James Harper <james@maxsum.com>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: buffer delivery stops with cx23885
Date: Sat, 20 Sep 2014 12:08:32 +0200	[thread overview]
Message-ID: <541D5220.4050107@xs4all.nl> (raw)
In-Reply-To: <609d00f585384d999c8e3522fe1352ee@SIXPR04MB304.apcprd04.prod.outlook.com>

On 09/20/2014 11:26 AM, James Harper wrote:
>>
>> On 09/20/2014 05:32 AM, James Harper wrote:
>>>
>>> My cx23885 based DViCO FusionHDTV DVB-T Dual Express2 (I submitted a
>>> patch for this a little while ago) has been working great but over
>>> the last few months it has started playing up. Nothing has really
>>> changed that I can put my finger on. Basically mythtv stops recording
>>> after a few minutes sometimes. Rarely when this happens I see some
>>> i2c errors but mostly not.
>>>
>>> With cx23885 debug options turned on (debug=9 vbi_debug=9
>> v4l_debug=9
>>> video_debug=9 irq_debug=9 ci_dbg=9) it seems like the card just stops
>>> delivering buffers (see dmesg output following). If I stop mythtv,
>>> all the buffers are cancelled (cx23885_stop_dma()) etc, and then
>>> restarting mythtv will get the recording going again, for a short
>>> time (minutes).
>>>
>>> Any suggestions to where I could start looking? Is it possible that
>>> my card itself is broken? (apart from this it's flawless).
>>
>> I see nothing wrong in the log, but you can try to use the current media_tree
>> code. The cx23885's DMA engine has effectively been rewritten there,
>> simplifying
>> the control flow.
>>
> 
> Oops I should have mentioned that. I'm using Debian "Jessie" with
> 3.16 kernel and already using the latest v4l as per link you sent (my
> DViCO FusionHDTV DVB-T Dual Express2 patch is in 3.17 I think, but
> that's not in Debian yet).

Ah, yes, that's rather important information :-)

I'll try to reproduce it.

How often does it happen?

I've setup a test where I just keep streaming to see if I can reproduce
it.

> 
> I think it only broke since the rewrite. Before that it seemed to be
> bulletproof. That was why I asked about the patch just before - I
> can't tell yet if the driver stops supplying data or if mythtv stops
> asking for data. If there was something funny about the poll loop
> then that could cause it. I suppose I can try and go back to an older
> version of the code and see what happens?

Can you test with the media_tree.git master branch, but going back to
commit 73d8102298719863d54264f62521362487f84256?

That has the cx23885 that has not yet been converted to vb2.

Test with that for a while to see if that works without problems. Then
go back to the HEAD of the master branch and try again.

If it breaks, then I may have to revert the cx23885 vb2 changes until I
figure out what's wrong.

Regards,

	Hans

> 
> Would the bug fixed by your "fix VBI/poll regression" patch cause
> intermittent stalls, or would the application that relied on the
> missing behaviour simply not work at all?
> 
> In any case I've just applied the patch and about to reboot.
> 
> Thanks
> 
> James
>

  parent reply	other threads:[~2014-09-20 10:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-20  3:32 buffer delivery stops with cx23885 James Harper
2014-09-20  9:19 ` Hans Verkuil
2014-09-20  9:26   ` James Harper
2014-09-20 10:03     ` Mauro Carvalho Chehab
2014-09-20 10:08     ` Hans Verkuil [this message]
2014-09-20 10:30       ` James Harper
2014-09-20 10:54         ` Hans Verkuil
2014-09-20 11:05           ` James Harper
2014-09-20 11:15             ` Hans Verkuil
2014-09-20 11:36               ` James Harper
2014-09-21  8:15                 ` James Harper
2014-09-22  8:30                   ` James Harper
2014-09-22  8:37                     ` Hans Verkuil
2014-09-22  9:46                       ` James Harper
2014-09-22  9:52                         ` Hans Verkuil
2014-09-22  9:58                           ` James Harper
2014-09-22 10:03                             ` Hans Verkuil
2014-09-22 12:01                               ` James Harper
2014-09-29  9:06                                 ` James Harper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=541D5220.4050107@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=james@ejbdigital.com.au \
    --cc=james@maxsum.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox