From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subash Patel Subject: Re: [PATCH 0/2] ARM: dma-mapping: Fix mmap support for coherent buffers Date: Mon, 26 Mar 2012 16:34:28 +0530 Message-ID: <4F704D3C.50003@gmail.com> References: <08af01cd08ee$2fd04770$8f70d650$%szyprowski@samsung.com> <1332505563-17646-1-git-send-email-m.szyprowski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1332505563-17646-1-git-send-email-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Marek Szyprowski Cc: linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Russell King - ARM Linux , Arnd Bergmann , Benjamin Herrenschmidt , Kyungmin Park , linaro-mm-sig-cunTk1MwBs8s++Sfvej+rw@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Krishna Reddy , Andrzej Pietrasiewicz , KyongHo Cho , Chunsang Jeong , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-arch.vger.kernel.org Hi Marek, I have tested these patch series for origen board, and they mmap the buffers to user-space for the coherent pool. You can add: Tested-By: Subash Patel Regards, Subash On 03/23/2012 05:56 PM, Marek Szyprowski wrote: > Hello, > > This patchset contains patches to fix broken mmap operation for memory > buffers allocated from 'dma_declare_coherent' pool after applying my dma > mapping redesign patches [1]. These issues have been reported by Subash > Patel. > > [1] http://thread.gmane.org/gmane.linux.kernel.cross-arch/12819 > > Patch summary: > > Marek Szyprowski (2): > common: add dma_mmap_from_coherent() function > arm: dma-mapping: use dma_mmap_from_coherent() > > arch/arm/mm/dma-mapping.c | 3 ++ > drivers/base/dma-coherent.c | 42 ++++++++++++++++++++++++++++++++++++ > include/asm-generic/dma-coherent.h | 4 ++- > 3 files changed, 48 insertions(+), 1 deletions(-) > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:44697 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757301Ab2CZLEh (ORCPT ); Mon, 26 Mar 2012 07:04:37 -0400 Message-ID: <4F704D3C.50003@gmail.com> Date: Mon, 26 Mar 2012 16:34:28 +0530 From: Subash Patel MIME-Version: 1.0 Subject: Re: [PATCH 0/2] ARM: dma-mapping: Fix mmap support for coherent buffers References: <08af01cd08ee$2fd04770$8f70d650$%szyprowski@samsung.com> <1332505563-17646-1-git-send-email-m.szyprowski@samsung.com> In-Reply-To: <1332505563-17646-1-git-send-email-m.szyprowski@samsung.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Marek Szyprowski Cc: linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-samsung-soc@vger.kernel.org, iommu@lists.linux-foundation.org, Kyungmin Park , Arnd Bergmann , Joerg Roedel , Russell King - ARM Linux , Chunsang Jeong , Krishna Reddy , KyongHo Cho , Andrzej Pietrasiewicz , Benjamin Herrenschmidt , Konrad Rzeszutek Wilk , Hiroshi Doyu Message-ID: <20120326110428.fIfwnCNkkysaRbVTxGAminRv8S47z6Dj8fS3td1qNOw@z> Hi Marek, I have tested these patch series for origen board, and they mmap the buffers to user-space for the coherent pool. You can add: Tested-By: Subash Patel Regards, Subash On 03/23/2012 05:56 PM, Marek Szyprowski wrote: > Hello, > > This patchset contains patches to fix broken mmap operation for memory > buffers allocated from 'dma_declare_coherent' pool after applying my dma > mapping redesign patches [1]. These issues have been reported by Subash > Patel. > > [1] http://thread.gmane.org/gmane.linux.kernel.cross-arch/12819 > > Patch summary: > > Marek Szyprowski (2): > common: add dma_mmap_from_coherent() function > arm: dma-mapping: use dma_mmap_from_coherent() > > arch/arm/mm/dma-mapping.c | 3 ++ > drivers/base/dma-coherent.c | 42 ++++++++++++++++++++++++++++++++++++ > include/asm-generic/dma-coherent.h | 4 ++- > 3 files changed, 48 insertions(+), 1 deletions(-) >