Re: Userspace I/O driver core

2006-12-16 Thread Dr. David Alan Gilbert
* Arjan van de Ven ([EMAIL PROTECTED]) wrote: > > > I understand one still has to write a kernel driver to shut up the irq. > > How about writing a small bytecode interpreter to make event than > > unnecessary? > > if you do that why not do a real driver. Because perhaps it is potentially

Re: Userspace I/O driver core

2006-12-16 Thread Dr. David Alan Gilbert
* Arjan van de Ven ([EMAIL PROTECTED]) wrote: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? if you do that why not do a real driver. Because perhaps it is potentially very simple

Re: Userspace I/O driver core

2006-12-14 Thread Ben Nizette
linux-os (Dick Johnson) wrote: On Wed, 13 Dec 2006, Greg KH wrote: If anyone has any questions on how to use this interface, or anything else about it, please let me and Thomas know. thanks, greg k-h [snip] There are well thought-out methods of creating hardware interfaces that > have a

Re: Userspace I/O driver core

2006-12-14 Thread Greg KH
On Thu, Dec 14, 2006 at 12:48:55PM +0200, Avi Kivity wrote: > [why trim the cc?] > > Hans-J?rgen Koch wrote: > >Am Donnerstag, 14. Dezember 2006 10:44 schrieb Avi Kivity: > > > > > >>I understand one still has to write a kernel driver to shut up the irq. > >>How about writing a small bytecode

Re: Userspace I/O driver core

2006-12-14 Thread Jan Engelhardt
On Dec 14 2006 15:38, Avi Kivity wrote: > Jan Engelhardt wrote: >> > It has to be written once, but compiled for every kernel >> > version and $arch out there (for out of tree drivers), or it >> > has to wait for the next kernel release and distro sync (for >> > in-tree drivers). >> >> Still

Re: Userspace I/O driver core

2006-12-14 Thread Greg KH
On Thu, Dec 14, 2006 at 12:56:29PM +0200, Avi Kivity wrote: > Arjan van de Ven wrote: > >On Thu, 2006-12-14 at 12:46 +0200, Avi Kivity wrote: > > > >>Arjan van de Ven wrote: > >> > I understand one still has to write a kernel driver to shut up the irq. > How about writing a small

Re: Userspace I/O driver core

2006-12-14 Thread linux-os \(Dick Johnson\)
On Wed, 13 Dec 2006, Greg KH wrote: > A large number of people have expressed interest recently in the > userspace i/o driver core which allows userspace drivers to be written > to handle some types of hardware. > > Right now the UIO core is working and in the -mm relea

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
Jan Engelhardt wrote: It has to be written once, but compiled for every kernel version and $arch out there (for out of tree drivers), or it has to wait for the next kernel release and distro sync (for in-tree drivers). Still better than written for every _and_ compiled for every. But

Re: Userspace I/O driver core

2006-12-14 Thread Jan Engelhardt
> It has to be written once, but compiled for every kernel > version and $arch out there (for out of tree drivers), or it > has to wait for the next kernel release and distro sync (for > in-tree drivers). Still better than written for every _and_ compiled for every. But wait, make it simpler:

Re: Userspace I/O driver core

2006-12-14 Thread Jan Engelhardt
>The patches can be found in the -mm releases or at: > > http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-01-driver/uio.patch >- UIO core > > http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-01-driver/uio-documentation.patch >- UIO

Re: Userspace I/O driver core

2006-12-14 Thread Alan
On Thu, 14 Dec 2006 12:37:16 +0100 Hans-Jürgen Koch <[EMAIL PROTECTED]> wrote: > There are three breaks in that while loop, the first makes it return as > soon as an interrupt occurs. Doh ignore that I misread it. Perils of reading email before midday - To unsubscribe from this list: send the

Re: Userspace I/O driver core

2006-12-14 Thread Hans-Jürgen Koch
Am Donnerstag, 14. Dezember 2006 12:39 schrieb Alan: > On Thu, 14 Dec 2006 12:22:16 +0100 > Thomas Gleixner <[EMAIL PROTECTED]> wrote: > > > On Thu, 2006-12-14 at 10:52 +, Alan wrote: > > > Might be kind of hairy given uio_read() doesn't even return from the > > > kernel. > > > > We

Re: Userspace I/O driver core

2006-12-14 Thread Alan
On Thu, 14 Dec 2006 12:22:16 +0100 Thomas Gleixner <[EMAIL PROTECTED]> wrote: > On Thu, 2006-12-14 at 10:52 +, Alan wrote: > > Might be kind of hairy given uio_read() doesn't even return from the > > kernel. > > We probably talk about different code here, right ? The one, I'm looking > at

