Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756228Ab2BVASH (ORCPT ); Tue, 21 Feb 2012 19:18:07 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52469 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755466Ab2BVASF (ORCPT ); Tue, 21 Feb 2012 19:18:05 -0500 Date: Tue, 21 Feb 2012 16:18:02 -0800 From: Andrew Morton To: Marek Szyprowski Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linaro-mm-sig@lists.linaro.org, Michal Nazarewicz , Kyungmin Park , Russell King , KAMEZAWA Hiroyuki , Daniel Walker , Mel Gorman , Arnd Bergmann , Jesse Barker , Jonathan Corbet , Shariq Hasnain , Chunsang Jeong , Dave Hansen , Benjamin Gaignard , Rob Clark , Ohad Ben-Cohen Subject: Re: [PATCHv22 14/16] X86: integrate CMA with DMA-mapping subsystem Message-Id: <20120221161802.f6a28085.akpm@linux-foundation.org> In-Reply-To: <1329507036-24362-15-git-send-email-m.szyprowski@samsung.com> References: <1329507036-24362-1-git-send-email-m.szyprowski@samsung.com> <1329507036-24362-15-git-send-email-m.szyprowski@samsung.com> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1440 Lines: 39 On Fri, 17 Feb 2012 20:30:34 +0100 Marek Szyprowski wrote: > This patch adds support for CMA to dma-mapping subsystem for x86 > architecture that uses common pci-dma/pci-nommu implementation. This > allows to test CMA on KVM/QEMU and a lot of common x86 boxes. > > ... > > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -31,6 +31,7 @@ config X86 > select ARCH_WANT_OPTIONAL_GPIOLIB > select ARCH_WANT_FRAME_POINTERS > select HAVE_DMA_ATTRS > + select HAVE_DMA_CONTIGUOUS if !SWIOTLB > select HAVE_KRETPROBES > select HAVE_OPTPROBES > select HAVE_FTRACE_MCOUNT_RECORD I don't think it's compilable at all for x86_64, because that platform selects SWIOTLB. After a while I got it to compile for i386. arm didn't go so well, partly because arm allmodconfig is presently horked (something to do with Kconfig not setting PHYS_OFFSET) and partly because arm defconfig doesn't permit CMA to be set. Got bored, gave up. The patchset collides pretty seriously with pending dma api changes and pending arm changes in linux-next, so I didn't apply anything. This will all need to be looked at, please. I'll make do with reading the patches for now ;) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/