Allow late mdesc detection, v4
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 3 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] Allow late mdesc detection, v4
Quoted 20 lines · Jeremy Kerr
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 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 return both physical and virtual addresses. I've used 'rp' and 'rv' as the macro arguments to indicate which address goes where
The second change updates the debug setup routine to use the addruart macro to establish the debug mapping, now that we can invoke the macro to find the phyical and virtual addresses.
Quoted 8 lines
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.
As they have more complex and/or new debug macros, the following platforms could do with extra testing:
* omap (mach-omap1 and mach-omap2)
* davinci
Tested on a couple flavors of DaVinci SoCs, so for davinci
Quoted 33 lines
* tegra
Cheers,
Jeremy
v4:
* updates for 2.6.36
* add changes for tegra
* update davinci
* include fixes for omap[12]
* drop mdesc changesv3:
* only establish page mapping if !DEBUG_ICEDCCv2:
* return both phys and virt addresses from addruart
* mask unneeded bits from uart physical address in mapping setup
* removeio_pg_offstandphys_io, in a separate patch---
Jeremy Kerr (3):
arm/debug: consolidate addruart macros forCONFIG_DEBUG_ICEDCC
arm: return both physical and virtual addresses from addruart
arm: use addruart macro to establish debug mappings_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel