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

2023-11-09 Thread Shaoqin Huang
On 11/7/23 18:29, Russell King (Oracle) wrote: From: James Morse Neither arm64 nor riscv support physical hotadd of CPUs that were not present at boot. For arm64 much of the platform description is in static tables which do not have update methods. arm64 does support HOTPLUG_CPU, which is ba

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
On 11/7/23 18:29, Russell King (Oracle) wrote: From: James Morse Architectures often have extra per-cpu work that needs doing before a CPU is registered, often to determine if a CPU is hotpluggable. To allow the ACPI architectures to use GENERIC_CPU_DEVICES, move the cpu_register() call int

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

2023-11-09 Thread Russell King (Oracle)
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, whereas arm64, riscv and all > > GENE

Re: [RFC PATCH 2/2] docs: Update kernel-parameters.txt for signature verification enhancement

2023-11-09 Thread Alessandro Carminati
Hello Prarit, Il giorno mer 8 nov 2023 alle ore 16:33 Prarit Bhargava ha scritto: > > On 9/14/23 07:27, Alessandro Carminati (Red Hat) wrote: > > Update kernel-parameters.txt to reflect new deferred signature > > verification. > > Enhances boot speed by allowing unsigned modules in initrd after >

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

2023-11-09 Thread Shaoqin Huang
On 11/7/23 18:29, Russell King (Oracle) wrote: From: James Morse Add arch_unregister_cpu() to allow the ACPI machinery to call unregister_cpu(). This is enough for arm64, riscv and loongarch, but needs to be overridden by x86 and ia64 who need to do more work. CC: Jean-Philippe Brucker Sig

Re: [RFC PATCH 0/2] Enhancing Boot Speed and Security with Delayed Module Signature Verification

2023-11-09 Thread Alessandro Carminati
gentle ping Il giorno gio 14 set 2023 alle ore 13:28 Alessandro Carminati (Red Hat) ha scritto: > > This patch sets up a new feature to the Linux kernel to have the ability, > while module signature checking is enabled, to delay the moment where > these signatures are effectively checked. The fe

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, where

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

2023-11-09 Thread Shaoqin Huang
On 11/7/23 18:30, Russell King (Oracle) wrote: The differences between architecture specific implementations of arch_register_cpu() are down to whether the CPU is hotpluggable or not. Rather than overriding the weak version of arch_register_cpu(), provide a function that can be used to provide

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

2023-11-09 Thread Shaoqin Huang
On 11/7/23 18:30, Russell King (Oracle) wrote: From: James Morse loongarch, mips, parisc, riscv and sh all print a warning if register_cpu() returns an error. Architectures that use GENERIC_CPU_DEVICES call panic() instead. Errors in this path indicate something is wrong with the firmware d

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 dele

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

2023-11-09 Thread Shaoqin Huang
On 11/7/23 18:30, Russell King (Oracle) wrote: From: James Morse To allow ACPI's _STA value to hide CPUs that are present, but not available to online right now due to VMM or firmware policy, the register_cpu() call needs to be made by the ACPI machinery when ACPI is in use. This allows it t