Re: Prefered method to map PCI memory into userspace.

From: Joe Korty
Date: Fri Sep 26 2003 - 16:44:21 EST


On Fri, Sep 26, 2003 at 01:53:43PM -0700, Jim Deas wrote:
> I am looking for the most current (blessed) structure
> for mapping PCI memory to a user process. One that allows
> both PIO and busmastering to work on a common block of
> PCI RAM. I am not concerned with backporting to older
> kernels but it would be nice if the solution wasn't ibm specific.
>
> My problem is a 64M window into a frame buffer that I would
> like to map into user space. I am more than willing to put
> forth the effort, I just want to make sure I'm heading in
> the right direction.
>
> Is there a better forum for posting this? Regards,
> J. Deas
>
> RH9.0 2.4.20-6smp kernel and above.

Albert Cahalan wrote a patch, for 2.6, that makes mmappable all PCI device
memory regions. They show up as files in the appropriate subdirectories
under /proc/bus/pci. See http://lkml.org/lkml/2003/7/13/258 for the
patch and details.

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