From: Jesse Barnes <jbarnes@engr.sgi.com>
To: Greg KH <greg@kroah.com>
Cc: Peter Chubb <peterc@gelato.unsw.edu.au>, linux-kernel@vger.kernel.org
Subject: Re: User mode drivers: part 2: PCI device handling (patch 1/2 for 2.6.11)
Date: Fri, 11 Mar 2005 08:45:10 -0800 [thread overview]
Message-ID: <200503110845.10694.jbarnes@engr.sgi.com> (raw)
In-Reply-To: <20050311152106.GA32584@kroah.com>
On Friday, March 11, 2005 7:21 am, Greg KH wrote:
> > The only call that would go is usr_pci_open() -- you'd still need
> > usr_pci_map()
>
> see mmap(2)
>
> > , usr_pci_unmap()
>
> see munmap(2)
Aren't those different cases though? E.g. you might have a buffer in userland
that you want to DMA to a card, sure you can mmap the registers to program
the DMA, but you need a way to pin the memory and get the bus address to send
down, right?
> In fact, both of the above can be done today from /proc/bus/pci/ right?
>
> > and usr_pci_get_consistent().
>
> Hm, this one might be different. How about just opening and mmap a new
> file for the pci device for this?
New syscalls seem like the cleanest solution. For basic, non-dma programming
though, I'd suggest just using sysfs, since all the PCI resources are
exported there; you can mmap them and do simple programming that way.
As for the idea of userland drivers in general, I'm not sure I like it. I'm
afraid it will just encourage more undebuggable, x86 binary blobs (or big
source code blobs with their own bridge drivers like X) that people are
forced to run to get their hardware to work...
Jesse
next prev parent reply other threads:[~2005-03-11 16:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-11 3:37 Peter Chubb
2005-03-11 7:18 ` Greg KH
2005-03-11 8:34 ` Peter Chubb
2005-03-11 10:31 ` Pavel Machek
2005-03-11 15:21 ` Greg KH
2005-03-11 16:45 ` Jesse Barnes [this message]
2005-03-12 22:43 ` Jon Smirl
2005-03-14 0:13 ` Peter Chubb
2005-03-14 17:46 ` Alan Cox
2005-03-11 19:16 ` Alan Cox
2005-03-12 10:49 ` Andrew Grover
2005-03-11 5:18 Albert Cahalan
2005-03-11 19:15 ` Alan Cox
2005-03-11 21:04 ` Albert Cahalan
2005-03-14 13:34 ` 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=200503110845.10694.jbarnes@engr.sgi.com \
--to=jbarnes@engr.sgi.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterc@gelato.unsw.edu.au \
/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®