Re:Re: [PATCH v2] docs: Fix typo in comment

2022-07-20 Thread Slark Xiao
At 2022-07-21 10:49:40, "Baoquan He" wrote: >On 07/21/22 at 09:56am, Slark Xiao wrote: >> Fix typo in the comment > >Better tell what's fixed to save reviewers' time: > >Fix typo 'the the' in several places of document. > >Other then this nitpick, looks good to me. > >Reviewed-by: Baoquan He

Re: [PATCH v2] docs: Fix typo in comment

2022-07-20 Thread Baoquan He
On 07/21/22 at 09:56am, Slark Xiao wrote: > Fix typo in the comment Better tell what's fixed to save reviewers' time: Fix typo 'the the' in several places of document. Other then this nitpick, looks good to me. Reviewed-by: Baoquan He > > Signed-off-by: Slark Xiao > --- > v2: Add all .rst

[PATCH v2] docs: Fix typo in comment

2022-07-20 Thread Slark Xiao
Fix typo in the comment Signed-off-by: Slark Xiao --- v2: Add all .rst changes in Documents into 1 single patch --- Documentation/admin-guide/kdump/vmcoreinfo.rst| 2 +- Documentation/bpf/map_cgroup_storage.rst | 4 ++-- Documentation/core-api/cpu_hotplug.rst| 2 +-

Re: [PATCH v9 0/7] crash: Kernel handling of CPU and memory hot un/plug

2022-07-20 Thread Baoquan He
On 07/20/22 at 02:08pm, Eric DeVolder wrote: > Baoquan, > I believe I've addressed all feedback, just checking to see if you agree. > I have the next patch set ready in the event you think it a good idea to post > it. > Thanks! Thanks for the effort. Please post them for reviewing. The newly

Re: [PATCH v9 0/7] crash: Kernel handling of CPU and memory hot un/plug

2022-07-20 Thread Eric DeVolder
Baoquan, I believe I've addressed all feedback, just checking to see if you agree. I have the next patch set ready in the event you think it a good idea to post it. Thanks! eric On 7/7/22 08:05, Eric DeVolder wrote: On 7/5/22 20:16, Baoquan He wrote: On 07/05/22 at 10:17am, Eric DeVolder

Re: [PATCH v6 6/6] tpm/kexec: Duplicate TPM measurement log in of-tree for kexec

2022-07-20 Thread Nageswara R Sastry
> From: Stefan Berger > Sent: 07 July 2022 10:50 PM > To: kexec@lists.infradead.org; devicet...@vger.kernel.org; > linux-integr...@vger.kernel.org; linux-ker...@vger.kernel.org; > linuxppc-...@lists.ozlabs.org > Cc: na...@linux.ibm.com; Nageswara R

Re: [PATCH v6 5/6] of: kexec: Refactor IMA buffer related functions to make them reusable

2022-07-20 Thread Nageswara R Sastry
> From: Stefan Berger > Sent: 07 July 2022 10:50 PM > To: kexec@lists.infradead.org; devicet...@vger.kernel.org; > linux-integr...@vger.kernel.org; linux-ker...@vger.kernel.org; > linuxppc-...@lists.ozlabs.org > Cc: na...@linux.ibm.com; Nageswara R

Re: [PATCH v6 4/6] tpm: of: Make of-tree specific function commonly available

2022-07-20 Thread Nageswara R Sastry
> From: Stefan Berger > Sent: 07 July 2022 10:50 PM > To: kexec@lists.infradead.org; devicet...@vger.kernel.org; > linux-integr...@vger.kernel.org; linux-ker...@vger.kernel.org; > linuxppc-...@lists.ozlabs.org > Cc: na...@linux.ibm.com; Nageswara R

Re: [PATCH v6 3/6] x86/kexec: Carry forward IMA measurement log on kexec

2022-07-20 Thread Nageswara R Sastry
> From: Stefan Berger > Sent: 07 July 2022 10:50 PM > To: kexec@lists.infradead.org; devicet...@vger.kernel.org; > linux-integr...@vger.kernel.org; linux-ker...@vger.kernel.org; > linuxppc-...@lists.ozlabs.org > Cc: na...@linux.ibm.com; Nageswara R

Re: [PATCH v6 2/6] drivers: of: kexec ima: Support 32-bit platforms

2022-07-20 Thread Nageswara R Sastry
> From: Stefan Berger > Sent: 07 July 2022 10:50 PM > To: kexec@lists.infradead.org; devicet...@vger.kernel.org; > linux-integr...@vger.kernel.org; linux-ker...@vger.kernel.org; > linuxppc-...@lists.ozlabs.org > Cc: na...@linux.ibm.com; Nageswara R

