mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dâniel Fraga" <fragabr@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: video4linux-list@redhat.com, linux-dvb@linuxtv.org
Cc: video4linux-list@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [linux-dvb] [PATCH] Userspace tuner
Date: Thu, 13 Sep 2007 01:58:03 -0300	[thread overview]
Message-ID: <rjsmr4-rc8.ln1@tux.abusar.org> (raw)
In-Reply-To: <d9def9db0709121610n1a78225cs26380b7ca586344a@mail.gmail.com>

	Well, I'd like to see Linus' opinion about this, because while
programmers keep discussing this, users are waiting forever... so if
Markus has a concrete and better solution, why don't use it?

	And as far as I know, Markus is the programmer who is most
interested in this code. I didn't see anybody else in the world doing
his work...

	And I always had a impression that if most of things could be
done in user space, than it will be better (for example, devfs -> udev).
Why do everything in kernel space? Lets put *less* code in the kernel,
not more code. And besides that, code in user space can be changed
easily. Code in kernel has to wait a long time for Linus to accept (*if*
he accepts).

	Linus could put an end to this discussion, since he will say
the final word.

On Thu, 13 Sep 2007 01:10:55 +0200
"Markus Rechberger" <mrechberger@gmail.com> wrote:

> Let's add the LKML to this.
> 
> On 9/13/07, Markus Rechberger <mrechberger@gmail.com> wrote:
> > On 9/12/07, Mauro Carvalho Chehab <mchehab@infradead.org> wrote:
> > > Markus,
> > >
> > > Em Ter, 2007-08-14 às 16:31 +0200, Markus Rechberger escreveu:
> > > > Following patch adds the possibility to implement tuner drivers in
> > > > userspace.
> > >
> > > As you asked me about userspace driver, at Linux Conf Europe, let me
> > > give you my feedback about it.
> > >
> > > On Linux, userspace-to-kernelspace APIs are meant to be forever. This
> > > means that, once a newer API is created, this should remain supported
> > > for all future versions. So, such APIs should be carefully analyzed and
> > > accepted by the community, before going to mainstream.
> > >
> >
> > The V4L and DVB API is stable at the moment because it's at a stage
> > which is sufficient for older devices but not sufficient for newer
> > devices anymore.
> > To support newer device it needs a change.
> >
> > > I don't see any technical reason why tuner drivers should be moved to
> > > userspace. Looking at xc3028 device, the driver is very simple and
> > > doesn't require any special treatment that it isn't possible to be done
> > > at kernel. There are already some implementations on kernelspace that
> > > works fine.
> > >
> >
> > As from my side to support the xceive driver properly it needs a
> > rewrite and a proper API description. Since it's not possible to
> > discuss any API changes I will work around at least for those devices
> > which I can support for.
> >
> > > On the other hand, a TV driver without a tuner is a broken driver. With
> > > parts of the driver being at userspace, this means to add undesired
> > > complexity at the drivers architecture, while not bringing any benefit.
> > >
> > > If you look at V4L history, the first drivers started at userspace,
> > > being migrated to kernelspace, where we have the proper scenario for
> > > managing those devices.
> > >
> > > Another aspect that should be analyzed is what is desired by the
> > > community:
> >
> > don't get me wrong but the existing community is rather small and
> > kicking off people who are interested in changing things.
> > I recently had a talk with someone and I've been told that I'm kicking
> > off people.
> > Guess why I kick off people? -> because they do not contribute in a
> > productive way which also means submitting patches. Optical useless
> > changes don't make any difference at the functionality in the end. And
> > my requirements are ignored constantly here.
> >
> > > kernelspace tuners or userspace tuners. Keeping support for
> > > both at long term doesn't seem reasonable. The Linux community should
> > > decide what is the better way. Currently, only you are pushing for
> > > userspace tuners, mainly due to non-technical reasons.
> >
> > read the project site and you will see the reasons.
> > http://mcentral.de/wiki/index.php/Userspace_tuner#Advantages
> > Another advantage is that I have cygwin based code here which I can
> > easily reuse with all that work I'm not going to reinvent the wheel
> > even for newer devices which I work on.
> >
> > > Almost all the
> > > other developers are comfortable with kernelspace tuners. So, creating
> > > an userspace interface just to make you happy is not the way we should
> > > go.
> > >
> >
> > I'm afraid of giving the people which are against what I submitted the
> > responsibility over the project. Initially there was an RFC which
> > didn't get commented either (well there was one useless comment, I
> > tried to discuss it on IRC before with the same guy) after I
> > implemented exactly what I proposed there I got the first non
> > technical comments - also keep in mind that working on something costs
> > alot of time and talking about something unknown is rather cheap.
> >
> > > A final aspect is that having an userspace driver for tuner will mean
> > > that the kernel driver will depend on an userspace counterpart in order
> > > to work. This will allow a vendor with bad intentions to release a
> > > partially broken userspace driver, with limited capabilities, and a
> > > closed source driver for full support. This model is likely to occur, if
> > > you take a look at the past. For example: ATI and Nvidia closed source
> > > drivers, several soft modem drivers, some network drivers, ...
> > >
> >
> > Please go forward and discuss the UIO driver with Greg Kroah Hartmann
> > and the fuse driver with the other people. If companies want to
> > release binary drivers they can easily use the existing code put it
> > into an RPM or DEB package and Ubuntu will pick it up.
> >
> > > With all those issues, I'm against to add an userspace interface for
> > > tuners.
> > >
> >
> > I'm against how the project works out at the moment and how it worked
> > out in history. Exactly this way will kick off companies to be
> > interested in future like Avermedia. A driver can easily be written
> > within a few weeks and I've been struggling with it for 2 years(!!!)
> > now just for nothing finally telling me that some guys want to steal
> > my code and move it to kernelspace although it would raise more
> > complications with upcoming and current devices which have even more
> > requirements.
> > I spent more time in rewriting and discussing everything than to get
> > any of those requirements done.
> > Look at the dvb hotplug patch which came from my side, also look at
> > device node locking where the Hauppauge guy submitted a patch which
> > doesn't work properly because of the spinning thread in the end. I
> > would take my considerations and requirements a bit more serious.
> >
> > Markus
> >
> 
> 


