Re: [PATCH for-6.2 v4 04/14] machine: Improve the error reporting of smp parsing

2021-08-05 Thread Pankaj Gupta
> We have two requirements for a valid SMP configuration: > the product of "sockets * cores * threads" must represent all the > possible cpus, i.e., max_cpus, and then must include the initially > present cpus, i.e., smp_cpus. > > So we only need to ensure 1) "sockets * cores * threads == maxcpus"

[PATCH for-6.2 v4 04/14] machine: Improve the error reporting of smp parsing

2021-08-03 Thread Yanan Wang
We have two requirements for a valid SMP configuration: the product of "sockets * cores * threads" must represent all the possible cpus, i.e., max_cpus, and then must include the initially present cpus, i.e., smp_cpus. So we only need to ensure 1) "sockets * cores * threads == maxcpus" at first an