Skip to content

Hacks to allow booting ARM SMP kernel on UP ARMv7

Tony Lindgren linux-arm-kernel linux-omap 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 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.

Read the v1 thread

Cover letter [PATCH 0/4] Hacks to allow booting ARM SMP kernel on UP ARMv7
Quoted 6 lines · Russell King - ARM Linux
Quoted 4 lines · Tony Lindgren

Here are some experimental patches to allow booting ARMv7 SMP kernel on UP to some extent. Posting these early in case it is of any help as I know at least Bryan Wu is working on similar issues.

Quoted 6 lines

I think these are compeltely the wrong direction. First thing to realise is that XIP in the "SMP and UP in one kernel" is not really practical - I'm not sure that many people who want that kind of flexibility also want XIP too.

So let's forget about the kernel text being read-only.

OK, at least for me.

Quoted 3 lines

The second thing to realise is that most of the SMP dependencies are in assembly - and we can make lists of instructions and their modified versions that would be necessary to boot a SMP kernel on UP.

OK cool.

Quoted 2 lines

So something like this will do (though note that not everywhere has been fixed up - such as the page table flags - or this patch tested yet.)

Great, will give it a try hopefully tomorrow. Sounds like that's the way to deal with fixing up things when booting up older UP ARMv6 without the 32v6 support :)

Quoted 3 lines

If we don't want the SMP-on-UP support for SMP kernels (it's not actually all that big - around 512 bytes) then we can discard the .smpalt.init section and the __fixup_smp code.

OK

Regards,

Tony