Re: Does kmalloc always return address below 4GB?

From: David S. Miller (davem@redhat.com)
Date: Tue Mar 05 2002 - 10:47:22 EST


   From: Steffen Persvold <sp@scali.com>
   Date: Tue, 05 Mar 2002 16:43:01 +0100

   "David S. Miller" wrote:
> Just use pci_alloc_consistent, it never gives you
> anything larger than 32-bit addresses, please read the
> documentation :-)
   
   What about memory for streaming mappings

That's a different story.

   I know pci_map_single (and _sg) will
   use bounce buffers on platforms without an IOMMU,

64-bit platforms without IOMMU use HIGHMEM.

   It could for example be solved with a GFP_32BIT flag or something (on IA64 I
   know GFP_DMA is used in pci_alloc_consistent() to get memory below 4GB but that
   can't be used on all platforms).
   
IA64 was broken, it now uses HIGHMEM.
   
Franks a lot,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:00:43 EST