Re: [PATCH v2][makedumpfile] Fix a data race in multi-threading mode (--num-threads=N)

2025-07-01 Thread Sourabh Jain
--num-threads=1. The reason is that when --num-threads is specified, makedumpfile uses one producer and one consumer thread. So even with --num-threads=1, multithreading is still in effect. Thanks, Sourabh Jain

Re: [PATCH][makedumpfile] Fix a data race in multi-threading mode (--num-threads=N)

2025-06-20 Thread Sourabh Jain
crash: cannot read hardirq_ctx[930] at c0001e2d2fe48000 crash: compressed kdump: uncompress failed: 0 ``` Should we include the above crash logs or the you observed in this commit message for easy reference? I tested this fix on high-end Power systems with 64TB of RAM as well as on systems with lower memory, and everything is working fine in both cases. Thanks for the fix. Tested-by: Sourabh Jain - Sourabh Jain

[PATCH] kexec: Fix kexec_locate_mem_hole() for missing CONFIG_KEXEC_HANDOVER

2025-02-14 Thread Sourabh Jain
te Closes: https://lore.kernel.org/all/8e73069b-5987-4a08-b13d-13fe69109...@linux.vnet.ibm.com/ Signed-off-by: Sourabh Jain Cc: Alexander Graf Cc: Baoquan he Cc: Hari Bathini Cc: Madhavan Srinivasan Cc: Mike Rapoport (Microsoft) Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.

Re: [PATCH v3 3/7] crash: Let arch decide usable memory range in reserved area

2025-01-31 Thread Sourabh Jain
Hello Baoquan, On 01/02/25 09:52, Baoquan he wrote: On 01/31/25 at 05:08pm, Sourabh Jain wrote: Although the crashkernel area is reserved, on architectures like PowerPC, it is possible for the crashkernel reserved area to contain components like RTAS, TCE, OPAL, etc. To avoid placing kexec

[PATCH v3 0/7] powerpc/crash: use generic crashkernel reservation

2025-01-31 Thread Sourabh Jain
: Andrew Morton Cc: Baoquan he Cc: Hari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Cc: sourabhj...@linux.ibm.com Sourabh Jain (7): kexec: Initialize ELF lowest address to ULONG_MAX crash: remove an unuse

[PATCH v3 5/7] powerpc/crash: preserve user-specified memory limit

2025-01-31 Thread Sourabh Jain
: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Acked-by: Hari Bathini Reviewed-by: Mahesh Salgaonkar Signed-off-by: Sourabh Jain --- arch/powerpc/kexec/core.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/kexec/co

[PATCH v3 1/7] kexec: Initialize ELF lowest address to ULONG_MAX

2025-01-31 Thread Sourabh Jain
el Ellerman Cc: kexec@lists.infradead.org Cc: linuxppc-...@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org Acked-by: Hari Bathini Acked-by: Baoquan He Signed-off-by: Sourabh Jain --- kernel/kexec_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kexec_elf.c b/ker

[PATCH v3 2/7] crash: remove an unused argument from reserve_crashkernel_generic()

2025-01-31 Thread Sourabh Jain
-ker...@vger.kernel.org Acked-by: Hari Bathini Acked-by: Baoquan He Signed-off-by: Sourabh Jain --- arch/arm64/mm/init.c | 6 ++ arch/loongarch/kernel/setup.c | 5 ++--- arch/riscv/mm/init.c | 6 ++ arch/x86/kernel/setup.c | 6 ++ include/linux

[PATCH v3 7/7] powerpc/crash: use generic crashkernel reservation

2025-01-31 Thread Sourabh Jain
ts own function name get_crash_base() for better readability and maintainability. Cc: Andrew Morton Cc: Baoquan he CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Acked-by: Hari Bathini Reviewed-by: Mahesh Salgaonkar Signed-off-b

[PATCH v3 6/7] powerpc: insert System RAM resource to prevent crashkernel conflict

2025-01-31 Thread Sourabh Jain
le of handling `System RAM` and `Crash Kernel` in the above format. The same format is used in other architectures. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Soura

[PATCH v3 4/7] powerpc/crash: Use generic APIs to locate memory hole for kdump

2025-01-31 Thread Sourabh Jain
Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- arch/powerpc/include/asm/kexec.h | 6 +- arch/powerpc/kexec/file_load_64.c | 259 ++ 2 files changed, 13 insertions(+), 252 deletions(-) diff --git a/arch/powerpc/include/asm/kexec.h b/ar

[PATCH v3 3/7] crash: Let arch decide usable memory range in reserved area

2025-01-31 Thread Sourabh Jain
ocate memory hole for kdump. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini Cc: Madhavan Srinivasan Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- include/linux/kexec.h | 9 + kernel/kexec_f

Re: [PATCH v2 6/6] crash: option to let arch decide mem range is usable

2025-01-24 Thread Sourabh Jain
Hello Hari, On 24/01/25 15:22, Hari Bathini wrote: Hi Sourabh, On 21/01/25 5:24 pm, Sourabh Jain wrote: On PowerPC, the memory reserved for the crashkernel can contain components like RTAS, TCE, OPAL, etc., which should be avoided when loading kexec segments into crashkernel memory. Due to

Re: [PATCH v2 5/6] powerpc/crash: use generic crashkernel reservation

2025-01-23 Thread Sourabh Jain
Hello Hari, On 23/01/25 16:15, Hari Bathini wrote: Hi Sourabh, On 21/01/25 5:24 pm, Sourabh Jain wrote: Commit 0ab97169aa05 ("crash_core: add generic function to do reservation") added a generic function to reserve crashkernel memory. So let's use the same function on powerpc

Re: [PATCH v2 3/6] crash: let arch decide crash memory export to iomem_resource

2025-01-23 Thread Sourabh Jain
Hello Hari, On 23/01/25 15:56, Hari Bathini wrote: Hi Sourabh, On 21/01/25 5:24 pm, Sourabh Jain wrote: insert_crashkernel_resources() adds crash memory to iomem_resource if generic crashkernel reservation is enabled on an architecture. On PowerPC, system RAM is added to iomem_resource

Re: [PATCH v2 1/6] kexec: Initialize ELF lowest address to ULONG_MAX

2025-01-23 Thread Sourabh Jain
Hello Hari, On 23/01/25 15:34, Hari Bathini wrote: On 21/01/25 5:24 pm, Sourabh Jain wrote: kexec_elf_load() loads an ELF executable and sets the address of the lowest PT_LOAD section to the address held by the lowest_load_addr function argument. To determine the lowest PT_LOAD address, a

Re: [PATCH v2 4/6] powerpc/kdump: preserve user-specified memory limit

2025-01-23 Thread Sourabh Jain
Hello Hari, On 23/01/25 16:00, Hari Bathini wrote: On 21/01/25 5:24 pm, Sourabh Jain wrote: Commit 59d58189f3d9 ("crash: fix crash memory reserve exceed system memory bug") fails crashkernel parsing if the crash size is found to be higher than system RAM, which makes the me

[PATCH v2 6/6] crash: option to let arch decide mem range is usable

2025-01-21 Thread Sourabh Jain
, and remove the PowerPC functions to locate holes. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini Cc: Madhavan Srinivasan Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- arch/powerpc/include/asm/ke

[PATCH v2 5/6] powerpc/crash: use generic crashkernel reservation

2025-01-21 Thread Sourabh Jain
onkar Signed-off-by: Sourabh Jain --- arch/powerpc/Kconfig | 3 + arch/powerpc/include/asm/crash_reserve.h | 18 + arch/powerpc/include/asm/kexec.h | 4 +- arch/powerpc/kernel/prom.c | 2 +- arch/powerpc/kexec/core.c| 90 ++---

[PATCH v2 4/6] powerpc/kdump: preserve user-specified memory limit

2025-01-21 Thread Sourabh Jain
ari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Reviewed-by: Mahesh Salgaonkar Signed-off-by: Sourabh Jain --- arch/powerpc/kexec/core.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/kexec/co

[PATCH v2 1/6] kexec: Initialize ELF lowest address to ULONG_MAX

2025-01-21 Thread Sourabh Jain
Salgaonkar Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linuxppc-...@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org Acked-by: Baoquan He Signed-off-by: Sourabh Jain --- kernel/kexec_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kexec_elf.c b/kernel/ke

[PATCH v2 3/6] crash: let arch decide crash memory export to iomem_resource

2025-01-21 Thread Sourabh Jain
nel memory should be added to iomem_resource. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini Cc: Madhavan Srinivasan Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- include/linux/

[PATCH v2 2/6] crash: remove an unused argument from reserve_crashkernel_generic()

2025-01-21 Thread Sourabh Jain
@lists.infradead.org Cc: linux-ker...@vger.kernel.org Acked-by: Baoquan He Signed-off-by: Sourabh Jain --- arch/arm64/mm/init.c | 6 ++ arch/loongarch/kernel/setup.c | 5 ++--- arch/riscv/mm/init.c | 6 ++ arch/x86/kernel/setup.c | 6 ++ include/linux/crash_reserve.h

[PATCH v2 0/6] powerpc/crash: use generic crashkernel reservation

2025-01-21 Thread Sourabh Jain
is not removed from patch series. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Cc: sourabhj...@linux.ibm.com Sourabh Jain (6): kexec: Initialize ELF lowest address to ULONG_MAX

Re: [PATCH] kexec: Initialize ELF lowest address to ULONG_MAX

2025-01-08 Thread Sourabh Jain
Hello Andrew, On 09/01/25 10:58, Andrew Morton wrote: On Thu, 9 Jan 2025 09:42:14 +0530 Sourabh Jain wrote: Hello Baoquan and Eric, On 12/12/24 08:25, Baoquan he wrote: On 12/10/24 at 02:43pm, Sourabh Jain wrote: kexec_elf_load() loads an ELF executable and sets the address of the

Re: [PATCH] kexec: Initialize ELF lowest address to ULONG_MAX

2025-01-08 Thread Sourabh Jain
Hello Baoquan and Eric, On 12/12/24 08:25, Baoquan he wrote: On 12/10/24 at 02:43pm, Sourabh Jain wrote: kexec_elf_load() loads an ELF executable and sets the address of the lowest PT_LOAD section to the address held by the lowest_load_addr function argument. To determine the lowest PT_LOAD

Re: [PATCH RESEND v1 1/5] crash: remove an unused argument from reserve_crashkernel_generic()

2025-01-08 Thread Sourabh Jain
Hello Baoquan, On 08/01/25 16:46, Baoquan he wrote: On 01/08/25 at 03:44pm, Sourabh Jain wrote: cmdline argument is not used in reserve_crashkernel_generic() so remove it. Correspondingly, all the callers have been updated as well. No functional change intended. Cc: Andrew Morton Cc

Re: [PATCH RESEND v1 4/5] powerpc/crash: use generic crashkernel reservation

2025-01-08 Thread Sourabh Jain
Hello Mahesh, On 08/01/25 22:35, Mahesh J Salgaonkar wrote: On 2025-01-08 15:44:57 Wed, Sourabh Jain wrote: Commit 0ab97169aa05 ("crash_core: add generic function to do reservation") added a generic function to reserve crashkernel memory. So let's use the same function on pow

Re: [PATCH RESEND v1 3/5] powerpc/kdump: preserve user-specified memory limit

2025-01-08 Thread Sourabh Jain
Hello Mahesh, On 08/01/25 22:36, Mahesh J Salgaonkar wrote: On 2025-01-08 15:44:56 Wed, Sourabh Jain wrote: Commit 59d58189f3d9 ("crash: fix crash memory reserve exceed system memory bug") fails crashkernel parsing if the crash size is found to be higher than system RAM, which

Re: [PATCH RESEND v1 5/5] crash: option to let arch decide mem range is usable

2025-01-08 Thread Sourabh Jain
On 08/01/25 17:08, Baoquan he wrote: On 01/08/25 at 03:44pm, Sourabh Jain wrote: ...snip... diff --git a/include/linux/kexec.h b/include/linux/kexec.h index f0e9f8eda7a3..407f8b0346aa 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h @@ -205,6 +205,15 @@ static inline int

Re: [PATCH RESEND v1 2/5] crash: let arch decide crash memory export to iomem_resource

2025-01-08 Thread Sourabh Jain
Hello Baoquan On 08/01/25 16:55, Baoquan he wrote: Hi, On 01/08/25 at 03:44pm, Sourabh Jain wrote: insert_crashkernel_resources() adds crash memory to iomem_resource if generic crashkernel reservation is enabled on an architecture. On PowerPC, system RAM is added to iomem_resource. See

[PATCH RESEND v1 0/5] powerpc/crash: use generic crashkernel reservation

2025-01-08 Thread Sourabh Jain
Changelog: v1 Resend: - Rebased on top of 6.13-rc6 Sourabh Jain (5): crash: remove an unused argument from reserve_crashkernel_generic() crash: let arch decide crash memory export to iomem_resource powerpc/kdump: preserve user-specified memory limit powerpc/crash: use generic crashker

[PATCH RESEND v1 5/5] crash: option to let arch decide mem range is usable

2025-01-08 Thread Sourabh Jain
, and remove the PowerPC functions to locate holes. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- arch/powerpc/include/asm/kexec.h | 6 +- arch/po

[PATCH RESEND v1 4/5] powerpc/crash: use generic crashkernel reservation

2025-01-08 Thread Sourabh Jain
se refer to the previous commit titled "crash: let arch decide crash memory export to iomem_resource. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jai

[PATCH RESEND v1 3/5] powerpc/kdump: preserve user-specified memory limit

2025-01-08 Thread Sourabh Jain
ari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- arch/powerpc/kexec/core.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/kexec/core.c b/arch/powerpc/kexec/

[PATCH RESEND v1 2/5] crash: let arch decide crash memory export to iomem_resource

2025-01-08 Thread Sourabh Jain
nel memory should be added to iomem_resource. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- include/linux/crash_reserve.h | 11 +++ ke

[PATCH RESEND v1 1/5] crash: remove an unused argument from reserve_crashkernel_generic()

2025-01-08 Thread Sourabh Jain
Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- arch/arm64/mm/init.c | 6 ++ arch/loongarch/kernel/setup.c | 5 ++--- arch/riscv/mm/init.c | 6 ++ arch/x86/kernel/setup.c | 6 ++ include/linux/crash_reserve.h | 11 +-- kernel

[PATCH 0/5] powerpc/crash: use generic crashkernel reservation

2024-12-16 Thread Sourabh Jain
series summary: = Patch 1-2: generic changes Patch 3-4: powerpc changes Patch 5: generic + powerpc changes Sourabh Jain (5): crash: remove an unused argument from reserve_crashkernel_generic() crash: let arch decide crash memory export to iomem_resource powerpc/kdump: preserve user-specifi

[PATCH 5/5] crash: option to let arch decide mem range is usable

2024-12-16 Thread Sourabh Jain
, and remove the PowerPC functions to locate holes. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- arch/powerpc/include/asm/kexec.h | 6 +- arch/po

[PATCH 1/5] crash: remove an unused argument from reserve_crashkernel_generic()

2024-12-16 Thread Sourabh Jain
Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- arch/arm64/mm/init.c | 6 ++ arch/loongarch/kernel/setup.c | 5 ++--- arch/riscv/mm/init.c | 6 ++ arch/x86/kernel/setup.c | 6 ++ include/linux/crash_reserve.h | 11 +-- kernel

[PATCH 4/5] powerpc/crash: use generic crashkernel reservation

2024-12-16 Thread Sourabh Jain
se refer to the previous commit titled "crash: let arch decide crash memory export to iomem_resource. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jai

[PATCH 3/5] powerpc/kdump: preserve user-specified memory limit

2024-12-16 Thread Sourabh Jain
ari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- arch/powerpc/kexec/core.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/kexec/core.c b/arch/powerpc/kexec/

[PATCH 2/5] crash: let arch decide crash memory export to iomem_resource

2024-12-16 Thread Sourabh Jain
nel memory should be added to iomem_resource. Cc: Andrew Morton Cc: Baoquan he Cc: Hari Bathini CC: Madhavan Srinivasan Cc: Michael Ellerman Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- include/linux/crash_reserve.h | 11 +++ ke

Re: [PATCH] kexec: Initialize ELF lowest address to ULONG_MAX

2024-12-11 Thread Sourabh Jain
On 12/12/24 08:25, Baoquan he wrote: On 12/10/24 at 02:43pm, Sourabh Jain wrote: kexec_elf_load() loads an ELF executable and sets the address of the lowest PT_LOAD section to the address held by the lowest_load_addr function argument. To determine the lowest PT_LOAD address, a local

[PATCH] kexec: Initialize ELF lowest address to ULONG_MAX

2024-12-10 Thread Sourabh Jain
rman Cc: kexec@lists.infradead.org Cc: linuxppc-...@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Sourabh Jain --- kernel/kexec_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kexec_elf.c b/kernel/kexec_elf.c index d3689632e8b9..3a5c25b2adc9 1006

[PATCH linux-next v3] kexec/crash: no crash update when kexec in progress

2024-09-21 Thread Sourabh Jain
lerman Cc: kexec@lists.infradead.org Cc: linuxppc-...@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org Cc: x...@kernel.org Acked-by: Baoquan he Reported-by: Sachin P Bappalige Signed-off-by: Sourabh Jain --- Changelog: Since v1: - Keep the kexec_in_progress check within kexec_trylock() -

Re: [PATCH RESEND v2] kexec/crash: no crash update when kexec in progress

2024-09-12 Thread Sourabh Jain
Hello Baoquan, On 11/09/24 19:50, Baoquan He wrote: On 09/11/24 at 04:51pm, Sourabh Jain wrote: The following errors are observed when kexec is done with SMT=off on powerpc. [ 358.458385] Removing IBM Power 842 compression device [ 374.795734] kexec_core: Starting new kernel [ 374.795748

Re: [PATCH v2] kexec/crash: no crash update when kexec in progress

2024-09-11 Thread Sourabh Jain
Hello all, Please ignore this patch. V2 has been resent with an updated linuxppc-dev mailing list address: https://lore.kernel.org/all/2024092111.108056-1-sourabhj...@linux.ibm.com/ Apologies for the noise. Thanks, Sourabh Jain On 11/09/24 16:45, Sourabh Jain wrote: The following

[PATCH RESEND v2] kexec/crash: no crash update when kexec in progress

2024-09-11 Thread Sourabh Jain
lerman Cc: kexec@lists.infradead.org Cc: linuxppc-...@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org Cc: x...@kernel.org Reported-by: Sachin P Bappalige Signed-off-by: Sourabh Jain --- Changelog: Since v1: - Keep the kexec_in_progress check within kexec_trylock() - Baoquan He - Include the

[PATCH v2] kexec/crash: no crash update when kexec in progress

2024-09-11 Thread Sourabh Jain
lerman Cc: kexec@lists.infradead.org Cc: linuxppc-...@ozlabs.org Cc: linux-ker...@vger.kernel.org Cc: x...@kernel.org Reported-by: Sachin P Bappalige Signed-off-by: Sourabh Jain --- Changelog: Since v1: - Keep the kexec_in_progress check within kexec_trylock() - Baoquan He - Include the reason w

Re: [PATCH] kexec/crash: no crash update when kexec in progress

2024-09-08 Thread Sourabh Jain
Hello Baoquan, On 09/09/24 10:53, Baoquan He wrote: On 09/09/24 at 10:35am, Sourabh Jain wrote: On 08/09/24 16:00, Baoquan He wrote: On 09/05/24 at 02:07pm, Sourabh Jain wrote: Hello Baoquan, On 05/09/24 08:53, Baoquan He wrote: On 09/04/24 at 02:55pm, Sourabh Jain wrote: Hello Baoquan

Re: [PATCH] kexec/crash: no crash update when kexec in progress

2024-09-08 Thread Sourabh Jain
On 08/09/24 16:00, Baoquan He wrote: On 09/05/24 at 02:07pm, Sourabh Jain wrote: Hello Baoquan, On 05/09/24 08:53, Baoquan He wrote: On 09/04/24 at 02:55pm, Sourabh Jain wrote: Hello Baoquan, On 30/08/24 16:47, Baoquan He wrote: On 08/20/24 at 12:10pm, Sourabh Jain wrote: Hello Baoquan

Re: [PATCH] [RFC] crash: Lock-free crash hotplug support reporting

2024-09-06 Thread Sourabh Jain
Hello Baoquan, Do you think this patch would help reduce lock contention when CPU/Memory resources are removed in bulk from a system? Thanks, Sourabh Jain On 23/08/24 17:22, Sourabh Jain wrote: On a CPU/Memory hotplug event, the kexec lock is taken to update the kdump image. At the same

Re: [PATCH] kexec/crash: no crash update when kexec in progress

2024-09-05 Thread Sourabh Jain
Hello Baoquan, On 05/09/24 08:53, Baoquan He wrote: On 09/04/24 at 02:55pm, Sourabh Jain wrote: Hello Baoquan, On 30/08/24 16:47, Baoquan He wrote: On 08/20/24 at 12:10pm, Sourabh Jain wrote: Hello Baoquan, ..snip... 2. A patch to return early from the `crash_handle_hotplug_event

