[PATCH v4 10/17] powerpc: Replace cpu_up/down with add/remove_cpu

2020-03-23 Thread Qais Yousef
pu_up/down a private interface for anything but the cpu subsystem. Acked-by: Michael Ellerman Signed-off-by: Qais Yousef CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: Enrico Weigelt CC: Ram Pai CC: Nicholas Piggin CC: Thiago Jung Bauermann CC: Christophe Leroy CC: Thoma

[PATCH v4 01/17] cpu: Add new {add,remove}_cpu() functions

2020-03-23 Thread Qais Yousef
The new functions use device_{online,offline}() which are userspace safe. This is in preparation to move cpu_{up, down} kernel users to use a safer interface that is not racy with userspace. Suggested-by: "Paul E. McKenney" Signed-off-by: Qais Yousef CC: Thomas Gleixner CC: "P

[PATCH v4 00/17] Convert cpu_up/down to device_online/offline

2020-03-23 Thread Qais Yousef
lisi CC: "Paul E. McKenney" CC: Greg Kroah-Hartman CC: xen-de...@lists.xenproject.org CC: linux-par...@vger.kernel.org CC: sparcli...@vger.kernel.org CC: linuxppc-dev@lists.ozlabs.org CC: x...@kernel.org CC: linux-arm-ker...@lists.infradead.org CC: linux-i...@vger.kernel.org CC: linux-ke

[PATCH v3 08/15] powerpc: Replace cpu_up/down with add/remove_cpu

2020-02-23 Thread Qais Yousef
pu_up/down a private interface for anything but the cpu subsystem. Acked-by: Michael Ellerman Signed-off-by: Qais Yousef CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: Enrico Weigelt CC: Ram Pai CC: Nicholas Piggin CC: Thiago Jung Bauermann CC: Christophe Leroy CC: Thoma

[PATCH v3 00/15] Convert cpu_up/down to device_online/offline

2020-02-23 Thread Qais Yousef
r...@vger.kernel.org CC: linux-par...@vger.kernel.org CC: linuxppc-dev@lists.ozlabs.org CC: sparcli...@vger.kernel.org CC: x...@kernel.org CC: xen-de...@lists.xenproject.org Qais Yousef (15): cpu: Add new {add,remove}_cpu() functions smp: Create a new function to shutdown nonboot cpus ia

[PATCH v3 01/15] cpu: Add new {add,remove}_cpu() functions

2020-02-23 Thread Qais Yousef
The new functions use device_{online,offline}() which are userspace safe. This is in preparation to move cpu_{up, down} kernel users to use a safer interface that is not racy with userspace. Suggested-by: "Paul E. McKenney" Signed-off-by: Qais Yousef CC: Thomas Gleixner CC: "P

Re: [PATCH v2 00/14] Convert cpu_up/down to device_online/offline

2020-02-05 Thread Qais Yousef
Hi Thomas On 11/25/19 11:27, Qais Yousef wrote: > Changes in v2: > * Add 2 new patches that create smp_shutdown_nonboot_cpus() to be used > in machine_shutdown() in ia64, arm and arm64 > * Use proper kernel-doc for the newly introduced functions > * Ren

[PATCH v2 06/14] powerpc: Replace cpu_up/down with device_online/offline

2019-11-25 Thread Qais Yousef
pu_up/down a private interface for anything but the cpu subsystem. Acked-by: Michael Ellerman Signed-off-by: Qais Yousef CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: Enrico Weigelt CC: Ram Pai CC: Nicholas Piggin CC: Thiago Jung Bauermann CC: Christophe Leroy CC: Thoma

[PATCH v2 00/14] Convert cpu_up/down to device_online/offline

2019-11-25 Thread Qais Yousef
er...@lists.infradead.org CC: linux-i...@vger.kernel.org CC: linux-ker...@vger.kernel.org CC: linux-par...@vger.kernel.org CC: linuxppc-dev@lists.ozlabs.org CC: sparcli...@vger.kernel.org CC: x...@kernel.org CC: xen-de...@lists.xenproject.org Qais Yousef (14): smp: create a new function to shutdown nonboo

Re: [PATCH 03/12] powerpc: Replace cpu_up/down with device_online/offline

2019-11-19 Thread Qais Yousef
On 11/19/19 12:19, Michael Ellerman wrote: > Qais Yousef writes: > > The core device API performs extra housekeeping bits that are missing > > from directly calling cpu_up/down. > > > > See commit a6717c01ddc2 ("powerpc/rtas: use device model APIs and > > ser

Re: [PATCH 00/12] Convert cpu_up/down to device_online/offline

2019-11-18 Thread Qais Yousef
Hi Thomas On 10/30/19 15:38, Qais Yousef wrote: > Using cpu_up/down directly to bring cpus online/offline loses synchronization > with sysfs and could suffer from a race similar to what is described in > commit a6717c01ddc2 ("powerpc/rtas: use device model APIs and serializatio

[PATCH 03/12] powerpc: Replace cpu_up/down with device_online/offline

2019-10-30 Thread Qais Yousef
pu_up/down a private interface for anything but the cpu subsystem. Signed-off-by: Qais Yousef CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: Enrico Weigelt CC: Ram Pai CC: Nicholas Piggin CC: Thiago Jung Bauermann CC: Christophe Leroy CC: Thomas Gleixner CC: li

[PATCH 00/12] Convert cpu_up/down to device_online/offline

2019-10-30 Thread Qais Yousef
C: Thomas Gleixner CC: Tony Luck CC: Will Deacon CC: Zhenzhong Duan CC: linux-arm-ker...@lists.infradead.org CC: linux-i...@vger.kernel.org CC: linux-ker...@vger.kernel.org CC: linux-par...@vger.kernel.org CC: linuxppc-dev@lists.ozlabs.org CC: sparcli...@vger.kernel.org CC: x...@kernel.org CC: x