Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-10-14 Thread FUJITA Tomonori
On Wed, 13 Oct 2010 19:42:56 +0300 Marin Mitov mi...@issp.bas.bg wrote: KAMEZAWA posted a patch to improve the generic page allocator to allocate physically contiguous memory. He said that he can push it into mainline. I said I do make an effort ;) New one here.

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-10-10 Thread FUJITA Tomonori
On Fri, 20 Aug 2010 14:50:12 +0300 Marin Mitov mi...@issp.bas.bg wrote: On Friday, August 20, 2010 11:35:06 am FUJITA Tomonori wrote: On Fri, 20 Aug 2010 11:13:45 +0300 Marin Mitov mi...@issp.bas.bg wrote: This tric is already used in drivers/staging/dt3155v4l.c

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-28 Thread FUJITA Tomonori
On Sat, 28 Aug 2010 09:14:25 +0300 Marin Mitov mi...@issp.bas.bg wrote: On Friday, August 27, 2010 09:32:14 am FUJITA Tomonori wrote: On Fri, 27 Aug 2010 09:23:21 +0300 Marin Mitov mi...@issp.bas.bg wrote: On Friday, August 27, 2010 08:57:59 am FUJITA Tomonori wrote: On Fri, 27 Aug

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-27 Thread FUJITA Tomonori
On Fri, 27 Aug 2010 07:19:07 +0200 Uwe Kleine-K$(D+S(Bnig u.kleine-koe...@pengutronix.de wrote: Hey, On Fri, Aug 27, 2010 at 02:00:17PM +0900, FUJITA Tomonori wrote: On Fri, 27 Aug 2010 06:41:42 +0200 Uwe Kleine-K$(D+S(Bnig u.kleine-koe...@pengutronix.de wrote: On Thu, Aug 26, 2010

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-27 Thread FUJITA Tomonori
On Fri, 27 Aug 2010 09:23:21 +0300 Marin Mitov mi...@issp.bas.bg wrote: On Friday, August 27, 2010 08:57:59 am FUJITA Tomonori wrote: On Fri, 27 Aug 2010 07:19:07 +0200 Uwe Kleine-K$(D+S(Bnig u.kleine-koe...@pengutronix.de wrote: Hey, On Fri, Aug 27, 2010 at 02:00:17PM +0900

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-26 Thread FUJITA Tomonori
On Thu, 26 Aug 2010 09:04:14 +0300 Marin Mitov mi...@issp.bas.bg wrote: On Thursday, August 26, 2010 08:40:47 am FUJITA Tomonori wrote: On Fri, 20 Aug 2010 14:50:12 +0300 Marin Mitov mi...@issp.bas.bg wrote: On Friday, August 20, 2010 11:35:06 am FUJITA Tomonori wrote: On Fri, 20

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-26 Thread FUJITA Tomonori
On Thu, 26 Aug 2010 11:06:20 +0200 (CEST) Guennadi Liakhovetski g.liakhovet...@gmx.de wrote: On Thu, 26 Aug 2010, FUJITA Tomonori wrote: On Thu, 26 Aug 2010 09:04:14 +0300 Marin Mitov mi...@issp.bas.bg wrote: On Thursday, August 26, 2010 08:40:47 am FUJITA Tomonori wrote: On Fri

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-26 Thread FUJITA Tomonori
On Thu, 26 Aug 2010 10:01:52 +0300 Marin Mitov mi...@issp.bas.bg wrote: If you add something to the videobuf-dma-contig API, that's fine by me because drivers/media/video/videobuf-dma-contig.c uses the own structure and plays with dma_alloc_coherent. As long as a driver doesn't touch

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-26 Thread FUJITA Tomonori
On Thu, 26 Aug 2010 11:45:58 +0200 (CEST) Guennadi Liakhovetski g.liakhovet...@gmx.de wrote: On Thu, 26 Aug 2010, FUJITA Tomonori wrote: Why can't you revert a commit that causes the regression? See this reply, and the complete thread too. http://marc.info/?l=linux-shm=128130485208262w

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-26 Thread FUJITA Tomonori
On Thu, 26 Aug 2010 11:53:11 +0200 Uwe Kleine-K$(D+S(Bnig u.kleine-koe...@pengutronix.de wrote: We have currently a number of boards broken in the mainline. They must be fixed for 2.6.36. I don't think the mentioned API will do this for us. So, as I suggested earlier, we need

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-26 Thread FUJITA Tomonori
On Thu, 26 Aug 2010 18:54:40 +0100 Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Thu, Aug 26, 2010 at 07:00:24PM +0900, FUJITA Tomonori wrote: On Thu, 26 Aug 2010 11:53:11 +0200 Uwe Kleine-K$(D+S(Bnig u.kleine-koe...@pengutronix.de wrote: We have currently a number

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-26 Thread FUJITA Tomonori
On Fri, 27 Aug 2010 06:41:42 +0200 Uwe Kleine-K$(D+S(Bnig u.kleine-koe...@pengutronix.de wrote: Hello, On Thu, Aug 26, 2010 at 07:00:24PM +0900, FUJITA Tomonori wrote: On Thu, 26 Aug 2010 11:53:11 +0200 Uwe Kleine-K$(D+S(Bnig u.kleine-koe...@pengutronix.de wrote: We have

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-25 Thread FUJITA Tomonori
On Fri, 20 Aug 2010 14:50:12 +0300 Marin Mitov mi...@issp.bas.bg wrote: On Friday, August 20, 2010 11:35:06 am FUJITA Tomonori wrote: On Fri, 20 Aug 2010 11:13:45 +0300 Marin Mitov mi...@issp.bas.bg wrote: This tric is already used in drivers/staging/dt3155v4l.c

Re: [PATCH/RFCv3 0/6] The Contiguous Memory Allocator framework

2010-08-20 Thread FUJITA Tomonori
On Fri, 20 Aug 2010 08:38:10 +0200 **UNKNOWN CHARSET** m.nazarew...@samsung.com wrote: On Fri, 20 Aug 2010 05:12:50 +0200, FUJITA Tomonori fujita.tomon...@lab.ntt.co.jp wrote: 1. Integration on API level meaning that some kind of existing API is used instead of new cma_*() calls. CMA

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-20 Thread FUJITA Tomonori
On Thu, 19 Aug 2010 18:18:35 +0300 Marin Mitov mi...@issp.bas.bg wrote: struct device contains a member: struct dma_coherent_mem *dma_mem; to hold information for a piece of memory declared dma-coherent. Alternatively the same member could also be used to hold preallocated dma-coherent memory

Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_free_reserved_memory() API

2010-08-20 Thread FUJITA Tomonori
On Fri, 20 Aug 2010 11:13:45 +0300 Marin Mitov mi...@issp.bas.bg wrote: This tric is already used in drivers/staging/dt3155v4l.c dt3155_alloc_coherent()/dt3155_free_coherent() Here proposed for general use by popular demand from video4linux folks. Helps for videobuf-dma-contig

Re: [PATCH/RFCv3 0/6] The Contiguous Memory Allocator framework

2010-08-20 Thread FUJITA Tomonori
On Fri, 20 Aug 2010 10:10:45 +0200 **UNKNOWN CHARSET** m.nazarew...@samsung.com wrote: I wrote similar to the existing API', not reuse the existing API. Yes, but I don't really know what you have in mind. CMA is similar to various APIs in various ways: it's similar to any allocator since

Re: [PATCH/RFCv3 0/6] The Contiguous Memory Allocator framework

2010-08-19 Thread FUJITA Tomonori
On Wed, 18 Aug 2010 12:01:35 +0900 Kyungmin Park kyungmin.p...@samsung.com wrote: Are there any comments or ack? We hope this method included at mainline kernel if possible. It's really needed feature for our multimedia frameworks. You got any comments from mm people? Virtually, this adds

Re: [PATCH/RFCv3 0/6] The Contiguous Memory Allocator framework

2010-08-19 Thread FUJITA Tomonori
We hope this method included at mainline kernel if possible. It's really needed feature for our multimedia frameworks. You got any comments from mm people? Virtually, this adds a new memory allocator implementation that steals some memory from memory allocator during boot process.

Re: [PATCHv2 2/4] mm: cma: Contiguous Memory Allocator added

2010-07-27 Thread FUJITA Tomonori
On Tue, 27 Jul 2010 06:58:42 -0600 Jonathan Corbet cor...@lwn.net wrote: On Tue, 27 Jul 2010 14:45:58 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: How does one obtain the CPU address of this memory in order for the CPU to access it? Right, we did not cover such case. In

Re: [PATCH] Staging: saa7134-go7007: replace dma_sync_single with dma_sync_single_for_cpu

2010-05-13 Thread FUJITA Tomonori
tree. Thanks, Pete Eberlein On Thu, 2010-05-13 at 12:45 +0900, FUJITA Tomonori wrote: dma_sync_single() is deprecated and will be removed soon. No functional change since dma_sync_single is the wrapper of dma_sync_single_for_cpu. saa7134-go7007.c is commented out but anyway let's

Re: [PATCH] Staging: saa7134-go7007: replace dma_sync_single with dma_sync_single_for_cpu

2010-05-13 Thread FUJITA Tomonori
On Thu, 13 May 2010 22:27:25 -0300 Mauro Carvalho Chehab mche...@redhat.com wrote: FUJITA Tomonori wrote: On Thu, 13 May 2010 15:25:24 -0700 Pete Eberlein p...@sensoray.com wrote: Thanks, Tomonori. Does this need to get submitted to the linux-media tree as well, or will this patch

Re: [PATCH] vino: replace dma_sync_single with dma_sync_single_for_cpu

2009-05-31 Thread FUJITA Tomonori
On Thu, 28 May 2009 08:02:14 +0200 Jiri Slaby jirisl...@gmail.com wrote: On 05/28/2009 03:10 AM, FUJITA Tomonori wrote: This replaces dma_sync_single() with dma_sync_single_for_cpu() because dma_sync_single() is an obsolete API; include/linux/dma-mapping.h says: /* Backwards compat

[PATCH] vino: replace dma_sync_single with dma_sync_single_for_cpu

2009-05-27 Thread FUJITA Tomonori
Signed-off-by: FUJITA Tomonori fujita.tomon...@lab.ntt.co.jp --- drivers/media/video/vino.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index 43e0998..97b082f 100644 --- a/drivers/media/video/vino.c +++ b/drivers