[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank |
Date: |
Wed, 18 Jan 2012 14:53:15 +0000 |
On 18 January 2012 14:35, Mark Langsdorf <address@hidden> wrote:
> I can set the smp_loader code so that I can boot 2 cpus
> and verify their existence in /proc/cpuinfo, but I can't
> get 3 cpus to boot at all, no matter how I hack the existing
> arm_boot code.
Right, multiple secondary cores requires multiple addresses
to be polled which we don't support in arm_boot.c at the moment.
> Is there a good example of how to write secondary smp boot
> code other than arm_boot.c? Should I just expect to pull
> most of arm_boot.c into highbank and adjust from there? I
> don't want to duplicate code like that, but I need more
> flexibility than I can easily add to arm_boot.c.
Nope, I'm afraid you're the first one to run into this.
arm_boot.c started off as just implementing the realview
secondary boot protocol, and exynos4 and vexpress have
been close enough to piggyback on it. So highbank is the
first board that's different enough to need its own code.
A big chunk of arm_boot.c is the primary CPU boot code,
which should be standard for all arm platforms, so that
shouldn't need to change. So we just need a reasonably
clean solution for a platform to provide its own secondary
boot code. I'm vaguely thinking about providing a hook
function for 'write secondary boot code' and one for
'post-cpu-reset hook for secondary cpus', which would go
in the "if (info->nb_cpus > 1) {...}" condition in
arm_load_kernel() and in the else-clause of "if (env ==
first_cpu) in do_cpu_reset().
Can you try something along those lines?
thanks
-- PMM
- Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC, (continued)
- Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC, Peter Maydell, 2012/01/13
- Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC, Andreas Färber, 2012/01/13
- Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC, Alexander Graf, 2012/01/13
- Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC, Andreas Färber, 2012/01/13
- Re: [Qemu-devel] [PATCH v9 0/6] arm: add support for Calxeda Highbank SoC, Alexander Graf, 2012/01/13
[Qemu-devel] [PATCH v10 0/5] arm: add support for Calxeda Highbank, Mark Langsdorf, 2012/01/17
- [Qemu-devel] [PATCH v10 1/5] Add xgmac ethernet model, Mark Langsdorf, 2012/01/17
- [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank, Mark Langsdorf, 2012/01/17
- Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank, Peter Maydell, 2012/01/17
- Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank, Mark Langsdorf, 2012/01/18
- Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank, Mark Langsdorf, 2012/01/18
- Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank, Peter Maydell, 2012/01/18
- [Qemu-devel] [PATCH][RFC] arm: add secondary cpu book callbacks to arm_boot.c, Mark Langsdorf, 2012/01/18
- Re: [Qemu-devel] [PATCH][RFC] arm: add secondary cpu book callbacks to arm_boot.c, Peter Maydell, 2012/01/18
Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank, Mark Langsdorf, 2012/01/18
Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank, Peter Maydell, 2012/01/18
Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank, Peter Maydell, 2012/01/18
Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank, Mark Langsdorf, 2012/01/18
[Qemu-devel] [PATCH v10 3/5] ahci: add support for non-PCI based controllers, Mark Langsdorf, 2012/01/17
[Qemu-devel] [PATCH v10 2/5] arm: make the number of GIC interrupts configurable, Mark Langsdorf, 2012/01/17