Re: [PATCH RFC 05/22] ACPI: Move ACPI_HOTPLUG_CPU to be disabled on arm64 and riscv

2023-11-09 Thread Shaoqin Huang
ting it on the other three ACPI architectures. This allows the weak definitions of some symbols to be removed. Signed-off-by: James Morse Signed-off-by: Russell King (Oracle) Reviewed-by: Shaoqin Huang --- Changes since RFC: * Expanded conditions to avoid ACPI_HOTPLUG_CPU being enabled when

Re: [PATCH RFC 06/22] drivers: base: Use present CPUs in GENERIC_CPU_DEVICES

2023-11-09 Thread Shaoqin Huang
Hi Russell, On 11/7/23 18:29, Russell King (Oracle) wrote: From: James Morse Three of the five ACPI architectures create sysfs entries using register_cpu() for present CPUs, whereas arm64, riscv and all GENERIC_CPU_DEVICES do this for possible CPUs. Registering a CPU is what causes them to sh

Re: [PATCH RFC 07/22] drivers: base: Allow parts of GENERIC_CPU_DEVICES to be overridden

2023-11-09 Thread Shaoqin Huang
into arch_register_cpu(), which is made __weak so architectures with extra work can override it. This aligns with the way x86, ia64 and loongarch register hotplug CPUs when they become present. Signed-off-by: James Morse Signed-off-by: Russell King (Oracle) Reviewed-by: Shaoqin Huang --- Changes

Re: [PATCH RFC 08/22] drivers: base: Implement weak arch_unregister_cpu()

2023-11-09 Thread Shaoqin Huang
Signed-off-by: James Morse Reviewed-by: Shaoqin Huang --- Changes since v1: * Added CONFIG_HOTPLUG_CPU ifdeffery around unregister_cpu Changes since RFC v2: * Move earlier in the series --- drivers/base/cpu.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a

Re: [PATCH RFC 06/22] drivers: base: Use present CPUs in GENERIC_CPU_DEVICES

2023-11-09 Thread Shaoqin Huang
On 11/9/23 18:29, Russell King (Oracle) wrote: On Thu, Nov 09, 2023 at 06:09:32PM +0800, Shaoqin Huang wrote: Hi Russell, On 11/7/23 18:29, Russell King (Oracle) wrote: From: James Morse Three of the five ACPI architectures create sysfs entries using register_cpu() for present CPUs

Re: [PATCH RFC 09/22] drivers: base: add arch_cpu_is_hotpluggable()

2023-11-09 Thread Shaoqin Huang
provide this detail instead. Signed-off-by: Russell King (Oracle) Reviewed-by: Shaoqin Huang --- drivers/base/cpu.c | 11 ++- include/linux/cpu.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 58bb86091b34

Re: [PATCH RFC 12/22] drivers: base: Print a warning instead of panic() when register_cpu() fails

2023-11-09 Thread Shaoqin Huang
Reviewed-by: Russell King (Oracle) Signed-off-by: Russell King (Oracle) Reviewed-by: Shaoqin Huang --- drivers/base/cpu.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 221ffbeb1c9b..82b6a76125f5 100644 --- a/drivers/base

Re: [PATCH RFC 14/22] arm64: convert to arch_cpu_is_hotpluggable()

2023-11-09 Thread Shaoqin Huang
On 11/7/23 18:30, Russell King (Oracle) wrote: Convert arm64 to use the arch_cpu_is_hotpluggable() helper rather than arch_register_cpu(). Signed-off-by: Russell King (Oracle) Reviewed-by: Shaoqin Huang --- arch/arm64/kernel/setup.c | 8 ++-- 1 file changed, 2 insertions(+), 6

Re: [PATCH RFC 13/22] arm64: setup: Switch over to GENERIC_CPU_DEVICES using arch_register_cpu()

2023-11-09 Thread Shaoqin Huang
This patch also has the effect of moving the registration of CPUs from subsys to driver core initialisation, prior to any initcalls running. Signed-off-by: James Morse Reviewed-by: Russell King (Oracle) Signed-off-by: Russell King (Oracle) Reviewed-by: Shaoqin Huang --- Changes since RFC v2: