From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from co1outboundpool.messaging.microsoft.com (co1ehsobe001.messaging.microsoft.com [216.32.180.184]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "Microsoft Secure Server Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 14C772C035E for ; Tue, 24 Jul 2012 09:15:49 +1000 (EST) Message-ID: <500DDB1B.9030900@freescale.com> Date: Mon, 23 Jul 2012 18:15:39 -0500 From: Timur Tabi MIME-Version: 1.0 To: Benjamin Herrenschmidt Subject: Re: [PATCH] powerpc/mm: add ZONE_NORMAL zone for 64 bit kernel 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> <1343085145.2957.44.camel@pasglop> In-Reply-To: <1343085145.2957.44.camel@pasglop> Content-Type: text/plain; charset="ISO-8859-1" 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: , Benjamin Herrenschmidt wrote: > 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 ? Ok, I'm confused. Are you suggesting that drivers do this: u64 fsl_dma_dmamask = DMA_BIT_MASK(36); dev->dma_mask = &fsl_dma_dmamask; v = dma_alloc_coherent(dev, ..., GFP_DMA32); That is, set the DMA mask *and* set GFP_DMA32? That seems redundant. I don't understand why a driver would set GFP_DMA32 if it has already set the mask. -- Timur Tabi Linux kernel developer at Freescale