Question about SMP support for ARM
Hi Ian & Julien,
It seems that Xen for ARM is not support SMP boot by default since "max_phys_cpus" is not set?
Cheers,
Baozi
Quoted 1 line · Chen Baozi
Hi Ian & Julien,
Hi,
Quoted 1 line
It seems that Xen for ARM is not support SMP boot by default since "
max_phys_cpus" is not set?
max_phys_cpus allows use to restrict the number of cpus handled by Xen. It's only used to set NR_CPUS. If the former is not set, Xen will use 128 as default value (see include/asm-arm/config.h).
Cheers,
Signature · 1 line
Julien Grall
Quoted 10 lines · Julien Grall
Quoted 1 line · Chen Baozi
Hi Ian & Julien,
Hi,
Quoted 1 line
It seems that Xen for ARM is not support SMP boot by default since "
max_phys_cpus" is not set?
max_phys_cpusallows use to restrict the number of cpus handled by Xen. It's only used to setNR_CPUS. If the former is not set, Xen will use 128 as default value (seeinclude/asm-arm/config.h).
Thanks.
Then I think I need to find out why the log says:
Waiting for 0 other CPUs to be ready
...
Brought up 1 CPUs
since I do have got 2 cores on OMAP5 and added "kick cpu" codes to mode_switch.S next.
Cheers,
Baozi
Quoted 5 lines
Cheers,
Signature · 1 line
Julien Grall
Quoted 14 lines · Chen Baozi
Quoted 10 lines · Julien Grall
Quoted 1 line · Chen Baozi
Hi Ian & Julien,
Hi,
Quoted 1 line
It seems that Xen for ARM is not support SMP boot by default since "
max_phys_cpus" is not set?
max_phys_cpusallows use to restrict the number of cpus handled by Xen. It's only used to setNR_CPUS. If the former is not set, Xen will use 128 as default value (seeinclude/asm-arm/config.h).Thanks.
Quoted 8 lines
Then I think I need to find out why the log says:
Waiting for 0 other CPUs to be ready
...
Brought up 1 CPUssince I do have got 2 cores on OMAP5 and added "kick cpu" codes to
mode_switch.Snext.
Xen uses the device tree to know the real number of cpus.
You should have a node cpus similar to :
cpus {
cpu@0 {
device_type = "cpu";
reg = "0";
};
cpu@1 {
device_type = "cpu";
reg = "1"; };
};
Cheers,
Signature · 1 line
Julien Grall