Re: [RFC] Simple userspace interface for PCI drivers

From: Andi Kleen
Date: Thu Aug 31 2006 - 09:46:31 EST


Matt Porter <mporter@xxxxxxxxxxxxxxxxx> writes:
>
> What about portable access to the PCI DMA API from userspace?

We'll definitely need this for X11 anyways. Currently it is not
possible to run the standard X server with a IOMMU that isolates
the graphics card because it has no way to get at the GPU MMIO
registers then.

My long-term plan was to integrate it in /sys/bus/pci mmaps
(together with PAT etc.). When you mmap it there the kernel
allocates a DMA mapping and then frees it on unmap.

Then it should hopefully just work.

-Andi
-
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/