Re: [PATCH] kexec/crash: no crash update when kexec in progress

2024-09-04 Thread Sourabh Jain
Hello Baoquan, On 30/08/24 16:47, Baoquan He wrote: On 08/20/24 at 12:10pm, Sourabh Jain wrote: Hello Baoquan, On 19/08/24 11:45, Baoquan He wrote: On 08/19/24 at 09:45am, Sourabh Jain wrote: Hello Michael and Boaquan On 01/08/24 12:21, Sourabh Jain wrote: Hello Michael, On 01/08/24 08

[PATCH] [RFC] crash: Lock-free crash hotplug support reporting

2024-08-23 Thread Sourabh Jain
: linuxppc-...@lists.ozlabs.org Cc: linux-ker...@vger.kernel.org Cc: x...@kernel.org Signed-off-by: Sourabh Jain --- include/linux/kexec.h | 11 --- kernel/crash_core.c | 27 +-- kernel/kexec.c| 5 - kernel/kexec_file.c | 7 ++- 4 files c

Re: [PATCH] kexec/crash: no crash update when kexec in progress

2024-08-19 Thread Sourabh Jain
Hello Baoquan, On 19/08/24 11:45, Baoquan He wrote: On 08/19/24 at 09:45am, Sourabh Jain wrote: Hello Michael and Boaquan On 01/08/24 12:21, Sourabh Jain wrote: Hello Michael, On 01/08/24 08:04, Michael Ellerman wrote: Sourabh Jain writes: The following errors are observed when kexec is

Re: [PATCH] kexec/crash: no crash update when kexec in progress

2024-08-18 Thread Sourabh Jain
Hello Michael and Boaquan On 01/08/24 12:21, Sourabh Jain wrote: Hello Michael, On 01/08/24 08:04, Michael Ellerman wrote: Sourabh Jain writes: The following errors are observed when kexec is done with SMT=off on powerpc. [  358.458385] Removing IBM Power 842 compression device

Re: [PATCH v2] Document/kexec: Generalize crash hotplug description

2024-08-18 Thread Sourabh Jain
Hello Baoquan, On 13/08/24 14:47, Baoquan He wrote: On 08/13/24 at 10:58am, Sourabh Jain wrote: Hello Baoquan, On 13/08/24 10:34, Baoquan He wrote: On 08/12/24 at 09:46am, Sourabh Jain wrote: .. --- Changelog: Since v1: https://lore.kernel.org/all/20240805050829.297171-1-sourabhj

Re: [PATCH v2] Document/kexec: Generalize crash hotplug description

2024-08-13 Thread Sourabh Jain
Hello Boaquan, On 13/08/24 14:47, Baoquan He wrote: On 08/13/24 at 10:58am, Sourabh Jain wrote: Hello Baoquan, On 13/08/24 10:34, Baoquan He wrote: On 08/12/24 at 09:46am, Sourabh Jain wrote: .. --- Changelog: Since v1: https://lore.kernel.org/all/20240805050829.297171-1-sourabhj

Re: [PATCH v2] Document/kexec: Generalize crash hotplug description

2024-08-12 Thread Sourabh Jain
Hello Baoquan, On 13/08/24 10:34, Baoquan He wrote: On 08/12/24 at 09:46am, Sourabh Jain wrote: .. --- Changelog: Since v1: https://lore.kernel.org/all/20240805050829.297171-1-sourabhj...@linux.ibm.com/ - Update crash_hotplug sysfs document as suggested by Petr T - Update an error

Re: [PATCH v2] Document/kexec: Generalize crash hotplug description

2024-08-11 Thread Sourabh Jain
On 12/08/24 11:11, Petr Tesarik wrote: On Mon, 12 Aug 2024 09:46:51 +0530 Sourabh Jain wrote: Commit 79365026f869 ("crash: add a new kexec flag for hotplug support") generalizes the crash hotplug support to allow architectures to update multiple kexec segments on CPU/Memory hotpl

[PATCH v2] Document/kexec: Generalize crash hotplug description

2024-08-11 Thread Sourabh Jain
same. No functional change. Cc: Petr Tesarik Cc: Hari Bathini Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Cc: linuxppc-...@lists.ozlabs.org Cc: x...@kernel.org Signed-off-by: Sourabh Jain --- Changelog: Since v1: https://lore.kernel.org/all/20240805050829.297171-1-sourabhj...@lin

