From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with ESMTP id 62B4F6B0169 for ; Wed, 24 Aug 2011 11:42:00 -0400 (EDT) Received: by mail-ey0-f169.google.com with SMTP id 22so1004559eye.0 for ; Wed, 24 Aug 2011 08:41:37 -0700 (PDT) MIME-Version: 1.0 From: "Aguirre, Sergio" Date: Wed, 24 Aug 2011 10:41:17 -0500 Message-ID: Subject: Re: [PATCH 8/8] ARM: S5PV210: example of CMA private area for FIMC device on Goni board Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Marek Szyprowski , Kyungmin Park 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 , Russell King , Andrew Morton Hi Marek/Kyungmin, On Fri, Aug 19, 2011 at 04:27:44PM +0200, Marek Szyprowski wrote: > This patch is an example how device private CMA area can be activated. > It creates one CMA region and assigns it to the first s5p-fimc device on > Samsung Goni S5PC110 board. > > Signed-off-by: Marek Szyprowski > Signed-off-by: Kyungmin Park > --- > arch/arm/mach-s5pv210/mach-goni.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c > index 14578f5..f766c45 100644 > --- a/arch/arm/mach-s5pv210/mach-goni.c > +++ b/arch/arm/mach-s5pv210/mach-goni.c > @@ -26,6 +26,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -857,6 +858,9 @@ static void __init goni_map_io(void) > static void __init goni_reserve(void) > { > s5p_mfc_reserve_mem(0x43000000, 8 << 20, 0x51000000, 8 << 20); > + > + /* Create private 16MiB contiguous memory area for s5p-fimc.0 device */ > + dma_declare_contiguous(&s5p_device_fimc0.dev, 16*SZ_1M, 0); This is broken, since according to patch #0006, dma_declare_contiguous requires a 4th param (limit) which you're not providing here. Regards, Sergio > } > > static void __init goni_machine_init(void) > -- > 1.7.1.569.g6f426 -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org