From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx179.postini.com [74.125.245.179]) by kanga.kvack.org (Postfix) with SMTP id CA5A86B0032 for ; Mon, 1 Jul 2013 09:01:20 -0400 (EDT) Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 1 Jul 2013 22:53:56 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id EEA0F2CE804A for ; Mon, 1 Jul 2013 23:01:13 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r61Ck7k73342766 for ; Mon, 1 Jul 2013 22:46:08 +1000 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r61D1CUo017173 for ; Mon, 1 Jul 2013 23:01:12 +1000 From: "Aneesh Kumar K.V" Subject: Re: [PATCH -V2 1/4] mm/cma: Move dma contiguous changes into a seperate config In-Reply-To: References: <1372410662-3748-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Date: Mon, 01 Jul 2013 18:31:10 +0530 Message-ID: <8738rytox5.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: Michal Nazarewicz , benh@kernel.crashing.org, paulus@samba.org, linux-mm@kvack.org, m.szyprowski@samsung.com Cc: linuxppc-dev@lists.ozlabs.org Michal Nazarewicz writes: > On Fri, Jun 28 2013, Aneesh Kumar K.V wrote: >> From: "Aneesh Kumar K.V" >> >> We want to use CMA for allocating hash page table and real mode area for >> PPC64. Hence move DMA contiguous related changes into a seperate config >> so that ppc64 can enable CMA without requiring DMA contiguous. >> >> Signed-off-by: Aneesh Kumar K.V > > Acked-by: Michal Nazarewicz > >> diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig >> index 07abd9d..74b7c98 100644 >> --- a/drivers/base/Kconfig >> +++ b/drivers/base/Kconfig >> @@ -202,11 +202,10 @@ config DMA_SHARED_BUFFER >> APIs extension; the file's descriptor can then be passed on to other >> driver. >> >> -config CMA >> - bool "Contiguous Memory Allocator" >> - depends on HAVE_DMA_CONTIGUOUS && HAVE_MEMBLOCK >> - select MIGRATION >> - select MEMORY_ISOLATION >> +config DMA_CMA >> + bool "DMA Contiguous Memory Allocator" >> + depends on HAVE_DMA_CONTIGUOUS >> + select CMA > > Just to be on the safe side, I'd add > > depends on HAVE_MEMBLOCK > > or change this so that it does not select CMA but depends on CMA. updated this to +config DMA_CMA + bool "DMA Contiguous Memory Allocator" + depends on HAVE_DMA_CONTIGUOUS && CMA > >> help >> This enables the Contiguous Memory Allocator which allows drivers >> to allocate big physically-contiguous blocks of memory for use with >> @@ -215,17 +214,7 @@ config CMA >> For more information see . >> If unsure, say "n". >> >> -if CMA >> - >> -config CMA_DEBUG >> - bool "CMA debug messages (DEVELOPMENT)" >> - depends on DEBUG_KERNEL >> - help >> - Turns on debug messages in CMA. This produces KERN_DEBUG >> - messages for every CMA call as well as various messages while >> - processing calls such as dma_alloc_from_contiguous(). >> - This option does not affect warning and error messages. >> - Thanks -aneesh -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org