mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: David Moore <dcm@MIT.EDU>
Cc: Greg KH <greg@kroah.com>,
	v4l-dvb-maintainer@linuxtv.org,
	linux1394-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: Re: new driver staged in linux1394-2.6.git
Date: Thu, 21 Aug 2008 00:28:02 +0200	[thread overview]
Message-ID: <48AC9A72.4040808@s5r6.in-berlin.de> (raw)
In-Reply-To: <1219267012.26135.14.camel@dmoore.corp.google.com>

David Moore wrote:
> On Wed, 2008-08-20 at 22:41 +0200, Stefan Richter wrote:
>> Greg KH wrote:
>>> This assumes that it will not be dropped by you :)
>> I'll carry it until mainline merge, unless bigger subsystem changes 
>> happen on the v4l-dbv front that make it necessary to move it to their repo.
> 
> If I understand correctly, this driver is based on the legacy ieee1394
> subsystem.  I'm curious, is there a plan to migrate it to juju, where
> presumably it could be a lot cleaner and might not even have to live in
> the kernel at all (except for the need for some sort of dvb loopback
> device which might not yet exist)?

Yes; these are good points.  I planned on commenting on exactly these 
points when we (the two or so people who currently work on the driver 
and I) have it cleaned up so that we can post code for pre-merge review. 
Anyway, this is what I think:

Indeed, this driver interfaces with the ieee1394 stack.  That's because 
it lived out of tree for actually a few years already.  And of course it 
needs to be ported over to the firewire stack.  But in my opinion, this 
port is easier to do _after_ the driver came into mainline.  The 
firewire stack is still evolving, hence driver development on top of it 
outside of mainline would involve avoidable churn.

As to whether this should or could be a userland driver:  This is an 
AV/C driver, hence taking this into the kernel means that we partially 
duplicate the already existing userland library code in this area, which 
saw a lot of development and usage with a considerable range of AV/C 
devices.  It also means that we go against what has been the trend so 
far, i.e. that AV/C related code is removed from the kernel (amdtp and 
cmp long gone, dv1394 bitrotting).  So from the FireWire side, 
everything speaks against a kernel implementation of this driver.  But 
from the DVB side, there is one good reason to do it in-kernel:  That 
way it can interface with all existing DVB related userland just like 
PCI DVB cards and USB DVB cards.

A DVB loopback driver does not exist to my knowledge, nor am I aware of 
solid plans in this direction.  v4l-dvb people, please correct me if I 
missed something.

Is there interest to come up with a loopback driver for other DVB device 
types?  I presume it wouldn't make a lot of sense for PCI devices, and I 
understood that it is not feasible for USB devices for the time being.

In the past, there were also latency issues speaking against a userland 
implementation of firesat/firedtv.  These issues may be only partly 
relevant today, or maybe not at all.  An -rt kernel would surely allow 
for a low latency userspace driver; I don't know how well stock kernels 
currently do.
-- 
Stefan Richter
-=====-==--- =--- =-=--
http://arcgraph.de/sr/

      reply	other threads:[~2008-08-20 22:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 22:27 Stefan Richter
2008-08-20 20:11 ` Greg KH
2008-08-20 20:41   ` Stefan Richter
2008-08-20 21:00     ` Greg KH
2008-08-20 21:16     ` David Moore
2008-08-20 22:28       ` Stefan Richter [this message]

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=48AC9A72.4040808@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=dcm@MIT.EDU \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=v4l-dvb-maintainer@linuxtv.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

all inboxes | Powered by JetHome®