Re: [PATCH] Document/kexec: Generalize crash hotplug description

2024-08-09 Thread Sourabh Jain
Hello Baoquan, On 09/08/24 07:18, Baoquan He wrote: On 08/05/24 at 10:38am, Sourabh Jain wrote: Commit 79365026f869 ("crash: add a new kexec flag for hotplug support") generalizes the crash hotplug support to allow architectures to update multiple kexec segments on CPU/Memory hotpl

Re: [PATCH] Document/kexec: Generalize crash hotplug description

2024-08-08 Thread Sourabh Jain
Hello Petr, On 08/08/24 16:54, Petr Tesařík wrote: Hi Sourabh, sorry for late reply, was on vacation and then catching up... On Mon, 5 Aug 2024 10:38:29 +0530 Sourabh Jain wrote: Commit 79365026f869 ("crash: add a new kexec flag for hotplug support") generalizes the crash hotpl

[PATCH] Document/kexec: Generalize crash hotplug description

2024-08-04 Thread Sourabh Jain
same. No functional change. Cc: Petr Tesarik Cc: Hari Bathini Cc: kexec@lists.infradead.org Cc: linux-ker...@vger.kernel.org Cc: linuxppc-...@lists.ozlabs.org Cc: x...@kernel.org Signed-off-by: Sourabh Jain --- Discussion about the documentation update: https://lore.kernel.org/all/68d0328d-531a

