Re: [PATCH] aspeed: Add boot stub for smp booting

2020-04-08 Thread Joel Stanley
On Tue, 7 Apr 2020 at 08:26, Cédric Le Goater wrote: > > On 4/7/20 10:19 AM, Philippe Mathieu-Daudé wrote: > > > > > > On 4/7/20 9:38 AM, Joel Stanley wrote: > >> On Tue, 7 Apr 2020 at 07:25, Joel Stanley wrote: > >>> static void write_boot_rom(DriveInfo *dinfo, hwaddr addr, size_t > >>> rom_

Re: [PATCH] aspeed: Add boot stub for smp booting

2020-04-07 Thread Cédric Le Goater
On 4/7/20 10:19 AM, Philippe Mathieu-Daudé wrote: > > > On 4/7/20 9:38 AM, Joel Stanley wrote: >> On Tue, 7 Apr 2020 at 07:25, Joel Stanley wrote: >>> >>> This is a boot stub that is similar to the code u-boot runs, allowing >>> the kernel to boot the secondary CPU. >>> >>> u-boot works as follo

Re: [PATCH] aspeed: Add boot stub for smp booting

2020-04-07 Thread Philippe Mathieu-Daudé
On 4/7/20 9:38 AM, Joel Stanley wrote: On Tue, 7 Apr 2020 at 07:25, Joel Stanley wrote: This is a boot stub that is similar to the code u-boot runs, allowing the kernel to boot the secondary CPU. u-boot works as follows: 1. Initialises the SMP mailbox area in the SCU at 0x1e6e2180 with

Re: [PATCH] aspeed: Add boot stub for smp booting

2020-04-07 Thread Joel Stanley
On Tue, 7 Apr 2020 at 07:25, Joel Stanley wrote: > > This is a boot stub that is similar to the code u-boot runs, allowing > the kernel to boot the secondary CPU. > > u-boot works as follows: > > 1. Initialises the SMP mailbox area in the SCU at 0x1e6e2180 with default > values > > 2. Copies a

[PATCH] aspeed: Add boot stub for smp booting

2020-04-07 Thread Joel Stanley
This is a boot stub that is similar to the code u-boot runs, allowing the kernel to boot the secondary CPU. u-boot works as follows: 1. Initialises the SMP mailbox area in the SCU at 0x1e6e2180 with default values 2. Copies a stub named 'mailbox_insn' from flash to the SCU, just above the