From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 18 Jul 2003 10:33:57 -0500 From: Chris Zimman To: "Johnson, Stephen" Cc: linuxppc-embedded@lists.linuxppc.org Subject: Re: kmalloc vs pci_alloc_consistent Message-ID: <20030718153357.GA9047@dingdong.cryptoapps.com> Reply-To: Chris Zimman References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: owner-linuxppc-embedded@lists.linuxppc.org List-Id: On Fri, Jul 18, 2003 at 09:56:35AM -0500, Johnson, Stephen wrote: > I read one thing noted on a man page for kmalloc that should be highlighted. > "the GFP_DMA flag may be set to indicate the memory must be suitable for > DMA. ***This can mean different things on different platforms.*** For > example, on x86, it means that the memory must come from the first 16MB." Just to clarify -- the 16MB lower memory limit is only true on x86 when doing DMA via ISA. PCI does not have this problem. In addition to making sure you get pages that are usable for DMA, pci_alloc_consistent() also takes care of cache coherency issues. --Chris ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/