linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/1] ARM: mm: cache shareability tweak
@ 2016-04-12  8:14 Tero Kristo
  2016-04-12  8:14 ` [RFC 1/1] ARM: mm: add support for specifying shareability level via cmdline Tero Kristo
  2016-04-12 13:25 ` [RFC 0/1] ARM: mm: cache shareability tweak Mark Rutland
  0 siblings, 2 replies; 5+ messages in thread
From: Tero Kristo @ 2016-04-12  8:14 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

This RFC patch attempts to implement support for specifying cache
shareability setting via kernel cmdline. This is required at least
for TI keystone2 generation SoCs, where DMA masters are snooping on
the cache maintenance messages to maintain coherency. Currently we
are carrying an internal hack that modifies the macros via #ifdefs,
this is obviously bad as the same kernel image can only work with
keystone2 (or at least might be causing problems with other SoCs.)
It would be very much preferred to replace this hardcoded
implementation with a runtime solution.

Some obvious holes in this implementation:

1) during execution of arch/arm/kernel/head.S, the tweaked MMU shareability
   settings are not in place. However, I am not too sure how much that
   matters, as I am not sure what is mapped at this point. Kernel image
   mapping should not matter at least, as we typically should not be doing
   any DMA transfers from the kernel image. I would like some comments on
   this, if handling during head.S should be fixed also, how can this be
   done? Some hack under compressed/keystone-head.S?

2) the cmdline parameter could be something more descriptive

3) The single RFC patch should probably be split up a bit

- Tero

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

end of thread, other threads:[~2016-04-12 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-12  8:14 [RFC 0/1] ARM: mm: cache shareability tweak Tero Kristo
2016-04-12  8:14 ` [RFC 1/1] ARM: mm: add support for specifying shareability level via cmdline Tero Kristo
2016-04-12 13:25 ` [RFC 0/1] ARM: mm: cache shareability tweak Mark Rutland
2016-04-12 14:06   ` Tero Kristo
2016-04-12 15:00     ` Mark Rutland

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