From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sj-iport-6.cisco.com (sj-iport-6.cisco.com [171.71.176.117]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "sj-iport-6.cisco.com", Issuer "Cisco SSCA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 08C1CDDED8 for ; Sat, 20 Sep 2008 08:09:45 +1000 (EST) From: Roland Dreier To: vb Subject: Re: Allocating uncached memory in 2.6.25(powerpc/440) References: Date: Fri, 19 Sep 2008 15:09:35 -0700 In-Reply-To: (vb@vsbe.com's message of "Fri, 19 Sep 2008 14:56:11 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > basically, a block of contiguous memory is allocated. This block is > needed to set up some DMA descriptors, so it needs to be uncached, and > I thought this is what GFP_DMA flag is for. No, GFP_DMA doesn't have that meaning. To allocate uncached memory, use dma_alloc_coherent(). - R.