Re: [GIT PATCH] more Driver core patches for 2.6.19



Am Donnerstag, 14. Dezember 2006 10:30 schrieb Muli Ben-Yehuda:
On Wed, Dec 13, 2006 at 10:15:47PM +0100, Arjan van de Ven wrote:

with DRI you have the case where "something" needs to do security
validation of the commands that are sent to the card. (to avoid a
non-privileged user to DMA all over your memory)

We also have the interesting case where your card is behind an
isolation-capable IOMMU, so if you let userspace program it, you need
a userspace-accessible DMA-API for IOMMU mappings (or to pre-map
everything in the IOMMU, which loses on some of the benefits of
isolation-capable IOMMUs (i.e., only map what you need to use right
now)).

Userspace IO (UIO) was never intended to replace all kinds of possible
drivers. We wanted to address the situation where a manufacturer of
industrial I/O cards wants to do a large part of his driver in userspace
to simplify his development process. That's all.
Most of these I/O cards have registers or dual ported RAM that can be
mapped to userspace. This is possible with a standard kernel and is done
every day. Problem is that you can't handle interrupts. UIO simply adds
this capability and offers a standardized interface.
The code Greg added to his tree can do this for most hardware found
on industrial IO boards. That's all we wanted to achieve for now. If
somebody wants to support more sophisticated things, suggestions are
welcome.

Hans

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Network drivers that dont suspend on interface down
    ... so I fail to see where userspace could expect to do anything ... with a wireless card when it's down too. ... Because it works on the common hardware? ...
    (Linux-Kernel)
  • Re: Network drivers that dont suspend on interface down
    ... You can't get link events for many wired cards when they ... so I fail to see where userspace could expect to do anything ... with a wireless card when it's down too. ... But in the absence of any indication as to what functionality users can ...
    (Linux-Kernel)
  • Re: [2.6.22-rc3][ACPI?] Resume from s2r doesnt work.
    ... I'm still suspecting that the problem is related to your graphics adapter. ... Maybe it's the most common problem, but why do you think so? ... a black screen the kernel should return to userspace. ... Still, if the card is a 7300 or higher, that need not work (at present we don't ...
    (Linux-Kernel)
  • Re: Network drivers that dont suspend on interface down
    ... The obvious route would be to power the card down, ... every two minutes to perform a scan, or if userspace explicitly requests ... hardware, reload the firmware, let the firmware boot, and then talk to ...
    (Linux-Kernel)
  • Re: [GIT PATCH] more Driver core patches for 2.6.19
    ... validation of the commands that are sent to the card. ... non-privileged user to DMA all over your memory) ... isolation-capable IOMMU, so if you let userspace program it, you need ...
    (Linux-Kernel)