linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC,PATCH 0/2] Allow late mdesc detection
@ 2010-07-12  3:03 Jeremy Kerr
  2010-07-12  3:03 ` [RFC,PATCH 1/2] arm: don't check MMU status in every addruart macro Jeremy Kerr
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Jeremy Kerr @ 2010-07-12  3:03 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

Currently, we probe for a mdesc early in boot. At this early stage, the
only thing we use the mdesc for is to determine the debug page mapping.

However, the debug addresses (phys and virt) need to be coded into the
addruart macro anyway; the dynamic probing is only going to tell us what
we already know.

These (experimental!) changes allow us to use the addruart macros to
find the debug mapping addresses, rather than pulling them out of the
mdesc. This means that the addresses are only kept in the one place, and
that we don't need the mdesc nearly as early.

The first change updates all of the addruart macros to take an argument
in the first macro register, indicating whether we want a physical or
virtual address returned. This argument replaces the check present
in the existing macro implementations.

The second change updates the debug setup routine to use the addruart
macro to establish the debug mapping, now that we invoke the macro to
find the phyical and virtual addresses.

This allows us to delay the requirement to have a mdesc available until
much later. For example, we can parse one from the device tree once
we've reached C code.

Tested on versatile only. May break OMAP1/2, as the addruart macros are
more complex on these platforms. I'd appreciate input from OMAP folks
who may well tell me that this isn't possible.

These patches are not suitable for merging yet (no documentation updates
for the new format of addruart, very little testing, no handling of
DEBUG_ICEDCC). More of a request for you folks to tell me whether or
not this is a stupid idea :)

Cheers,


Jeremy

---
Jeremy Kerr (2):
      arm: don't check MMU status in every addruart macro
      arm: use addruart macro to establish debug mappings

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

end of thread, other threads:[~2010-07-14 15:36 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12  3:03 [RFC,PATCH 0/2] Allow late mdesc detection Jeremy Kerr
2010-07-12  3:03 ` [RFC,PATCH 1/2] arm: don't check MMU status in every addruart macro Jeremy Kerr
2010-07-12 13:32   ` [RFC, PATCH " Nicolas Pitre
2010-07-13  1:39     ` Jeremy Kerr
2010-07-12  3:03 ` [RFC,PATCH 2/2] arm: use addruart macro to establish debug mappings Jeremy Kerr
2010-07-12 13:42   ` [RFC, PATCH " Nicolas Pitre
2010-07-12 13:52   ` [RFC,PATCH " Russell King - ARM Linux
2010-07-13  1:42     ` Jeremy Kerr
2010-07-12  3:39 ` [RFC,PATCH 0/2] Allow late mdesc detection Nicolas Pitre
2010-07-12  8:05   ` Jeremy Kerr
2010-07-12  8:39     ` Eric Miao
2010-07-12 13:11     ` Nicolas Pitre
2010-07-13  5:44       ` Eric Miao
2010-07-13  7:28         ` Russell King - ARM Linux
2010-07-13  9:02           ` Jeremy Kerr
2010-07-13  9:33             ` Russell King - ARM Linux
2010-07-14  3:25               ` Nicolas Pitre
2010-07-14  4:11               ` Jeremy Kerr
2010-07-14 15:36                 ` Bryan Huntsman

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