Re: PCI memory mapping

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 4 Sep 1999 16:54:15 +0100 (BST)


> I am working on a PCI device driver in Linux.
> I am trying to map 128MB PCI memory space to virtual address of Pentium
> CPU.
> I am observing that ioremap() call returns only PAGE ALIGNED virtual
> address. My device driver requires the virtual address to be 128MB
> aligned! (I need the virtual address start in the form - xxxx x000 0000
>
> 0000 0000 0000 0000 0000 (given in binary x-dont care).
>
> How do I ensure it in Linux? Can anybody help me?

You need to fix your driver. The physical alignment which matters for
many devices is handled by PCI itself. Virtual alignment requirements are
driver bugs ..

Alan

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