RFC: ARM Boot standard for passing device tree blob
Dave P. Martin
Dave.Martin at arm.com
Tue Mar 30 09:32:24 EDT 2010
Hi,
> -----Original Message-----
> From: Jamie Lokier [mailto:jamie at shareable.org]
> Sent: 30 March 2010 01:27
[...]
> > It could be worth clarifying that the L1 I-cache is the
> _only_ cache
> > which is permitted to be enabled at kernel entry, and that
> all other
> > caches in the system must be disabled.
>
> Catalin said that on some platforms, the L2 cache is
> unavoidably enabled by the time of kernel boot and it cannot
> be turned off.
> So the above cannot be satisfied.
OK, good catch--- that slipped my mind.
I think the real requirement is that the kernel needs to be able to do
I-side/D-side synchronisation at L1 (so that the kernel decompression phase
works). Other than this, we shouldn't need to do anything except access RAM
until the device tree framework has discovered the cache configuration.
So it seems adequate to require that:
* The MMU must be off
* For architected caches (i.e., those managed via CP15 operations):
* I-caches may be turned on
* D-caches and unified caches must be clean, invalidated and turned
off
* For non-architectured caches (those managed via implementation-specific
mechanisms):
* Wherever possible, these caches should be clean, invalidated and
turned off. Otherwise:
* external unified caches must be clean and invalidated (the common
case)
* external Harvard caches must be clean, invalidated and turned off
(don't know if we have observed external Harvard caches in any design)
I'll try and get additional clarification from my side on whether we're
missing any important issue here.
Cheers
---Dave
More information about the linux-arm-kernel
mailing list