linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans Verkuil <hansverk@cisco.com>
To: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
	Mauro Carvalho Chehab <mchehab@infradead.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Hans Verkuil <hans.verkuil@cisco.com>,
	Pawel Osciak <pawel@osciak.com>,
	Nicolas Dufresne <nicolas.dufresne@collabora.com>
Subject: Re: [PATCH v2] [media] BZ#84401: Revert "[media] v4l: vb2: Don't return POLLERR during transient buffer underruns"
Date: Thu, 18 Sep 2014 14:21:34 +0200	[thread overview]
Message-ID: <541ACE4E.1040308@cisco.com> (raw)
In-Reply-To: <20140918091516.42dc6bb3@recife.lan>



On 09/18/14 14:15, Mauro Carvalho Chehab wrote:
> Em Thu, 18 Sep 2014 14:07:21 +0200
> Hans Verkuil <hansverk@cisco.com> escreveu:
> 
>> My patch is the *only* fix for that since that's the one that addresses
>> the real issue.
>>
>> One option is to merge my fix for 3.18 with a CC to stable for 3.16.
>>
>> That way it will be in the tree for longer.
>>
>> Again, the revert that you did won't solve the regression at all. Please
>> revert the revert.
> 
> Well, some patch that went between 3.15 and 3.16 broke VBI. If it was
> not this patch, what's the patch that broke it?

The conversion of saa7134 to vb2 in 3.16 broke the VBI support in saa7134.

It turns out that vb2 NEVER did this right.

Remember that saa7134 was only the second driver with VBI support (after
em28xx) that was converted to vb2, and that this issue only happens with
teletext applications that do not call STREAMON before calling poll().

They rely on the fact that poll returns POLLERR to call STREAMON. Ugly
as hell, and not normal behavior for applications.

So that explains why it was never found before.

Note that em28xx (converted to vb2 quite some time before) fails as well.
So this regression has been there since 3.9 (when em28xx was converted).
I tested my fix with em28xx as well and that will worked fine.

Regards,

	Hans

  reply	other threads:[~2014-09-18 12:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-16  0:10 [PATCH] [media] BZ#84401: Revert "[media] v4l: vb2: Don't return POLLERR during transient buffer underruns" Mauro Carvalho Chehab
2014-09-16  9:09 ` Laurent Pinchart
2014-09-16 10:01   ` Mauro Carvalho Chehab
2014-09-16 10:15     ` Laurent Pinchart
2014-09-16 10:58       ` Mauro Carvalho Chehab
2014-09-16 11:42         ` Laurent Pinchart
2014-09-16 13:41           ` Mauro Carvalho Chehab
2014-09-16 13:56             ` Hans Verkuil
2014-09-18 10:06 ` [PATCH v2] " Mauro Carvalho Chehab
2014-09-18 10:10   ` Hans Verkuil
2014-09-18 10:50     ` Mauro Carvalho Chehab
2014-09-18 12:07       ` Hans Verkuil
2014-09-18 12:15         ` Mauro Carvalho Chehab
2014-09-18 12:21           ` Hans Verkuil [this message]
2014-09-18 12:49             ` Mauro Carvalho Chehab

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=541ACE4E.1040308@cisco.com \
    --to=hansverk@cisco.com \
    --cc=hans.verkuil@cisco.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=mchehab@osg.samsung.com \
    --cc=nicolas.dufresne@collabora.com \
    --cc=pawel@osciak.com \
    /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;
as well as URLs for NNTP newsgroup(s).