Re: Userspace I/O driver core

2006-12-14 Thread Thomas Gleixner
On Thu, 2006-12-14 at 10:52 +, Alan wrote: > Might be kind of hairy given uio_read() doesn't even return from the > kernel. We probably talk about different code here, right ? The one, I'm looking at returns on each interrupt event. tglx - To unsubscribe from this list: send the

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
Arjan van de Ven wrote: On Thu, 2006-12-14 at 12:46 +0200, Avi Kivity wrote: Arjan van de Ven wrote: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? if you do that

Re: Userspace I/O driver core

2006-12-14 Thread Arjan van de Ven
On Thu, 2006-12-14 at 12:46 +0200, Avi Kivity wrote: > Arjan van de Ven wrote: > >> I understand one still has to write a kernel driver to shut up the irq. > >> How about writing a small bytecode interpreter to make event than > >> unnecessary? > >> > > > > if you do that why not do a real

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
[why trim the cc?] Hans-Jürgen Koch wrote: Am Donnerstag, 14. Dezember 2006 10:44 schrieb Avi Kivity: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? The userspace driver would

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
Arjan van de Ven wrote: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? if you do that why not do a real driver. An entire driver in bytecode? that means exposing the entire

Re: Userspace I/O driver core

2006-12-14 Thread Alan
> But in order to get this core into the kernel tree, we need to have some > "real" drivers written that use it. So, for anyone that wants to see > this go into the tree, now is the time to step forward and post your > patches for hardware that this kind of driver interface is needed. Might be

Re: Userspace I/O driver core

2006-12-14 Thread Hans-Jürgen Koch
Am Donnerstag, 14. Dezember 2006 10:44 schrieb Avi Kivity: > > I understand one still has to write a kernel driver to shut up the irq. > How about writing a small bytecode interpreter to make event than > unnecessary? > > The userspace driver would register a couple of bytecode programs: >

Re: Userspace I/O driver core

2006-12-14 Thread Arjan van de Ven
> I understand one still has to write a kernel driver to shut up the irq. > How about writing a small bytecode interpreter to make event than > unnecessary? if you do that why not do a real driver. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
Greg KH wrote: A large number of people have expressed interest recently in the userspace i/o driver core which allows userspace drivers to be written to handle some types of hardware. Right now the UIO core is working and in the -mm releases. It's been rewritten from the last time patches

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
Greg KH wrote: A large number of people have expressed interest recently in the userspace i/o driver core which allows userspace drivers to be written to handle some types of hardware. Right now the UIO core is working and in the -mm releases. It's been rewritten from the last time patches

Re: Userspace I/O driver core

2006-12-14 Thread Arjan van de Ven
I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? if you do that why not do a real driver. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: Userspace I/O driver core

2006-12-14 Thread Hans-Jürgen Koch
Am Donnerstag, 14. Dezember 2006 10:44 schrieb Avi Kivity: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? The userspace driver would register a couple of bytecode programs:

Re: Userspace I/O driver core

2006-12-14 Thread Alan
But in order to get this core into the kernel tree, we need to have some real drivers written that use it. So, for anyone that wants to see this go into the tree, now is the time to step forward and post your patches for hardware that this kind of driver interface is needed. Might be kind of

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
Arjan van de Ven wrote: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? if you do that why not do a real driver. An entire driver in bytecode? that means exposing the entire

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
[why trim the cc?] Hans-Jürgen Koch wrote: Am Donnerstag, 14. Dezember 2006 10:44 schrieb Avi Kivity: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? The userspace driver would

Re: Userspace I/O driver core

2006-12-14 Thread Arjan van de Ven
On Thu, 2006-12-14 at 12:46 +0200, Avi Kivity wrote: Arjan van de Ven wrote: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? if you do that why not do a real driver.

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
Arjan van de Ven wrote: On Thu, 2006-12-14 at 12:46 +0200, Avi Kivity wrote: Arjan van de Ven wrote: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to make event than unnecessary? if you do that

Re: Userspace I/O driver core

2006-12-14 Thread Thomas Gleixner
On Thu, 2006-12-14 at 10:52 +, Alan wrote: Might be kind of hairy given uio_read() doesn't even return from the kernel. We probably talk about different code here, right ? The one, I'm looking at returns on each interrupt event. tglx - To unsubscribe from this list: send the

Re: Userspace I/O driver core

2006-12-14 Thread Alan
On Thu, 14 Dec 2006 12:22:16 +0100 Thomas Gleixner [EMAIL PROTECTED] wrote: On Thu, 2006-12-14 at 10:52 +, Alan wrote: Might be kind of hairy given uio_read() doesn't even return from the kernel. We probably talk about different code here, right ? The one, I'm looking at returns on

