Re: [GIT PATCH] UIO patches for 2.6.21

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Linus Torvalds <torvalds@...>, <linux-kernel@...>, <tglx@...>, Benedikt Spranger <b.spranger@...>, Hans J. Koch <hjk@...>
Date: Friday, April 27, 2007 - 7:11 pm

On Fri, Apr 27, 2007 at 04:04:25PM -0700, Andrew Morton wrote:

It's not a closed vs. open issue, it just turns out that a lot of people
keep trying to write PCI drivers in userspace (how many different papers
were published on this topic alone in the past year...).  This framework
is to allow this to happen in a sane and correct way.

Lots of different types of odd devices do not fit into the "kernelspace
driver" framework very well for a variety of reasons:
	- zillions of different controls in the card
	- floating point is needed to compute the next step of an
	  operation in moving a physical object

With this framework, we provide a solid and simple way to provide for
these kinds of devices.  The Linutronix guys have had a lot of
experience in supporting this kind of hardware in the past and can
provide better examples if you need.

But yes, it does allow you to write a PCI driver in userspace, being
closed source, if you really want to.  But if you do that, then you get
_no_ advantages of being in the kernel (caching, common userspace
interface, resource management, etc.) and need to handle that all
yourself.  Heck, that's pretty much what X does today for lots of old
video cards :)


No, you still need kernel code to handle the interrupt properly, we do
not want userspace to do this as it would slow the system down and do
all sorts of other bad things.  That's the main problem with all of
those other proposals that people have for trying to do this kind of
work in the past (can't share irqs, can't block on userspace in an
interrupt handler, etc.)

thanks,

greg k-h
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PATCH] UIO patches for 2.6.21, Greg KH, (Fri Apr 27, 6:49 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Bill Davidsen, (Sat Apr 28, 3:56 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Hans-Jürgen Koch, (Sat Apr 28, 4:03 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Alan Cox, (Sat Apr 28, 4:15 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Thomas Gleixner, (Sat Apr 28, 4:31 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Greg KH, (Sat Apr 28, 9:23 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Thomas Gleixner, (Sun Apr 29, 4:30 am)
Re: [GIT PATCH] UIO patches for 2.6.21, Pavel Machek, (Mon May 7, 4:02 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Jan Engelhardt, (Sun Apr 29, 8:09 am)
Re: [GIT PATCH] UIO patches for 2.6.21, Alan Cox, (Sun Apr 29, 12:27 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Thomas Gleixner, (Sat Apr 28, 4:02 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Andrew Morton, (Fri Apr 27, 7:04 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Hans-Jürgen Koch, (Fri Apr 27, 8:28 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Alan Cox, (Fri Apr 27, 7:26 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Greg KH, (Fri Apr 27, 7:11 pm)
Re: [GIT PATCH] UIO patches for 2.6.21, Thomas Gleixner, (Sat Apr 28, 7:38 am)
[PATCH 1/3] UIO: Add the User IO core code, Greg Kroah-Hartman, (Fri Apr 27, 6:50 pm)
Flaws with "UIO: Add the User IO core code", Alan Cox, (Fri Apr 27, 7:19 pm)
Re: Flaws with "UIO: Add the User IO core code" (with patch), Hans-Jürgen Koch, (Sat Apr 28, 2:52 pm)
Re: Flaws with "UIO: Add the User IO core code" (with patch), Hans-Jürgen Koch, (Sat Apr 28, 5:03 pm)
Re: Flaws with "UIO: Add the User IO core code" (with patch), Thomas Gleixner, (Sat Apr 28, 5:08 pm)
Re: Flaws with "UIO: Add the User IO core code", Hans-Jürgen Koch, (Sat Apr 28, 5:14 pm)
Re: Flaws with "UIO: Add the User IO core code" (with patch), Hans-Jürgen Koch, (Sun Apr 29, 6:18 pm)
Re: Flaws with "UIO: Add the User IO core code" (with patch), Thomas Gleixner, (Sat Apr 28, 4:38 pm)
Re: Flaws with "UIO: Add the User IO core code", Thomas Gleixner, (Sat Apr 28, 7:39 am)
[PATCH 2/3] UIO: Documentation, Greg Kroah-Hartman, (Fri Apr 27, 6:50 pm)
Re: [PATCH 2/3] UIO: Documentation, Randy Dunlap, (Tue May 1, 7:42 pm)
Re: [PATCH 2/3] UIO: Documentation, Hans-Jürgen Koch, (Wed May 2, 4:41 am)
Re: [PATCH 2/3] UIO: Documentation, Randy Dunlap, (Wed May 2, 4:52 pm)
Re: [PATCH 2/3] UIO: Documentation, Hans-Jürgen Koch, (Wed May 2, 6:00 pm)
Re: [PATCH 2/3] UIO: Documentation, Randy Dunlap, (Wed May 2, 7:37 pm)
Re: [PATCH 2/3] UIO: Documentation, Greg KH, (Thu May 3, 1:37 am)
Re: [PATCH 2/3] UIO: Documentation, Hans-Jürgen Koch, (Thu May 3, 2:39 am)
Re: [PATCH 2/3] UIO: Documentation, Hans-Jürgen Koch, (Fri May 4, 5:37 am)
Re: [PATCH 2/3] UIO: Documentation, Randy Dunlap, (Mon May 7, 1:46 pm)
Re: [PATCH 2/3] UIO: Documentation, Hans-Jürgen Koch, (Mon May 7, 4:01 pm)
[PATCH 3/3] UIO: Hilscher CIF card driver, Greg Kroah-Hartman, (Fri Apr 27, 6:50 pm)
Re: [PATCH 3/3] UIO: Hilscher CIF card driver (with patch), Hans-Jürgen Koch, (Sun Apr 29, 3:44 pm)