Re: [PATCH v2] drivers/firmware: psci_checker: stash and use topology_core_cpumask for hotplug tests

2018-07-19 Thread Sudeep Holla
On 19/07/18 15:20, Lorenzo Pieralisi wrote: > On Thu, Jul 19, 2018 at 02:35:49PM +0100, Sudeep Holla wrote: [...] >> +static cpumask_var_t *alloc_cpu_groups(int num) >> +{ >> +int i; >> +cpumask_var_t *cpu_groups; >> + >> +cpu_groups = kcalloc(num, sizeof(cpu_groups), GFP_KERNEL);

Re: [PATCH v2] drivers/firmware: psci_checker: stash and use topology_core_cpumask for hotplug tests

2018-07-19 Thread Lorenzo Pieralisi
On Thu, Jul 19, 2018 at 02:35:49PM +0100, Sudeep Holla wrote: > Commit 7f9545aa1a91 ("arm64: smp: remove cpu and numa topology > information when hotplugging out CPU") updates the cpu topology when > the CPU is hotplugged out. However the PSCI checker code uses the > topology_core_cpumask pointers

[PATCH v2] drivers/firmware: psci_checker: stash and use topology_core_cpumask for hotplug tests

2018-07-19 Thread Sudeep Holla
Commit 7f9545aa1a91 ("arm64: smp: remove cpu and numa topology information when hotplugging out CPU") updates the cpu topology when the CPU is hotplugged out. However the PSCI checker code uses the topology_core_cpumask pointers for some of the cpu hotplug testing. Since the pointer to the core_cpu