Re: Userspace I/O driver core

2006-12-14 Thread Hans-Jürgen Koch
Am Donnerstag, 14. Dezember 2006 12:39 schrieb Alan: On Thu, 14 Dec 2006 12:22:16 +0100 Thomas Gleixner [EMAIL PROTECTED] wrote: On Thu, 2006-12-14 at 10:52 +, Alan wrote: Might be kind of hairy given uio_read() doesn't even return from the kernel. We probably talk about

Re: Userspace I/O driver core

2006-12-14 Thread Alan
On Thu, 14 Dec 2006 12:37:16 +0100 Hans-Jürgen Koch [EMAIL PROTECTED] wrote: There are three breaks in that while loop, the first makes it return as soon as an interrupt occurs. Doh ignore that I misread it. Perils of reading email before midday - To unsubscribe from this list: send the line

Re: Userspace I/O driver core

2006-12-14 Thread Jan Engelhardt
It has to be written once, but compiled for every kernel version and $arch out there (for out of tree drivers), or it has to wait for the next kernel release and distro sync (for in-tree drivers). Still better than written for every _and_ compiled for every. But wait, make it simpler: just

Re: Userspace I/O driver core

2006-12-14 Thread Jan Engelhardt
The patches can be found in the -mm releases or at: http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-01-driver/uio.patch - UIO core http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-01-driver/uio-documentation.patch - UIO documentation

Re: Userspace I/O driver core

2006-12-14 Thread Avi Kivity
Jan Engelhardt wrote: It has to be written once, but compiled for every kernel version and $arch out there (for out of tree drivers), or it has to wait for the next kernel release and distro sync (for in-tree drivers). Still better than written for every _and_ compiled for every. But

Re: Userspace I/O driver core

2006-12-14 Thread linux-os \(Dick Johnson\)
On Wed, 13 Dec 2006, Greg KH wrote: A large number of people have expressed interest recently in the userspace i/o driver core which allows userspace drivers to be written to handle some types of hardware. Right now the UIO core is working and in the -mm releases. It's been rewritten from

Re: Userspace I/O driver core

2006-12-14 Thread Greg KH
On Thu, Dec 14, 2006 at 12:56:29PM +0200, Avi Kivity wrote: Arjan van de Ven wrote: On Thu, 2006-12-14 at 12:46 +0200, Avi Kivity wrote: Arjan van de Ven wrote: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to

Re: Userspace I/O driver core

2006-12-14 Thread Jan Engelhardt
On Dec 14 2006 15:38, Avi Kivity wrote: Jan Engelhardt wrote: It has to be written once, but compiled for every kernel version and $arch out there (for out of tree drivers), or it has to wait for the next kernel release and distro sync (for in-tree drivers). Still better than written

Re: Userspace I/O driver core

2006-12-14 Thread Greg KH
On Thu, Dec 14, 2006 at 12:48:55PM +0200, Avi Kivity wrote: [why trim the cc?] Hans-J?rgen Koch wrote: Am Donnerstag, 14. Dezember 2006 10:44 schrieb Avi Kivity: I understand one still has to write a kernel driver to shut up the irq. How about writing a small bytecode interpreter to

Re: Userspace I/O driver core

2006-12-14 Thread Ben Nizette
linux-os (Dick Johnson) wrote: On Wed, 13 Dec 2006, Greg KH wrote: If anyone has any questions on how to use this interface, or anything else about it, please let me and Thomas know. thanks, greg k-h [snip] There are well thought-out methods of creating hardware interfaces that have a

Re: Userspace I/O driver core

2006-12-13 Thread Ben Nizette
Greg KH wrote: But in order to get this core into the kernel tree, we need to have some "real" drivers written that use it. So, for anyone that wants to see this go into the tree, now is the time to step forward and post your patches for hardware that this kind of driver interface is needed.

Userspace I/O driver core

2006-12-13 Thread Greg KH
A large number of people have expressed interest recently in the userspace i/o driver core which allows userspace drivers to be written to handle some types of hardware. Right now the UIO core is working and in the -mm releases. It's been rewritten from the last time patches were posted to lkml

Userspace I/O driver core

2006-12-13 Thread Greg KH
A large number of people have expressed interest recently in the userspace i/o driver core which allows userspace drivers to be written to handle some types of hardware. Right now the UIO core is working and in the -mm releases. It's been rewritten from the last time patches were posted to lkml

Re: Userspace I/O driver core

2006-12-13 Thread Ben Nizette
Greg KH wrote: But in order to get this core into the kernel tree, we need to have some real drivers written that use it. So, for anyone that wants to see this go into the tree, now is the time to step forward and post your patches for hardware that this kind of driver interface is needed.