Re: [PATCH v6 1/6] of: check previous kernel's ima-kexec-buffer against memory bounds

2022-07-20 Thread Nageswara R Sastry
> From: Stefan Berger > Sent: 07 July 2022 10:50 PM > To: kexec@lists.infradead.org; devicet...@vger.kernel.org; > linux-integr...@vger.kernel.org; linux-ker...@vger.kernel.org; > linuxppc-...@lists.ozlabs.org > Cc: na...@linux.ibm.com; Nageswara R

[PATCH] docs: admin-guide: ix typo in comment

2022-07-20 Thread Slark Xiao
Fix typo in the comment Signed-off-by: Slark Xiao --- Documentation/admin-guide/kdump/vmcoreinfo.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/kdump/vmcoreinfo.rst b/Documentation/admin-guide/kdump/vmcoreinfo.rst index

Re: [PATCH v2 09/13] notifier: Show function names on notifier routines if DEBUG_NOTIFIERS is set

2022-07-20 Thread Guilherme G. Piccoli
On 19/07/2022 17:33, Arjan van de Ven wrote: > On 7/19/2022 12:53 PM, Guilherme G. Piccoli wrote: >> Currently we have a debug infrastructure in the notifiers file, but >> it's very simple/limited. Extend it by: >> >> (a) Showing all registered/unregistered notifiers' callback names; > > > I'm

[PATCH v2 12/13] drivers/hv/vmbus, video/hyperv_fb: Untangle and refactor Hyper-V panic notifiers

2022-07-20 Thread Guilherme G. Piccoli
Currently Hyper-V guests are among the most relevant users of the panic infrastructure, like panic notifiers, kmsg dumpers, etc. The reasons rely both in cleaning-up procedures (closing hypervisor <-> guest connection, disabling some paravirtualized timer) as well as to data collection (sending

Re: [PATCH v2 07/13] parisc: Replace regular spinlock with spin_trylock on panic path

2022-07-20 Thread Jeroen Roovers
Hi Guilherme, On Tue, 19 Jul 2022 16:53:20 -0300 "Guilherme G. Piccoli" wrote: > The panic notifiers' callbacks execute in an atomic context, with > interrupts/preemption disabled, and all CPUs not running the panic > function are off, so it's very dangerous to wait on a regular >

[PATCH v2 06/13] um: Improve panic notifiers consistency and ordering

2022-07-20 Thread Guilherme G. Piccoli
Currently the panic notifiers from user mode linux don't follow the convention for most of the other notifiers present in the kernel (indentation, priority setting, numeric return). More important, the priorities could be improved, since it's a special case (userspace), hence we could run the

[PATCH v2 04/13] soc: bcm: brcmstb: Document panic notifier action and remove useless header

2022-07-20 Thread Guilherme G. Piccoli
The panic notifier of this driver is very simple code-wise, just a memory write to a special position with some numeric code. But this is not clear from the semantic point-of-view, and there is no public documentation about that either. After discussing this in the mailing-lists [0] and having

[PATCH v2 09/13] notifier: Show function names on notifier routines if DEBUG_NOTIFIERS is set

2022-07-20 Thread Guilherme G. Piccoli
Currently we have a debug infrastructure in the notifiers file, but it's very simple/limited. Extend it by: (a) Showing all registered/unregistered notifiers' callback names; (b) Adding a dynamic debug tuning to allow showing called notifiers' function names. Notice that this should be guarded

[PATCH v2 11/13] video/hyperv_fb: Avoid taking busy spinlock on panic path

2022-07-20 Thread Guilherme G. Piccoli
The Hyper-V framebuffer code registers a panic notifier in order to try updating its fbdev if the kernel crashed. The notifier callback is straightforward, but it calls the vmbus_sendpacket() routine eventually, and such function takes a spinlock for the ring buffer operations. Panic path runs in

[PATCH v2 02/13] notifier: Add panic notifiers info and purge trailing whitespaces

2022-07-20 Thread Guilherme G. Piccoli
Although many notifiers are mentioned in the comments, the panic notifiers infrastructure is not. Also, the file contains some trailing whitespaces. Fix both issues here. Cc: Arjan van de Ven Cc: Cong Wang Cc: Sebastian Andrzej Siewior Cc: Valentin Schneider Cc: Xiaoming Ni Signed-off-by:

[PATCH v2 03/13] firmware: google: Test spinlock on panic path to avoid lockups

2022-07-20 Thread Guilherme G. Piccoli
Currently the gsmi driver registers a panic notifier as well as reboot and die notifiers. The callbacks registered are called in atomic and very limited context - for instance, panic disables preemption and local IRQs, also all secondary CPUs (not executing the panic path) are shutdown. With that

[PATCH v2 07/13] parisc: Replace regular spinlock with spin_trylock on panic path

2022-07-20 Thread Guilherme G. Piccoli
The panic notifiers' callbacks execute in an atomic context, with interrupts/preemption disabled, and all CPUs not running the panic function are off, so it's very dangerous to wait on a regular spinlock, there's a risk of deadlock. Refactor the panic notifier of parisc/power driver to make use

[PATCH v2 05/13] alpha: Clean-up the panic notifier code

2022-07-20 Thread Guilherme G. Piccoli
The alpha panic notifier has some code issues, not following the conventions of other notifiers. Also, it might halt the machine but still it is set to run as early as possible, which doesn't seem to be a good idea. So, let's clean the code and set the notifier to run as the latest, following the

Re: [PATCH v2 09/13] notifier: Show function names on notifier routines if DEBUG_NOTIFIERS is set

2022-07-20 Thread Arjan van de Ven
On 7/19/2022 12:53 PM, Guilherme G. Piccoli wrote: Currently we have a debug infrastructure in the notifiers file, but it's very simple/limited. Extend it by: (a) Showing all registered/unregistered notifiers' callback names; I'm not yet convinced that this is the right direction. The

Re: [PATCH v2 09/13] notifier: Show function names on notifier routines if DEBUG_NOTIFIERS is set

2022-07-20 Thread Arjan van de Ven
On 7/19/2022 2:00 PM, Guilherme G. Piccoli wrote: On 19/07/2022 17:48, Arjan van de Ven wrote: [...] I would totally support an approach where instead of pr_info, there's a tracepoint for these events (and that shouldnt' need to be conditional on a config option) that's not what the patch