-- 
Linux 2.6.22: Holy Dancing Manatees, Batman!
http://www.lastfm.pt/user/danielfraga
http://u-br.net
Dream Theater - "Panic Attack" (Octavarium - 2005)


  reply	other threads:[~2007-09-13  5:10 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <46C1BCC5.9090709@amd.com>
     [not found] ` <1189626560.5160.57.camel@gaivota>
     [not found]   ` <d9def9db0709121546h67d3d1ceuf001ab1d798fde92@mail.gmail.com>
2007-09-12 23:10     ` Markus Rechberger
2007-09-13  4:58       ` Dâniel Fraga [this message]
     [not found]         ` <d9def9db0709122258l4b05546dq2e370e67a2a1404@mail.gmail.com>
2007-09-13 12:40           ` Johannes Stezenbach
2007-09-13 13:17             ` Markus Rechberger
2007-09-17 22:05         ` Bill Davidsen
2007-09-13 13:13       ` [linux-dvb] " Johannes Stezenbach
2007-09-13 14:12         ` Markus Rechberger
2007-09-13 15:50           ` Manu Abraham
2007-09-13 16:08             ` Markus Rechberger
2007-09-13 16:22               ` Manu Abraham
2007-09-13 16:32                 ` Markus Rechberger
2007-09-13 16:52                   ` Manu Abraham
2007-09-13 20:36               ` Steven Toth
2007-09-13 23:17                 ` Markus Rechberger
2007-09-14  1:03                   ` Steven Toth
2007-09-14  6:38                     ` Markus Rechberger
2007-09-14  7:57                       ` Manu Abraham
2007-09-14  9:15                         ` Joerg Roedel
2007-09-14 12:00                           ` Manu Abraham
2007-09-14 16:09                             ` Markus Rechberger
2007-09-14 18:52                               ` Alex Deucher
2007-09-14 18:59                                 ` Markus Rechberger
2007-09-14 19:38                                   ` Alex Deucher
2007-09-14 16:13                             ` Joerg Roedel
2007-09-14 16:56                               ` Manu Abraham
2007-09-14 17:40                                 ` Joerg Roedel
2007-09-14 11:38                       ` Johannes Stezenbach
2007-09-14 16:36                         ` Markus Rechberger
2007-09-14 17:32                           ` Mauro Carvalho Chehab
2007-09-14 17:46                             ` Markus Rechberger
2007-09-14 18:29                               ` Mauro Carvalho Chehab
2007-09-14 19:20                                 ` Michael Krufky
2007-09-14 21:07                                   ` Aidan Thornton
2007-09-14 21:16                                     ` Mauro Carvalho Chehab
2007-09-14 21:53                                     ` Manu Abraham
2007-09-14 20:43                           ` Johannes Stezenbach
2007-09-15  1:29                             ` Markus Rechberger
2007-09-15  1:49                               ` Mauro Carvalho Chehab
2007-09-15 13:16                               ` Johannes Stezenbach
2007-09-15 13:38                                 ` Markus Rechberger
2007-09-15 14:04                                   ` Mauro Carvalho Chehab
2007-09-15 14:33                                     ` Markus Rechberger
2007-09-15 14:45                                       ` Mauro Carvalho Chehab
2007-09-15 16:58                                     ` Bernard Jungen
2007-09-16 11:30                                       ` Hans Verkuil
2007-09-17  8:46                                       ` Markus Rechberger
2007-09-15  1:49                             ` Markus Rechberger
2007-09-15  3:09                               ` Mauro Carvalho Chehab
2007-09-15 12:59                                 ` Markus Rechberger
2007-09-15  8:52                               ` Manu Abraham
2007-09-15 13:34                               ` Johannes Stezenbach
2007-09-15 14:56                                 ` Steven Toth
2007-09-14 13:52                   ` Alan Cox
2007-09-14 16:18                     ` Markus Rechberger
2007-09-18  8:19                       ` Jelle Foks
2007-09-18  8:55                         ` Markus Rechberger
2007-09-18 22:56                         ` Mauro Carvalho Chehab
2007-09-18 23:00                           ` Alan Cox
2007-09-14  0:49                 ` hermann pitton
2007-09-14 12:10                 ` Alan Cox

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=rjsmr4-rc8.ln1@tux.abusar.org \
    --to=fragabr@gmail.com \
    --cc=linux-dvb@linuxtv.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=video4linux-list@redhat.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

all inboxes | Powered by JetHome®