Skip to contentSkip to conversation

Question about SMP support for ARM

DISCUSSION Chen Baozi 2 participants 4 messages Aug 12, 2013

lore
Share & tools
lore

Chen Baozi

author
#0 lore raw

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

#1 lore raw
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
author
#2 lore raw
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_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).

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
#3 lore raw
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_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).

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 CPUs

since I do have got 2 cores on OMAP5 and added "kick cpu" codes to mode_switch.S next.

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