Re: [RFC PATCH v2] ACPI / processor: Fix possible CPUs map

2018-03-15 Thread Dou Liyang
Hi Thomas, At 03/15/2018 09:45 PM, Thomas Gleixner wrote: [...] I tested this on a machine which claims to have gazillion of hotplugable CPUs: I really appreciate your test. smpboot: Allowing 152 CPUs, 120 hotplug CPUs setup_percpu: NR_CPUS:512 nr_cpumask_bits:512

Re: [RFC PATCH v2] ACPI / processor: Fix possible CPUs map

2018-03-15 Thread Dou Liyang
Hi Thomas, At 03/15/2018 09:45 PM, Thomas Gleixner wrote: [...] I tested this on a machine which claims to have gazillion of hotplugable CPUs: I really appreciate your test. smpboot: Allowing 152 CPUs, 120 hotplug CPUs setup_percpu: NR_CPUS:512 nr_cpumask_bits:512

Re: [RFC PATCH v2] ACPI / processor: Fix possible CPUs map

2018-03-15 Thread Thomas Gleixner
On Thu, 15 Mar 2018, Dou Liyang wrote: > > +static void __init acpi_update_possible_map(void) > +{ > + unsigned int cpu; > + > + if (nr_unique_ids >= nr_cpu_ids) > + return; > + > + /* Don't yet figure out if it's superfluous */ > + if (nr_unique_ids >=

Re: [RFC PATCH v2] ACPI / processor: Fix possible CPUs map

2018-03-15 Thread Thomas Gleixner
On Thu, 15 Mar 2018, Dou Liyang wrote: > > +static void __init acpi_update_possible_map(void) > +{ > + unsigned int cpu; > + > + if (nr_unique_ids >= nr_cpu_ids) > + return; > + > + /* Don't yet figure out if it's superfluous */ > + if (nr_unique_ids >=

[RFC PATCH v2] ACPI / processor: Fix possible CPUs map

2018-03-14 Thread Dou Liyang
Rafael J told me in order for the ACPI-based physical CPU hotplug to work, there have to be objects in the ACPI namespace corresponding to all of the processors in question. If they are not present, there is no way to signal insertion and eject the processors safely. But, Kernel calculates the

[RFC PATCH v2] ACPI / processor: Fix possible CPUs map

2018-03-14 Thread Dou Liyang
Rafael J told me in order for the ACPI-based physical CPU hotplug to work, there have to be objects in the ACPI namespace corresponding to all of the processors in question. If they are not present, there is no way to signal insertion and eject the processors safely. But, Kernel calculates the