Re: [PATCH v18 0/6] powerpc/crash: Kernel handling of CPU and memory hotplug

2024-08-04 Thread Sourabh Jain
Hello Jinjie, On 05/08/24 07:58, Jinjie Ruan wrote: On 2024/3/26 13:54, Sourabh Jain wrote: Commit 247262756121 ("crash: add generic infrastructure for crash hotplug support") added a generic infrastructure that allows architectures to selectively update the kdump image component

Re: [PATCH] kexec/crash: no crash update when kexec in progress

2024-08-01 Thread Sourabh Jain
Hello Baoquan, On 01/08/24 13:13, Baoquan He wrote: On 07/31/24 at 08:57pm, Sourabh Jain wrote: The following errors are observed when kexec is done with SMT=off on powerpc. [ 358.458385] Removing IBM Power 842 compression device [ 374.795734] kexec_core: Starting new kernel [ 374.795748

Re: [PATCH] kexec/crash: no crash update when kexec in progress

2024-07-31 Thread Sourabh Jain
Hello Michael, On 01/08/24 08:04, Michael Ellerman wrote: Sourabh Jain writes: The following errors are observed when kexec is done with SMT=off on powerpc. [ 358.458385] Removing IBM Power 842 compression device [ 374.795734] kexec_core: Starting new kernel [ 374.795748] kexec: Waking

[PATCH] kexec/crash: no crash update when kexec in progress

2024-07-31 Thread Sourabh Jain
n Cc: kexec@lists.infradead.org Cc: linuxppc-...@ozlabs.org Cc: linux-ker...@vger.kernel.org Cc: x...@kernel.org Reported-by: Sachin P Bappalige Signed-off-by: Sourabh Jain --- kernel/crash_core.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/kernel/crash_core.c b/kernel/crash_core.c

Re: [PATCH] sysfs/cpu: Make crash_hotplug attribute world-readable

2024-07-11 Thread Sourabh Jain
On 12/07/24 12:18, Petr Tesarik wrote: On Fri, 12 Jul 2024 12:01:29 +0530 Sourabh Jain wrote: Hello Petr, On 12/07/24 11:51, Petr Tesařík wrote: On Fri, 12 Jul 2024 10:00:09 +0530 Sourabh Jain wrote: Hello Petr, Just want to mentioned few points about the commit message. No strong

Re: [PATCH] sysfs/cpu: Make crash_hotplug attribute world-readable

2024-07-11 Thread Sourabh Jain
Hello Petr, On 12/07/24 11:51, Petr Tesařík wrote: On Fri, 12 Jul 2024 10:00:09 +0530 Sourabh Jain wrote: Hello Petr, Just want to mentioned few points about the commit message. No strong opinion on changing the commit message. On 11/07/24 16:04, Petr Tesarik wrote: From: Petr Tesarik

Re: [PATCH] sysfs/cpu: Make crash_hotplug attribute world-readable

2024-07-11 Thread Sourabh Jain
ee, it doesn't have to be readable by admin only. Acked-by: Sourabh Jain Thanks for the patch. - Sourabh ___ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec

Re: [PATCH v3 1/3] kexec_load: Use new kexec flag for hotplug support

2024-07-08 Thread Sourabh Jain
Hello Baoquan, On 08/07/24 16:00, Baoquan He wrote: On 07/07/24 at 08:54pm, Sourabh Jain wrote: Kernel commit 79365026f869 (crash: add a new kexec flag for hotplug support) has introduced a new kexec flag to generalize hotplug support. The newly introduced kexec flags for hotplug allow

Re: [PATCH v3 1/3] kexec_load: Use new kexec flag for hotplug support

2024-07-08 Thread Sourabh Jain
Hello Baoquan, On 08/07/24 07:09, Baoquan He wrote: Hi Sourabh, On 07/07/24 at 08:54pm, Sourabh Jain wrote: Kernel commit 79365026f869 (crash: add a new kexec flag for hotplug support) has introduced a new kexec flag to generalize hotplug support. The newly introduced kexec flags for hotplug

Re: [ANNOUNCE] kexec-tools v2.0.29 preparation

2024-07-07 Thread Sourabh Jain
week so they can be considered for inclusion in an rc release. It would be helpful if we could consider the below patch series for the v2.0.29 release. https://lore.kernel.org/all/20240707152456.87899-1-sourabhj...@linux.ibm.com/ Thanks, Sourabh Jain

[PATCH v3 2/3] powerpc/kexec_load: add hotplug support

2024-07-07 Thread Sourabh Jain
upta Cc: Baoquan He Cc: Coiby Xu Cc: Mahesh Salgaonkar Cc: Simon Horman Acked-by: Hari Bathini Signed-off-by: Sourabh Jain --- kexec/arch/ppc64/crashdump-ppc64.c | 16 +- kexec/arch/ppc64/fdt.c | 236 +++- kexec/arch/ppc64/include/arch/fdt.h | 2 +- ke

[PATCH v3 3/3] doc/hotplug: update man and --help

2024-07-07 Thread Sourabh Jain
Update the man page and --help option to make the description of the --hotplug option easier to understand. Cc: Aditya Gupta Cc: Coiby Xu Cc: Mahesh Salgaonkar Cc: Simon Horman Acked-by: Baoquan He Acked-by: Hari Bathini Signed-off-by: Sourabh Jain --- kexec/kexec.8 | 8 kexec

[PATCH v3 0/3] Enable crash hotplug support on powerpc

2024-07-07 Thread Sourabh Jain
from arch_do_exclude_segment(). 2/3 - Updated --hotplug option description 3/3 v1: https://lists.infradead.org/pipermail/kexec/2024-May/030051.html Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Simon Horman Cc: Sourabh Jain Sourabh Ja

[PATCH v3 1/3] kexec_load: Use new kexec flag for hotplug support

2024-07-07 Thread Sourabh Jain
used for x86 for now. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Simon Horman Signed-off-by: Sourabh Jain --- kexec/arch/arm/kexec-arm.c | 5 kexec/arch/arm64/kexec-arm64.c | 5 kexec/arch/cris/kexec-cris.c

Re: [PATCH v3 3/3] doc/hotplug: update man and --help

2024-07-03 Thread Sourabh Jain
On 03/07/24 11:00, Baoquan He wrote: On 07/02/24 at 10:00am, Sourabh Jain wrote: Update the man page and --help option to make the description of the --hotplug option easier to understand. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Mahesh Salgaonkar Cc: Simon Horman Acked-by: Hari

Re: [PATCH v3 1/3] kexec_load: Use new kexec flag for hotplug support

2024-07-03 Thread Sourabh Jain
Hello Baoquan, On 03/07/24 10:01, Baoquan He wrote: On 07/02/24 at 10:00am, Sourabh Jain wrote: .. diff --git a/kexec/arch/i386/kexec-x86.c b/kexec/arch/i386/kexec-x86.c index 444cb69..b4947a0 100644 --- a/kexec/arch/i386/kexec-x86.c +++ b/kexec/arch/i386/kexec-x86.c @@ -208,3 +208,11

[PATCH v3 3/3] doc/hotplug: update man and --help

2024-07-01 Thread Sourabh Jain
Update the man page and --help option to make the description of the --hotplug option easier to understand. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Mahesh Salgaonkar Cc: Simon Horman Acked-by: Hari Bathini Signed-off-by: Sourabh Jain --- Changelog: >From v2 -> v3 - U

[PATCH v3 2/3] powerpc/kexec_load: add hotplug support

2024-07-01 Thread Sourabh Jain
upta Cc: Baoquan He Cc: Coiby Xu Cc: Mahesh Salgaonkar Cc: Simon Horman Acked-by: Hari Bathini Signed-off-by: Sourabh Jain --- Changelog: >From v2 -> v3: - Added a Acked-by, no functional changes. >From v1 -> v2: - Find CPUs in the system using the /sys/devices/system/

[PATCH v3 1/3] kexec_load: Use new kexec flag for hotplug support

2024-07-01 Thread Sourabh Jain
KEXEC_LIVE_UPDATE update flag, it is removed. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Mahesh Salgaonkar Cc: Simon Horman Acked-by: Hari Bathini Signed-off-by: Sourabh Jain --- * No changes in v2. --- kexec/arch/arm/kexec-arm.c | 5 + kexec/arch/arm64/kexec-arm64.c

Re: [PATCH v2 3/3] doc/hotplug: update man and --help

2024-06-26 Thread Sourabh Jain
On 26/06/24 15:51, Hari Bathini wrote: On 14/06/24 12:37 am, Sourabh Jain wrote: Update the man page and --help option to make the description of the --hotplug option easier to understand. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Simon

Re: [PATCH v2 2/3] powerpc/kexec_load: add hotplug support

2024-06-26 Thread Sourabh Jain
On 26/06/24 15:37, Hari Bathini wrote: On 14/06/24 12:37 am, Sourabh Jain wrote: Kernel commits b741092d5976 ("powerpc/crash: add crash CPU hotplug support") and 849599b702ef ("powerpc/crash: add crash memory hotplug support") added crash CPU/Memory hotplug support on

Re: [PATCH v2 1/3] kexec_load: Use new kexec flag for hotplug support

2024-06-25 Thread Sourabh Jain
Hello Baoquan, On 26/06/24 09:20, Baoquan He wrote: On 06/25/24 at 01:51pm, Sourabh Jain wrote: Any review/comments on this patch series. I try to have a look, while there's conflict when applying to the latest kexec-tools. This patch series apply cleanly on master branch of below

Re: [PATCH v2 1/3] kexec_load: Use new kexec flag for hotplug support

2024-06-25 Thread Sourabh Jain
Hello Baoquan, On 26/06/24 09:20, Baoquan He wrote: On 06/25/24 at 01:51pm, Sourabh Jain wrote: Any review/comments on this patch series. I try to have a look, while there's conflict when applying to the latest kexec-tools. Thanks for looking into the patch series. I will rebase the

Re: [PATCH v2 1/3] kexec_load: Use new kexec flag for hotplug support

2024-06-25 Thread Sourabh Jain
Any review/comments on this patch series. Thnaks Sourabh Jain On 14/06/24 00:37, Sourabh Jain wrote: Kernel commit 79365026f869 (crash: add a new kexec flag for hotplug support) has introduced a new kexec flag to generalize hotplug support. The newly introduced kexec flags for hotplug allow

[PATCH v2 3/3] doc/hotplug: update man and --help

2024-06-13 Thread Sourabh Jain
Update the man page and --help option to make the description of the --hotplug option easier to understand. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Simon Horman Signed-off-by: Sourabh Jain --- Changelog: Since v1: - Updated --hotplug

[PATCH v2 2/3] powerpc/kexec_load: add hotplug support

2024-06-13 Thread Sourabh Jain
upta Cc: Baoquan He Cc: Coiby Xu Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Simon Horman Signed-off-by: Sourabh Jain --- Changelog: Since v1: - Find CPUs in the system using the /sys/devices/system/cpu/present sysfs instead of traversing all nodes under /proc/device-tree/cpus. - Add

[PATCH v2 1/3] kexec_load: Use new kexec flag for hotplug support

2024-06-13 Thread Sourabh Jain
KEXEC_LIVE_UPDATE update flag, it is removed. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Mahesh Salgaonkar Cc: Simon Horman Acked-by: Hari Bathini Signed-off-by: Sourabh Jain --- * No changes in v2. --- kexec/arch/arm/kexec-arm.c | 5 + kexec/arch/arm64/kexec-arm64.c

Re: [PATCH 3/3] doc/hotplug: update man and --help

2024-06-10 Thread Sourabh Jain
Hello Hari, On 10/06/24 14:49, Hari Bathini wrote: On 22/05/24 6:43 pm, Sourabh Jain wrote: Update the man page and --help option to make the description of the --hotplug option easier to understand. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Hari Bathini Cc: Mahesh Salgaonkar

Re: [PATCH 2/3] powerpc/kexec_load: add hotplug support

2024-06-10 Thread Sourabh Jain
Hello Hari, On 10/06/24 15:08, Hari Bathini wrote: On 22/05/24 6:43 pm, Sourabh Jain wrote: Kernel commits b741092d5976 ("powerpc/crash: add crash CPU hotplug support") and 849599b702ef ("powerpc/crash: add crash memory hotplug support") added crash CPU/Memory hotplu

Re: [PATCH 1/3] kexec_load: Use new kexec flag for hotplug support

2024-06-10 Thread Sourabh Jain
Hello Hari, On 10/06/24 14:22, Hari Bathini wrote: On 22/05/24 6:43 pm, Sourabh Jain wrote: Kernel commit 79365026f869 (crash: add a new kexec flag for hotplug support) has introduced a new kexec flag to generalize hotplug support. The newly introduced kexec flags for hotplug allow

Re: [PATCH 1/3] kexec_load: Use new kexec flag for hotplug support

2024-05-29 Thread Sourabh Jain
Hello Aditya, On 28/05/24 17:03, Aditya Gupta wrote: Hello sourabh, On Wed, May 22, 2024 at 06:43:51PM GMT, Sourabh Jain wrote: Kernel commit 79365026f869 (crash: add a new kexec flag for hotplug support) has introduced a new kexec flag to generalize hotplug support. The newly introduced

[PATCH 3/3] doc/hotplug: update man and --help

2024-05-22 Thread Sourabh Jain
Update the man page and --help option to make the description of the --hotplug option easier to understand. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Hari Bathini Cc: Mahesh Salgaonkar Signed-off-by: Sourabh Jain --- kexec/kexec.8 | 8 kexec/kexec.c | 3 ++- 2 files changed

[PATCH 2/3] powerpc/kexec_load: add hotplug support

2024-05-22 Thread Sourabh Jain
upta Cc: Baoquan He Cc: Coiby Xu Cc: Hari Bathini Cc: Mahesh Salgaonkar Signed-off-by: Sourabh Jain --- kexec/arch/ppc64/crashdump-ppc64.c | 16 ++- kexec/arch/ppc64/fdt.c | 200 +++- kexec/arch/ppc64/include/arch/fdt.h | 2 +- kexec/arch/ppc64/kexe

[PATCH 1/3] kexec_load: Use new kexec flag for hotplug support

2024-05-22 Thread Sourabh Jain
KEXEC_LIVE_UPDATE update flag, it is removed. Cc: Aditya Gupta Cc: Baoquan He Cc: Coiby Xu Cc: Hari Bathini Cc: Mahesh Salgaonkar Signed-off-by: Sourabh Jain --- kexec/arch/arm/kexec-arm.c | 5 + kexec/arch/arm64/kexec-arm64.c | 4 kexec/arch/cris/kexec-cris.c

  1   2   3   4   >