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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marin Mitov
Date: Thursday, August 26, 2010 - 3:14 am

On Thursday, August 26, 2010 12:43:22 pm FUJITA Tomonori wrote:

Here I agree with you: "that can be access exclusively by a certain device"


Here I disagree with you: "that can be used for any device for a device".
Reserved coherent memory can be only and exclusively used by 
the __same__ device whose device->dma_mem is touched. No other devices 
are influenced because their device->dma_mem are NULL. and 
dma_alloc_from_coherent() is not invoked for them. That is why I think
this hack is not dangerous. If some device driver decide to reserve some
chunk of memory it is for its private use and no other device in the system
is influenced.


Here I agree with you, but for now we have no alternative in media/video
framework.


Yes, it is just a temporary solution. Just enhancing an existing temporary solution.

Thanks,

Marin Mitov

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Guennadi Liakhovetski, (Fri Aug 20, 1:05 pm)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Guennadi Liakhovetski, (Thu Aug 26, 2:06 am)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Uwe Kleine-König, (Thu Aug 26, 2:17 am)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Guennadi Liakhovetski, (Thu Aug 26, 2:45 am)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Uwe Kleine-König, (Thu Aug 26, 2:53 am)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Marin Mitov, (Thu Aug 26, 3:14 am)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Russell King - ARM Linux, (Thu Aug 26, 10:49 am)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Russell King - ARM Linux, (Thu Aug 26, 10:54 am)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Uwe Kleine-König, (Thu Aug 26, 9:41 pm)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Uwe Kleine-König, (Thu Aug 26, 10:19 pm)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Uwe Kleine-König, (Thu Aug 26, 11:13 pm)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Uwe Kleine-König, (Thu Aug 26, 11:38 pm)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., Guennadi Liakhovetski, (Sun Oct 10, 11:21 am)
Re: [RFC][PATCH] add dma_reserve_coherent_memory()/dma_fre ..., KAMEZAWA Hiroyuki, (Wed Oct 13, 1:04 am)