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: iommu@lists.linux-foundation.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(-) >