[U-Boot] [PATCH v5 6/8] x86: qemu: fix cpu device in smp boot

Miao Yan yanmiaobest at gmail.com
Wed Jan 6 08:05:25 CET 2016


2016-01-06 8:25 GMT+08:00 Simon Glass <sjg at chromium.org>:
> On 4 January 2016 at 01:00, Miao Yan <yanmiaobest at gmail.com> wrote:
>> Currently, when booting with more that one CPU enabled, U-Boot scans
>> 'cpu' node in device tree and calculates CPU number. This does not scale
>> well as changing CPU number also requires modifying .dts and re-compiling
>> U-Boot.
>>
>> This patch uses fw_cfg interface provided by QEMU to detect online CPU
>> number at runtime, and dynamically adds 'cpu' device to U-Boot's driver
>> model.
>>
>> Signed-off-by: Miao Yan <yanmiaobest at gmail.com>
>> ---
>>  arch/x86/cpu/mp_init.c  | 73 +++++++++++++++++++++++++++++++++++++++++++++++++
>>  arch/x86/cpu/qemu/cpu.c |  5 ----
>>  2 files changed, 73 insertions(+), 5 deletions(-)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> Maybe cpu_qemu_bind() isn't needed now?

Right, this can be removed.

Hi Bin, do you have any comments on this one ?

Thanks,
Miao


More information about the U-Boot mailing list