From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 380AF2C0339 for ; Tue, 24 Jul 2012 09:12:33 +1000 (EST) Message-ID: <1343085145.2957.44.camel@pasglop> Subject: Re: [PATCH] powerpc/mm: add ZONE_NORMAL zone for 64 bit kernel From: Benjamin Herrenschmidt To: Tabi Timur-B04825 Date: Tue, 24 Jul 2012 09:12:25 +1000 In-Reply-To: References: <1342786906-12634-1-git-send-email-Shaohui.Xie@freescale.com> <1343023569.2957.19.camel@pasglop> <500D7921.6060804@freescale.com> <1343082030.2957.38.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: Wood Scott-B07421 , Hu Mingkai-B21284 , "linuxppc-dev@lists.ozlabs.org" , Xie Shaohui-B21989 , Chen Yuanquan-B41889 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2012-07-23 at 23:08 +0000, Tabi Timur-B04825 wrote: > > > And ? Who cares ? Drivers who know about a 32-bit limitations use > > GFP_DMA32, that's what is expected, don't mess around with ZONE_DMA. > > I thought drivers are supposed to set a dma_mask, and > dma_alloc_coherent() is supposed to use that to figure out how to > honor that mask. Sure, that's the right way to go, I meant bits of pieces of the infrastructure in between. Why diverge from other archs gratuituously here ? Cheers, Ben.