Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Anyone noticed that there are a lot of cache flushes after kunmap/kunmap_atomic is called?
@ 2008-08-07  2:09 David VomLehn
  2008-08-08  8:24 ` Ralf Baechle
  2008-08-12  9:57 ` Kevin D. Kissell
  0 siblings, 2 replies; 6+ messages in thread
From: David VomLehn @ 2008-08-07  2:09 UTC (permalink / raw)
  To: linux-mips@linux-mips.org

On the MIPS processor, cache flushing is done based on virtual addresses. 
However, in the Linux kernel, there are a lot of places where memory is mapped 
with kmap or kmap_atomic, then unmapped with the corresponding kunmap or 
kunmap_atomic and only *then* is the cache flushed. In other words, we only flush 
the cache after we have dropped the mapping of memory into a virtual address. I 
think this is generally wrong.

This may really only affect those of us who have enabled high memory, but it's 
pretty prevalent in kernel code. We noted this before, but have apparently just 
been bitten by it. Is it just me or is there a fairly widespread problem for 
processors that flush the cache using virtual addresses?




     - - - - -                              Cisco                            - - - - -         
This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is solely 
intended for the named addressee (or a person responsible for delivering it to 
the addressee). If you are not the intended recipient of this message, you are 
not authorized to read, print, retain, copy or disseminate this message or any 
part of it. If you have received this e-mail in error, please notify the sender 
immediately by return e-mail and delete it from your computer.

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

end of thread, other threads:[~2008-08-12  9:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-07  2:09 Anyone noticed that there are a lot of cache flushes after kunmap/kunmap_atomic is called? David VomLehn
2008-08-08  8:24 ` Ralf Baechle
2008-08-08 14:41   ` Jon Fraser
2008-08-11 23:19     ` David VomLehn
2008-08-12  0:49       ` Jon Fraser
2008-08-12  9:57 ` Kevin D. Kissell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox