linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [BUG] v7_coherent_kern_range broken on big.LITTLE
@ 2013-02-14 17:07 Jon Medhurst (Tixy)
  2013-02-14 17:14 ` Russell King - ARM Linux
  2013-02-14 17:16 ` Will Deacon
  0 siblings, 2 replies; 6+ messages in thread
From: Jon Medhurst (Tixy) @ 2013-02-14 17:07 UTC (permalink / raw)
  To: linux-arm-kernel

The function v7_coherent_kern_range uses the macro icache_line_size to
read the current CPUs icache line size for the purpose of invalidating
all cache lines in the given range.

Unfortunately, on the TC2 big.LITTLE test chip, the A15 icache line size
is 64 bytes, but the A7 size is only 32 bytes. So when the function
executes on the A15 it will miss out every alternate cache line for the
A7.

Presumably all the functions which use dcache_line_size are also
potentially buggy?

This problem was discovered whilst investigating why function tracer was
crashing in an unpredictable fashion. This was discussed previously but
the root cause misdiagnosed, see http://lkml.org/lkml/2012/12/6/261

-- 
Tixy


 

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

end of thread, other threads:[~2013-02-15 12:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-14 17:07 [BUG] v7_coherent_kern_range broken on big.LITTLE Jon Medhurst (Tixy)
2013-02-14 17:14 ` Russell King - ARM Linux
2013-02-14 17:16 ` Will Deacon
2013-02-15 10:04   ` Jon Medhurst (Tixy)
2013-02-15 10:33     ` Lorenzo Pieralisi
2013-02-15 12:06       ` Jon Medhurst (Tixy)

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).