Re: pci_alloc_consistent for small allocations?

Russell King
2001-09-02T15:15:50Z

On Sun, Sep 02, 2001 at 08:08:00AM -0700, Adam J. Richter wrote:
> In looking at the ieee1394 OHCI driver, I noticed that it
> appears to make 104 calls to pci_alloc_consistent for data structures
> that are 16 or 64 bytes. Currently, on x86, pci_alloc_consistent
> allocates at least one full page per call, so it looks like the
> ohci1394 driver allocates 416kB per controller as a result of these
> data structures.

You might want to look through the PCI stuff in drivers/pci - there's a
generic method for handling this on USB already.

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux