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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Russell King - ARM Linux
Date: Thursday, August 26, 2010 - 10:49 am

On Thu, Aug 26, 2010 at 06:51:48PM +0900, FUJITA Tomonori wrote:

No.  ioremap on memory mapped by the kernel is just plain not permitted
with ARMv6 and ARMv7 architectures.

It's not something you can say "oh, need to find another way" because there
is _no_ software solution to having physical regions mapped multiple times
with different attributes.  It's an architectural restriction.

We can't unmap the kernel's memory mapping either, as I've already explained
several times this month - and I'm getting frustrated at having to keep
on explaining that point.

Just accept the plain fact that multiple mappings of the same physical
regions have become illegal.

What we need is another alternative other than using ioremap on memory
already mapped by the kernel - eg, by reserving a certain chunk of
memory for this purpose at boot time which his _never_ mapped by the
kernel, except via ioremap.
--
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 ..., 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)