linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Query: Multiple Mappings to Mem and ARMV6+
@ 2012-02-16 16:41 viresh kumar
  2012-02-16 17:15 ` Catalin Marinas
  0 siblings, 1 reply; 10+ messages in thread
From: viresh kumar @ 2012-02-16 16:41 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Guys,

Sorry for starting the long old thread again, but i have to start it as i
was a bit confused. :(

We know that we can't have multiple mappings with different attributes
to the same physical memory on ARMv6+ machines due to speculative
prefetch.

So, we have following kind of mappings in kernel now (please correct me
if i am wrong):
- Low Mem: Mapped at boot time to - Normal Cacheable - Bufferable
- ioremap() - blocked on Low Mem, so that we don't create Device type mapping
to same mem
- dma_alloc_coherent() and others:
         - Without DMA_MEM_BUFFERABLE selected - gives strongly ordered mem
          (i.e. Non cacheable - Non Bufferable)
         - With DMA_MEM_BUFFERABLE selected - gives Normal - Non cacheable -
           Bufferable mapping
         - Maybe some other too...

I have a doubt with the last mapping mentioned above. We have two mappings
possibly to the same physical memory, with different attributes: One
is Cacheable
and other one is not.

Is this allowed by ARM? Because the patch in which Russell blocked ioremap on
Low Mem, he clearly mentioned that these attributes are also important and they
should be same.

Sorry if i am missing something :)

--
viresh

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-02-20 17:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-16 16:41 Query: Multiple Mappings to Mem and ARMV6+ viresh kumar
2012-02-16 17:15 ` Catalin Marinas
2012-02-16 17:22   ` Russell King - ARM Linux
2012-02-16 17:29     ` Catalin Marinas
2012-02-16 17:36       ` Russell King - ARM Linux
2012-02-16 17:37   ` viresh kumar
2012-02-16 17:48     ` Catalin Marinas
2012-02-16 18:14       ` viresh kumar
2012-02-20 11:00         ` Catalin Marinas
     [not found]           ` <CAOh2x=nqancNQ1sHpcPFMm+rcPGYEPZ5-YvKeOo6N_TE+fOjTw@mail.gmail.com>
2012-02-20 17:57             ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).