All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Andreas Oberritter <obi@linuxtv.org>
Cc: Andy Walls <awalls@radix.net>,
	hermann pitton <hermann-pitton@arcor.de>,
	Chicken Shack <chicken.shack@gmx.de>,
	linux-media@vger.kernel.org, akpm@linux-foundation.org,
	torvalds@linux-foundation.org
Subject: Re: Need to discuss method for multiple, multiple-PID TS's from same demux (Re: Videotext application crashes the kernel due to DVB-demux patch)
Date: Fri, 05 Feb 2010 11:28:28 -0200	[thread overview]
Message-ID: <4B6C1CFC.6090600@redhat.com> (raw)
In-Reply-To: <4B6C1AF7.2090503@linuxtv.org>

Andreas Oberritter wrote:
> Hello Andy,
> 
> Andy Walls wrote:
>> After investigation, my recommendation for fixing the problem is to
>> revert the patch that is causing the problem.

Well, the patch were already added on an upstream kernel, so just reverting it
will cause regressions.

If it is just aletv-dvb that broke, it seems better to fix it than to cause 
even more troubles by reverting two new ioctls.

>> The reason for this is not that fixing the patch is impossible.

Why? Where exactly the breakage happened?

>> INstead, I'll assert that using the DMX_ADD_PID and DMX_REMOVE_PID in
>> conjunction with output=DMX_OUT_TSDEMUX_TAP is simply converting the
>> demux0 device into multiple dynamically created anonymous dvr0 devices,
>> and that is the wrong thing to do.
> 
> why exactly do you think this is wrong?
> 
>> I understand the need for sending a single PID TS out to an open demux0
>> instance as described in this email:
>>
>> http://www.mail-archive.com/linux-dvb@linuxtv.org/msg29814.html
>>
>> even though it seems like a slight abuse of the demux0 device.
> 
> How so? It's all about reading demultiplexed packets, which is exactly
> what a demux is good for. There is btw. no other way for multiple
> readers to receive TS packets without implementing a second demux
> layer in a userspace daemon, which must then be used by all readers.
> This would needlessly create quite some overhead on high bandwidth
> services.
>> But sending multiple PIDs out in a TS to the open demux0 device instance
>> is just an awkward way to essentially dynamically create a dvrN device
>> associated with filter(s) set on an open demux0 instance.
> 
> Actually it makes dvrN obsolete, but it must of course be kept for
> backwards compatibility.
> 
>> It would be better, in my opinion, to figure out a way to properly
>> create and/or associate a dvrN device node with a collection of demuxN
>> filters.
> 
> Would this involve running mknod for every recording you start?
> 
>> Maybe just allow creation of a logical demux1 device and dvr1 device and
>> the use the DVB API calls as is on the new logical devices.
> 
> A demux device (and dvr respectively) represents a transport stream
> input. Hardware with multiple transport stream inputs (read: embedded
> set top boxes) already has multiple demux and dvr devices.


Andreas arguments makes sense to me.

 
>> I'm not a DVB apps programmer, so I don't know all the userspace needs
>> nor if anything is already using the DMX_ADD_PID and DMX_REMOVE_PID
>> ioctl()s.
> 
> The need for such an interface was already pointed out and discussed
> back in 2006:
> http://www.linuxtv.org/pipermail/linux-dvb/2006-April/009269.html
> 
> As Honza noted, these ioctls are used by enigma2 and, in general, by
> software running on Dream Multimedia set top boxes. I'm sure, other
> projects are going to adopt this interface sooner or later. It is
> still quite new after all.


It seems too late for me to revert it. So, we need to figure out a way
to workaround it or to fix the applications that got broken by this change.

-- 

Cheers,
Mauro

  reply	other threads:[~2010-02-05 13:29 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-01  9:56 Videotext application crashes the kernel due to DVB-demux patch Chicken Shack
2010-02-01 12:41 ` Andy Walls
2010-02-02  2:00   ` Andy Walls
2010-02-02  9:11     ` Chicken Shack
2010-02-02 12:52       ` Andy Walls
2010-02-03  1:01         ` hermann pitton
2010-02-04 12:54           ` Andy Walls
2010-02-04 14:07             ` Chicken Shack
2010-02-05  2:21               ` Need to discuss method for multiple, multiple-PID TS's from same demux (Re: Videotext application crashes the kernel due to DVB-demux patch) Andy Walls
2010-02-05  2:37                 ` hermann pitton
2010-02-05 11:39                 ` Chicken Shack
2010-02-05 12:19                   ` HoP
2010-02-05 18:29                     ` Andy Walls
2010-02-05 13:19                 ` Andreas Oberritter
2010-02-05 13:28                   ` Mauro Carvalho Chehab [this message]
2010-02-05 13:58                     ` Chicken Shack
2010-02-05 15:31                     ` Chicken Shack
2010-02-05 19:22                   ` Andy Walls
2010-02-05 20:27                     ` Andreas Oberritter
2010-02-05 21:07                       ` Mauro Carvalho Chehab
2010-02-05 21:46                         ` hermann pitton
2010-02-05 22:32                         ` Chicken Shack
2010-02-05 23:12                           ` hermann pitton
2010-02-05 23:39                             ` Chicken Shack
2010-02-06  0:25                               ` hermann pitton
2010-02-06  8:55                                 ` "However, if you don't want to lose your freedom, you had better not follow him." " Chicken Shack
2010-02-07  3:58                                   ` hermann pitton
2010-02-07 12:11                                     ` Chicken Shack
2010-02-07 14:43                                     ` Andy Walls
2010-02-07 15:29                                       ` Chicken Shack
2010-02-07 18:10                                         ` HoP
2010-02-07 18:46                                           ` Chicken Shack
2010-02-07 19:13                                             ` HoP
2010-02-07 19:41                                               ` Chicken Shack
2010-02-06 12:02                                 ` Need to discuss method for multiple, multiple-PID TS's from same demux " BOUWSMA Barry
2010-03-11  4:00                                   ` hermann pitton
2010-02-01 13:02 ` Videotext application crashes the kernel due to DVB-demux patch Mauro Carvalho Chehab
2010-02-01 13:59   ` Chicken Shack

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=4B6C1CFC.6090600@redhat.com \
    --to=mchehab@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=awalls@radix.net \
    --cc=chicken.shack@gmx.de \
    --cc=hermann-pitton@arcor.de \
    --cc=linux-media@vger.kernel.org \
    --cc=obi@linuxtv.org \
    --cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.