# Re: \[PATCH 1/2\] powerpc/workqueue: update list of possible CPUs

- From: Tejun Heo \<tj@kernel.org\>
- Date: 2017-08-21 14:48:41 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2017/08/5072181
- Thread: https://ratatoskr.run/linux-block/2017/08/5072107/t.md

```text
On Mon, Aug 21, 2017 at 03:49:50PM +0200, Laurent Vivier wrote:
> In wq_numa_init() a list of NUMA nodes with their list of possible CPUs
> is built.
> 
> Unfortunately, on powerpc, the Firmware is only able to provide the
> node of a CPU if the CPU is present. So, in our case (possible CPU)
> CPU ids are known, but as the CPU is not present, the node id is
> unknown and all the unplugged CPUs are attached to node 0.

This is something powerpc needs to fix.  Workqueue isn't the only one
making this assumption.  mm as a whole assumes that CPU <-> node
mapping is stable regardless of hotplug events.  Powerpc people know
about the issue and AFAIK are working on it.

Thanks.

-- 
tejun
```