[PATCH v2 00/13] The panic notifiers refactor strikes back - fixes/clean-ups

2022-07-20 Thread Guilherme G. Piccoli
Hi folks, this the second iteration of the panic notifiers refactor work, but limited to the fixes/clean-ups in the first moment. The (full) V1 is available at: https://lore.kernel.org/lkml/20220427224924.592546-1-gpicc...@igalia.com/ The idea of splitting the series is that, originally we had a

Re: [PATCH v2 09/13] notifier: Show function names on notifier routines if DEBUG_NOTIFIERS is set

2022-07-20 Thread Arjan van de Ven
On 7/19/2022 1:44 PM, Guilherme G. Piccoli wrote: On 19/07/2022 17:33, Arjan van de Ven wrote: On 7/19/2022 12:53 PM, Guilherme G. Piccoli wrote: Currently we have a debug infrastructure in the notifiers file, but it's very simple/limited. Extend it by: (a) Showing all registered/unregistered

Re: [PATCH v2 09/13] notifier: Show function names on notifier routines if DEBUG_NOTIFIERS is set

2022-07-20 Thread Guilherme G. Piccoli
On 19/07/2022 17:48, Arjan van de Ven wrote: > [...] > I would totally support an approach where instead of pr_info, there's a > tracepoint > for these events (and that shouldnt' need to be conditional on a config > option) > > that's not what the patch does though. This is a good idea Arjan!

[PATCH v2 13/13] panic: Fixes the panic_print NMI backtrace setting

2022-07-20 Thread Guilherme G. Piccoli
Commit 8d470a45d1a6 ("panic: add option to dump all CPUs backtraces in panic_print") introduced a setting for the "panic_print" kernel parameter to allow users to request a NMI backtrace on panic. Problem is that the panic_print handling happens after the secondary CPUs are already disabled,

[PATCH v2 10/13] EDAC/altera: Skip the panic notifier if kdump is loaded

2022-07-20 Thread Guilherme G. Piccoli
The altera_edac panic notifier performs some data collection with regards errors detected; such code relies in the regmap layer to perform reads/writes, so the code is abstracted and there is some risk level to execute that, since the panic path runs in atomic context, with interrupts/preemption

[PATCH v2 08/13] tracing: Improve panic/die notifiers

2022-07-20 Thread Guilherme G. Piccoli
Currently the tracing dump_on_oops feature is implemented through separate notifiers, one for die/oops and the other for panic - given they have the same functionality, let's unify them. Also improve the function comment and change the priority of the notifier to make it execute earlier, avoiding

[PATCH v2 01/13] ARM: Disable FIQs (but not IRQs) on CPUs shutdown paths

2022-07-20 Thread Guilherme G. Piccoli
Currently the regular CPU shutdown path for ARM disables IRQs/FIQs in the secondary CPUs - smp_send_stop() calls ipi_cpu_stop(), which is responsible for that. IRQs are architecturally masked when we take an interrupt, but FIQs are high priority than IRQs, hence they aren't masked. With that said,