Re: [PATCH 2/2] arch/powerpc: hotplug driver bridge support

2024-05-13 Thread Sourabh Jain
o, 0));    }     } +} +EXPORT_SYMBOL_GPL(pci_traverse_sibling_nodes_and_scan_slot); What is the need for exporting the above function? + DECLARE_PCI_FIXUP_EARLY(PCI_ANY_ID, PCI_ANY_ID, pci_dev_pdn_setup); - Sourabh Jain

[PATCH v2 2/2] powerpc/kexec_file: fix cpus node update to FDT

2024-05-10 Thread Sourabh Jain
Gupta Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: "Naveen N. Rao" Signed-off-by: Sourabh Jain --- * No changes in v2. --- arch/powerpc/kexec/core_64.c | 53 +--- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a

[PATCH v2 1/2] powerpc/kexec_file: fix extra size calculation for kexec FDT

2024-05-10 Thread Sourabh Jain
parameter to the setup_new_fdt_ppc64 function, it was noticed that there were a couple of unused parameters, so they were removed. Cc: Aditya Gupta Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: "Naveen N. Rao" Signed-off-by: Sourabh Jain --- Changelog:

[PATCH v2 0/2] powerpc: kexec fixes

2024-05-10 Thread Sourabh Jain
lerman Cc: "Naveen N. Rao" Sourabh Jain (2): powerpc/kexec_file: fix extra size calculation for kexec FDT powerpc/kexec_file: fix cpus node update to FDT arch/powerpc/include/asm/kexec.h | 6 ++-- arch/powerpc/kexec/core_64.c | 53 +-- arch/powerpc/kexec

[PATCH 2/2] powerpc/kexec_file: fix cpus node update to FDT

2024-05-08 Thread Sourabh Jain
Gupta Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: "Naveen N. Rao" Signed-off-by: Sourabh Jain --- arch/powerpc/kexec/core_64.c | 53 +--- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/kexec

[PATCH 0/2] powerpc: kexec fixes

2024-05-08 Thread Sourabh Jain
Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: "Naveen N. Rao" Sourabh Jain (2): powerpc/kexec_file: fix extra size calculation for kexec FDT powerpc/kexec_file: fix cpus node update to FDT arch/powerpc/include/asm/kexec.h | 6 ++-- arch/powerpc/kexec

[PATCH 1/2] powerpc/kexec_file: fix extra size calculation for kexec FDT

2024-05-08 Thread Sourabh Jain
parameter to the setup_new_fdt_ppc64 function, it was noticed that there were a couple of unused parameters, so they were removed. Cc: Aditya Gupta Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: "Naveen N. Rao" Signed-off-by: Sourabh Jain --- arch/powerpc/include/a

[PATCH] powerpc/crash: remove unnecessary NULL check before kvfree()

2024-05-02 Thread Sourabh Jain
Rothwell Signed-off-by: Sourabh Jain --- arch/powerpc/kexec/crash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kexec/crash.c b/arch/powerpc/kexec/crash.c index 21b193e938a3..9ac3266e4965 100644 --- a/arch/powerpc/kexec/crash.c +++ b/arch/powerpc/kexec

[PATCH v19 6/6] powerpc/crash: add crash memory hotplug support

2024-04-26 Thread Sourabh Jain
odate additional memory ranges and the elfcorehdr segment is not considered for SHA calculation, making it safe to update. The changes related to this feature are kept under the CRASH_HOTPLUG config, and it is enabled by default. Signed-off-by: Sourabh Jain Acked-by: Hari Bathini Cc: Akhil Raj C

[PATCH v19 5/6] powerpc/crash: add crash CPU hotplug support

2024-04-26 Thread Sourabh Jain
nabled by default. Signed-off-by: Sourabh Jain Acked-by: Hari Bathini Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Greg Kroah-Hartman Cc: Laurent

[PATCH v19 3/6] powerpc/kexec: move *_memory_ranges functions to ranges.c

2024-04-26 Thread Sourabh Jain
red to be public. Mark them as static and removed them from kexec_ranges.h header file. Finally, remove the CONFIG_KEXEC_FILE build dependency for range.c because it is required for other config, such as CONFIG_CRASH_DUMP. No functional changes are intended. Signed-off-by: Sourabh Jain Acked-by: H

[PATCH v19 4/6] PowerPC/kexec: make the update_cpus_node() function public

2024-04-26 Thread Sourabh Jain
lls. No functional changes are intended. Signed-off-by: Sourabh Jain Acked-by: Hari Bathini Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: G

[PATCH v19 2/6] crash: add a new kexec flag for hotplug support

2024-04-26 Thread Sourabh Jain
ng the x86 crash hotplug support in line with the above points, the following changes have been made: - Introduce the arch_crash_hotplug_support function to process kexec flags and determine crash hotplug support - Remove the arch_crash_hotplug_[cpu|memory]_support functions Signed-off-by: So

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

2024-04-26 Thread Sourabh Jain
Zohar Cc: Naveen N Rao Cc: Oscar Salvador Cc: Stephen Rothwell Cc: Thomas Gleixner Cc: Valentin Schneider Cc: Vivek Goyal Cc: ke...@lists.infradead.org Cc: x...@kernel.org Sourabh Jain (6): crash: forward memory_notify arg to arch crash hotplug handler crash: add a new kexec flag for hotplug

[PATCH v19 1/6] crash: forward memory_notify arg to arch crash hotplug handler

2024-04-26 Thread Sourabh Jain
()` and `arch_crash_handle_hotplug_event()` to accept the `memory_notify` object as an argument from crash memory hotplug notifier. Since no such object is available in the case of CPU hotplug event, the crash CPU hotplug notifier `crash_cpuhp_online()` passes NULL to the crash hotplug handler. Signed-off-by: Sourabh Jain Acked

[PATCH v10 3/3] Documentation/powerpc: update fadump implementation details

2024-04-22 Thread Sourabh Jain
gic number in the future. Therefore, remove the corresponding TODO from the document. Signed-off-by: Sourabh Jain Cc: Aditya Gupta Cc: Aneesh Kumar K.V Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao --- .../arch/powerpc/firmware-assisted-dump.

[PATCH v10 2/3] powerpc/fadump: add hotplug_ready sysfs interface

2024-04-22 Thread Sourabh Jain
ump kernel. This eliminates the need to regenerate the elfcorehdr during memory hotplug or online/offline events. Create a sysfs entry at /sys/kernel/fadump/hotplug_ready to let userspace know that fadump re-registration is not required for memory add/remove events. Signed-off-by: Sourabh Jain

[PATCH v10 1/3] powerpc: make fadump resilient with memory add/remove events

2024-04-22 Thread Sourabh Jain
: if either first/crashed kernel or second/fadump kernel do not have the changes introduced here then kernel fail to collect the dump and prints relevant error message on the console. Signed-off-by: Sourabh Jain Cc: Aditya Gupta Cc: "Aneesh Kumar K.V" Cc: Hari Bathini Cc: Mahesh Salg

[PATCH v10 0/3] powerpc: make fadump resilient with memory add/remove events

2024-04-22 Thread Sourabh Jain
ndentation issues reported by the checkpatch script. - Rebased it to 6.6.0-rc3 v1: 17 Sep 2023 https://lore.kernel.org/all/20230917080225.561627-1-sourabhj...@linux.ibm.com/ Cc: Aditya Gupta Cc: "Aneesh Kumar K.V" Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao

[PATCH v9 0/3] powerpc: make fadump resilient with memory add/remove events

2024-04-16 Thread Sourabh Jain
com/ Cc: Aditya Gupta Cc: "Aneesh Kumar K.V" Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao Sourabh Jain (3): powerpc: make fadump resilient with memory add/remove events powerpc/fadump: add hotplug_ready sysfs interface Documentation/powerpc:

[PATCH v9 3/3] Documentation/powerpc: update fadump implementation details

2024-04-16 Thread Sourabh Jain
gic number in the future. Therefore, remove the corresponding TODO from the document. Signed-off-by: Sourabh Jain Cc: Aditya Gupta Cc: Aneesh Kumar K.V Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao --- .../arch/powerpc/firmware-assisted-dump.

[PATCH v9 1/3] powerpc: make fadump resilient with memory add/remove events

2024-04-16 Thread Sourabh Jain
: if either first/crashed kernel or second/fadump kernel do not have the changes introduced here then kernel fail to collect the dump and prints relevant error message on the console. Signed-off-by: Sourabh Jain Cc: Aditya Gupta Cc: "Aneesh Kumar K.V" Cc: Hari Bathini Cc: Mahesh Salg

[PATCH v9 2/3] powerpc/fadump: add hotplug_ready sysfs interface

2024-04-16 Thread Sourabh Jain
ump kernel. This eliminates the need to regenerate the elfcorehdr during memory hotplug or online/offline events. Create a sysfs entry at /sys/kernel/fadump/hotplug_ready to let userspace know that fadump re-registration is not required for memory add/remove events. Signed-off-by: Sourabh Jain

[PATCH v18 6/6] powerpc/crash: add crash memory hotplug support

2024-03-26 Thread Sourabh Jain
odate additional memory ranges and the elfcorehdr segment is not considered for SHA calculation, making it safe to update. The changes related to this feature are kept under the CRASH_HOTPLUG config, and it is enabled by default. Signed-off-by: Sourabh Jain Acked-by: Hari Bathini Cc: Akhil Raj C

[PATCH v18 5/6] powerpc/crash: add crash CPU hotplug support

2024-03-25 Thread Sourabh Jain
nabled by default. Signed-off-by: Sourabh Jain Acked-by: Hari Bathini Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Greg Kroah-Hartman Cc: Laurent

[PATCH v18 3/6] powerpc/kexec: move *_memory_ranges functions to ranges.c

2024-03-25 Thread Sourabh Jain
red to be public. Mark them as static and removed them from kexec_ranges.h header file. Finally, remove the CONFIG_KEXEC_FILE build dependency for range.c because it is required for other config, such as CONFIG_CRASH_DUMP. No functional changes are intended. Signed-off-by: Sourabh Jain Acked-by: H

[PATCH v18 4/6] PowerPC/kexec: make the update_cpus_node() function public

2024-03-25 Thread Sourabh Jain
lls. No functional changes are intended. Signed-off-by: Sourabh Jain Acked-by: Hari Bathini Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: G

[PATCH v18 2/6] crash: add a new kexec flag for hotplug support

2024-03-25 Thread Sourabh Jain
ng the x86 crash hotplug support in line with the above points, the following changes have been made: - Introduce the arch_crash_hotplug_support function to process kexec flags and determine crash hotplug support - Remove the arch_crash_hotplug_[cpu|memory]_support functions Signed-off-by: So

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

2024-03-25 Thread Sourabh Jain
thini Cc: Laurent Dufour Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Mimi Zohar Cc: Naveen N Rao Cc: Oscar Salvador Cc: Thomas Gleixner Cc: Valentin Schneider Cc: Vivek Goyal Cc: ke...@lists.infradead.org Cc: x...@kernel.org Sourabh Jain (6): crash: forward memory_notify arg to arch cra

[PATCH v18 1/6] crash: forward memory_notify arg to arch crash hotplug handler

2024-03-25 Thread Sourabh Jain
()` and `arch_crash_handle_hotplug_event()` to accept the `memory_notify` object as an argument from crash memory hotplug notifier. Since no such object is available in the case of CPU hotplug event, the crash CPU hotplug notifier `crash_cpuhp_online()` passes NULL to the crash hotplug handler. Signed-off-by: Sourabh Jain Acked

Re: [PATCH v8 1/3] powerpc: make fadump resilient with memory add/remove events

2024-03-11 Thread Sourabh Jain
Hello Hari, On 11/03/24 14:08, Hari Bathini wrote: On 17/02/24 12:50 pm, Sourabh Jain wrote: Due to changes in memory resources caused by either memory hotplug or online/offline events, the elfcorehdr, which describes the CPUs and memory of the crashed kernel to the kernel that collects

Re: [PATCH v17 6/6] powerpc/crash: add crash memory hotplug support

2024-03-04 Thread Sourabh Jain
On 02/03/24 18:49, Hari Bathini wrote: On 26/02/24 2:11 pm, Sourabh Jain wrote: Extend the arch crash hotplug handler, as introduced by the patch title ("powerpc: add crash CPU hotplug support"), to also support memory add/remove events. Elfcorehdr describes the memory of the cr

Re: [PATCH v17 2/6] crash: add a new kexec flag for hotplug support

2024-03-03 Thread Sourabh Jain
Hello Hari, On 02/03/24 18:47, Hari Bathini wrote: On 26/02/24 2:11 pm, Sourabh Jain wrote: Commit a72bbec70da2 ("crash: hotplug support for kexec_load()") introduced a new kexec flag, `KEXEC_UPDATE_ELFCOREHDR`. Kexec tool uses this flag to indicate to the kernel that it is safe

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

2024-02-29 Thread Sourabh Jain
Hello Baoquan, On 29/02/24 19:21, Baoquan He wrote: Hi Sourabh, On 02/26/24 at 02:11pm, Sourabh Jain wrote: Commit 247262756121 ("crash: add generic infrastructure for crash hotplug support") added a generic infrastructure that allows architectures to selectively update the k

Re: [PATCH v17 2/6] crash: add a new kexec flag for hotplug support

2024-02-29 Thread Sourabh Jain
Hello On 29/02/24 12:58, Baoquan He wrote: On 02/26/24 at 02:11pm, Sourabh Jain wrote: ..snip... diff --git a/kernel/crash_core.c b/kernel/crash_core.c index 70fa8111a9d6..630c4fd7ea39 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -496,7 +496,7 @@ static DEFINE_MUTEX

Re: [PATCH v17 3/6] powerpc/kexec: move *_memory_ranges functions to ranges.c

2024-02-29 Thread Sourabh Jain
On 29/02/24 13:41, Baoquan He wrote: On 02/26/24 at 02:11pm, Sourabh Jain wrote: Move the following functions form kexec/{file_load_64.c => ranges.c} and make them public so that components other KEXEC_FILE can also

Re: [PATCH v17 2/6] crash: add a new kexec flag for hotplug support

2024-02-29 Thread Sourabh Jain
Hello Baoquan, On 29/02/24 12:58, Baoquan He wrote: On 02/26/24 at 02:11pm, Sourabh Jain wrote: ..snip... diff --git a/kernel/crash_core.c b/kernel/crash_core.c index 70fa8111a9d6..630c4fd7ea39 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -496,7 +496,7 @@ static

Re: [PATCH v17 2/6] crash: add a new kexec flag for hotplug support

2024-02-29 Thread Sourabh Jain
On 29/02/24 11:26, Baoquan He wrote: On 02/29/24 at 10:35am, Sourabh Jain wrote: Hello Baoquan, Do you have any comments or suggestions for this patch series, especially for this patch? Have applied this series and reviewing, will ack or add comment if any concern. Thanks. Thanks

Re: [PATCH v8 1/3] powerpc: make fadump resilient with memory add/remove events

2024-02-28 Thread Sourabh Jain
Hello Michael and Aneesh, Please let me know if you have any comments or suggestions for this patch series. Thanks, Sourabh On 17/02/24 12:50, Sourabh Jain wrote: Due to changes in memory resources caused by either memory hotplug or online/offline events, the elfcorehdr, which describes

Re: [PATCH v17 2/6] crash: add a new kexec flag for hotplug support

2024-02-28 Thread Sourabh Jain
Hello Baoquan, Do you have any comments or suggestions for this patch series, especially for this patch? Thanks, Sourabh On 26/02/24 14:11, Sourabh Jain wrote: Commit a72bbec70da2 ("crash: hotplug support for kexec_load()") introduced a new kexec flag, `KEXEC_UPDATE_ELFCOREHDR`.

[PATCH v17 6/6] powerpc/crash: add crash memory hotplug support

2024-02-26 Thread Sourabh Jain
odate additional memory ranges and the elfcorehdr segment is not considered for SHA calculation, making it safe to update. The changes related to this feature are kept under the CRASH_HOTPLUG config, and it is enabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc:

[PATCH v17 5/6] powerpc/crash: add crash CPU hotplug support

2024-02-26 Thread Sourabh Jain
nabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Greg Kroah-Hartman Cc: Hari Bathini Cc: Laurent Duf

[PATCH v17 4/6] PowerPC/kexec: make the update_cpus_node() function public

2024-02-26 Thread Sourabh Jain
lls. No functional changes are intended. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Greg Kroah-Hartman Cc: H

[PATCH v17 3/6] powerpc/kexec: move *_memory_ranges functions to ranges.c

2024-02-26 Thread Sourabh Jain
red to be public. Mark them as static and removed them from kexec_ranges.h header file. Finally, remove the CONFIG_KEXEC_FILE build dependency for range.c because it is required for other config, such as CONFIG_CRASH_DUMP. No functional changes are intended. Signed-off-by: Sourabh Jain Cc: Akhil Raj

[PATCH v17 2/6] crash: add a new kexec flag for hotplug support

2024-02-26 Thread Sourabh Jain
_file_load system calls. This simplifies kernel checks to identify hotplug support for the currently loaded kdump image by just examining the value of @hotplug_support. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD)

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

2024-02-26 Thread Sourabh Jain
MD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Greg Kroah-Hartman Cc: Hari Bathini Cc: Laurent Dufour Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Mimi Zohar Cc: Naveen N Rao Cc: Oscar Salvador Cc: Thomas Gleixner Cc: Valentin Schn

[PATCH v17 1/6] crash: forward memory_notify arg to arch crash hotplug handler

2024-02-26 Thread Sourabh Jain
()` and `arch_crash_handle_hotplug_event()` to accept the `memory_notify` object as an argument from crash memory hotplug notifier. Since no such object is available in the case of CPU hotplug event, the crash CPU hotplug notifier `crash_cpuhp_online()` passes NULL to the crash hotplug handler. Signed-off-by: Sourabh Jain Acked

Re: [PATCH linux-next 3/3] powerpc/kdump: Split KEXEC_CORE and CRASH_DUMP dependency

2024-02-22 Thread Sourabh Jain
Hello Hari, Build failure detected. On 13/02/24 17:01, Hari Bathini wrote: Remove CONFIG_CRASH_DUMP dependency on CONFIG_KEXEC. CONFIG_KEXEC_CORE was used at places where CONFIG_CRASH_DUMP or CONFIG_CRASH_RESERVE was appropriate. Replace with appropriate #ifdefs to support CONFIG_KEXEC and

Re: [PATCH v16 2/5] crash: add a new kexec flag for hotplug support

2024-02-21 Thread Sourabh Jain
On 22/02/24 09:28, Baoquan He wrote: On 02/22/24 at 09:01am, Sourabh Jain wrote: Hello Baoquan, There are a lot of code movements introduced by your patch series, 'Split crash out from kexec and clean up related config items.' https://lore.kernel.org/all

Re: [PATCH v16 2/5] crash: add a new kexec flag for hotplug support

2024-02-21 Thread Sourabh Jain
of the above patch series? Thanks, Sourabh Jain On 17/02/24 13:44, Sourabh Jain wrote: Commit a72bbec70da2 ("crash: hotplug support for kexec_load()") introduced a new kexec flag, `KEXEC_UPDATE_ELFCOREHDR`. Kexec tool uses this flag to indicate to the kernel that it is safe to modify the

Re: [PATCH v2 02/14] crash: split vmcoreinfo exporting code out from crash_core.c

2024-02-21 Thread Sourabh Jain
Hello Baoquan, On 19/01/24 20:22, Baoquan He wrote: Now move the relevant codes into separate files: kernel/crash_reserve.c, include/linux/crash_reserve.h. And add config item CRASH_RESERVE to control its enabling. Feels like this patch is more about vmcore_info.[c|h] and CONFIG_VMCORE_INFO

Re: [PATCH v2 01/14] kexec: split crashkernel reservation code out from crash_core.c

2024-02-21 Thread Sourabh Jain
Hello Baoquan, Thank you for reorganizing the kexec and kdump code with a well-defined configuration structure. While reviewing the patch series, I noticed a few typos. On 19/01/24 20:22, Baoquan He wrote: Both kdump and fa_dump of ppc rely on crashkernel reservation. Move the relevant codes

Re: [PATCH v7 1/3] powerpc: make fadump resilient with memory add/remove events

2024-02-19 Thread Sourabh Jain
Hello Hari, On 23/01/24 15:39, Hari Bathini wrote: On 11/01/24 7:39 pm, Sourabh Jain wrote: Due to changes in memory resources caused by either memory hotplug or online/offline events, the elfcorehdr, which describes the CPUs and memory of the crashed kernel to the kernel that collects

[PATCH v16 5/5] powerpc: add crash memory hotplug support

2024-02-17 Thread Sourabh Jain
odate additional memory ranges and the elfcorehdr segment is not considered for SHA calculation, making it safe to update. The changes related to this feature are kept under the CRASH_HOTPLUG config, and it is enabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc:

[PATCH v16 4/5] powerpc: add crash CPU hotplug support

2024-02-17 Thread Sourabh Jain
nabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Greg Kroah-Hartman Cc: Hari Bathini Cc: Laurent Duf

[PATCH v16 3/5] powerpc/kexec: turn some static helper functions public

2024-02-17 Thread Sourabh Jain
, these functions are utilized for in-kernel updates to kdump image during CPU/Memory hotplug or online/offline events for both kexec_load and kexec_file_load syscalls. There is no intended functional change. Signed-off-by: Sourabh Jain Reviewed-by: Laurent Dufour Cc: Akhil Raj Cc: Andrew Morton Cc

[PATCH v16 2/5] crash: add a new kexec flag for hotplug support

2024-02-17 Thread Sourabh Jain
_file_load system calls. This simplifies kernel checks to identify hotplug support for the currently loaded kdump image by just examining the value of @hotplug_support. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD)

[PATCH v16 1/5] crash: forward memory_notify arg to arch crash hotplug handler

2024-02-17 Thread Sourabh Jain
()` and `arch_crash_handle_hotplug_event()` to accept the `memory_notify` object as an argument from crash memory hotplug notifier. Since no such object is available in the case of CPU hotplug event, the crash CPU hotplug notifier `crash_cpuhp_online()` passes NULL to the crash hotplug handler. Signed-off-by: Sourabh Jain Acked

[PATCH v16 0/5] powerpc/crash: Kernel handling of CPU and memory hotplug

2024-02-17 Thread Sourabh Jain
ichael Ellerman Cc: Mimi Zohar Cc: Naveen N Rao Cc: Oscar Salvador Cc: Thomas Gleixner Cc: Valentin Schneider Cc: Vivek Goyal Cc: ke...@lists.infradead.org Cc: x...@kernel.org Sourabh Jain (5): crash: forward memory_notify arg to arch crash hotplug handler crash: add a new kexec flag fo

[PATCH v8 3/3] Documentation/powerpc: update fadump implementation details

2024-02-16 Thread Sourabh Jain
gic number in the future. Therefore, remove the corresponding TODO from the document. Signed-off-by: Sourabh Jain Cc: Aditya Gupta Cc: Aneesh Kumar K.V Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao --- .../arch/powerpc/firmware-assisted-dump.

[PATCH v8 2/3] powerpc/fadump: add hotplug_ready sysfs interface

2024-02-16 Thread Sourabh Jain
ump kernel. This eliminates the need to regenerate the elfcorehdr during memory hotplug or online/offline events. Create a sysfs entry at /sys/kernel/fadump/hotplug_ready to let userspace know that fadump re-registration is not required for memory add/remove events. Signed-off-by: Sourabh Jain

[PATCH v8 1/3] powerpc: make fadump resilient with memory add/remove events

2024-02-16 Thread Sourabh Jain
and fadump kernels. Note: if either first/crashed kernel or second/fadump kernel do not have the changes introduced here then kernel fail to collect the dump and prints relevant error message on the console. Signed-off-by: Sourabh Jain Cc: Aditya Gupta Cc: Aneesh Kumar K.V Cc: Hari Bathini Cc

[PATCH v8 0/3] powerpc: make fadump resilient with memory add/remove events

2024-02-16 Thread Sourabh Jain
ll/20230917080225.561627-1-sourabhj...@linux.ibm.com/ Cc: Aditya Gupta Cc: Aneesh Kumar K.V Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao Sourabh Jain (3): powerpc: make fadump resilient with memory add/remove events powerpc/fadump: add hotplug_ready sysfs

Re: [PATCH v15 2/5] crash: add a new kexec flag for hotplug support

2024-02-14 Thread Sourabh Jain
On 13/02/24 08:51, Baoquan He wrote: On 02/12/24 at 07:27pm, Sourabh Jain wrote: Hello Baoquan, On 05/02/24 08:40, Baoquan He wrote: Hi Sourabh, .. diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 802052d9c64b..7880d74dc5c4 100644 --- a/include/linux/kexec.h +++ b

Re: [PATCH v15 2/5] crash: add a new kexec flag for hotplug support

2024-02-12 Thread Sourabh Jain
Hello Baoquan, On 05/02/24 08:40, Baoquan He wrote: Hi Sourabh, Thanks for the great work. There are some concerns, please see inline comments. Thank you :) On 01/11/24 at 04:21pm, Sourabh Jain wrote: .. Now, if the kexec tool sends KEXEC_CRASH_HOTPLUG_SUPPORT kexec flag

Re: [PATCH v15 1/5] crash: forward memory_notify arg to arch crash hotplug handler

2024-02-12 Thread Sourabh Jain
On 05/02/24 08:41, Baoquan He wrote: On 01/11/24 at 04:21pm, Sourabh Jain wrote: In the event of memory hotplug or online/offline events, the crash memory hotplug notifier `crash_memhp_notifier()` receives a `memory_notify` object but doesn't forward that object to the generic

Re: [PATCH v15 5/5] powerpc: add crash memory hotplug support

2024-01-28 Thread Sourabh Jain
On 23/01/24 15:52, Hari Bathini wrote: On 11/01/24 4:21 pm, Sourabh Jain wrote: Extend the arch crash hotplug handler, as introduced by the patch title ("powerpc: add crash CPU hotplug support"), to also support memory add/remove events. Elfcorehdr describes the memory of the cr

[PATCH v7 3/3] Documentation/powerpc: update fadump implementation details

2024-01-11 Thread Sourabh Jain
gic number in the future. Therefore, remove the corresponding TODO from the document. Signed-off-by: Sourabh Jain Cc: Aditya Gupta Cc: Aneesh Kumar K.V Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao --- .../arch/powerpc/firmware-assisted-dump.

[PATCH v7 2/3] powerpc/fadump: add hotplug_ready sysfs interface

2024-01-11 Thread Sourabh Jain
ump kernel. This eliminates the need to regenerate the elfcorehdr during memory hotplug or online/offline events. Create a sysfs entry at /sys/kernel/fadump/hotplug_ready to let userspace know that fadump re-registration is not required for memory add/remove events. Signed-off-by: Sourabh Jain

[PATCH v7 1/3] powerpc: make fadump resilient with memory add/remove events

2024-01-11 Thread Sourabh Jain
of pt_regs and cpu_mask are not the same across the crashed and fadump kernel. Note: if either first/crashed kernel or second/fadump kernel do not have the changes introduced here then kernel fail to collect the dump and prints relevant error message on the console. Signed-off-by: Sourabh Jain Cc

[PATCH v7 0/3] powerpc: make fadump resilient with memory add/remove events

2024-01-11 Thread Sourabh Jain
ll/20230917080225.561627-1-sourabhj...@linux.ibm.com/ Cc: Aditya Gupta Cc: Aneesh Kumar K.V Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao Sourabh Jain (3): powerpc: make fadump resilient with memory add/remove events powerpc/fadump: add hotplug_ready sysfs interfa

[PATCH v15 1/5] crash: forward memory_notify arg to arch crash hotplug handler

2024-01-11 Thread Sourabh Jain
()` and `arch_crash_handle_hotplug_event()` to accept the `memory_notify` object as an argument from crash memory hotplug notifier. Since no such object is available in the case of CPU hotplug event, the crash CPU hotplug notifier `crash_cpuhp_online()` passes NULL to the crash hotplug handler. Signed-off-by: Sourabh Jain Cc: Akhil

[PATCH v15 0/5] powerpc/crash: Kernel handling of CPU and memory hotplug

2024-01-11 Thread Sourabh Jain
Thomas Gleixner Cc: Valentin Schneider Cc: Vivek Goyal Cc: ke...@lists.infradead.org Cc: x...@kernel.org Sourabh Jain (5): crash: forward memory_notify arg to arch crash hotplug handler crash: add a new kexec flag for hotplug support powerpc/kexec: turn some static helper functions public

[PATCH v15 5/5] powerpc: add crash memory hotplug support

2024-01-11 Thread Sourabh Jain
odate additional memory ranges and the elfcorehdr segment is not considered for SHA calculation, making it safe to update. The changes related to this feature are kept under the CRASH_HOTPLUG config, and it is enabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc:

[PATCH v15 3/5] powerpc/kexec: turn some static helper functions public

2024-01-11 Thread Sourabh Jain
, these functions are utilized for in-kernel updates to kdump image during CPU/Memory hotplug or online/offline events for both kexec_load and kexec_file_load syscalls. There is no intended functional change. Signed-off-by: Sourabh Jain Reviewed-by: Laurent Dufour Cc: Akhil Raj Cc: Andrew Morton Cc

[PATCH v15 4/5] powerpc: add crash CPU hotplug support

2024-01-11 Thread Sourabh Jain
nabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Greg Kroah-Hartman Cc: Hari Bathini Cc: Laurent Duf

[PATCH v15 2/5] crash: add a new kexec flag for hotplug support

2024-01-11 Thread Sourabh Jain
_file_load system calls. This simplifies kernel checks to identify hotplug support for the currently loaded kdump image by just examining the value of @hotplug_support. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD)

Re: [PATCH v14 3/6] crash: add a new kexec flag for FDT update

2023-12-20 Thread Sourabh Jain
Hello Baoquan, While replying to this email earlier, I mistakenly pressed "Reply to List" instead of "Reply to All." Consequently, my response was sent only to powerpc mailing list. On 17/12/23 06:29, Baoquan He wrote: On 12/17/23 at 12:27am, Sourabh Jain wrote: On 16/

Re: [RFC PATCH 1/3] powerpc/pseries/fadump: add support for multiple boot memory regions

2023-12-18 Thread Sourabh Jain
Hello Aditya, On 17/12/23 14:11, Aditya Gupta wrote: Hi sourabh, On 06/12/23 01:48, Hari Bathini wrote: From: Sourabh Jain Currently, fadump on pseries assumes a single boot memory region even though f/w supports more than one boot memory region. Add support for more boot memory regions

Re: [PATCH v14 3/6] crash: add a new kexec flag for FDT update

2023-12-17 Thread Sourabh Jain
On 17/12/23 06:29, Baoquan He wrote: On 12/17/23 at 12:27am, Sourabh Jain wrote: On 16/12/23 15:11, Baoquan He wrote: On 12/15/23 at 12:17pm, Sourabh Jain wrote: .. diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 0f6ea35879ee..bcedb7625b1f 100644 --- a/include/linux

Re: [PATCH v14 3/6] crash: add a new kexec flag for FDT update

2023-12-16 Thread Sourabh Jain
On 16/12/23 15:11, Baoquan He wrote: On 12/15/23 at 12:17pm, Sourabh Jain wrote: .. diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 0f6ea35879ee..bcedb7625b1f 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h @@ -319,6 +319,7 @@ struct kimage { #ifdef

Re: [RFC PATCH 2/3] powerpc/fadump: pass additional parameters to dump capture kernel

2023-12-15 Thread Sourabh Jain
Hello Hari, On 06/12/23 01:48, Hari Bathini wrote: For fadump case, passing additional parameters to dump capture kernel helps in minimizing the memory footprint for it and also provides the flexibility to disable components/modules, like hugepages, that are hindering the boot process of the

Re: [RFC PATCH 1/3] powerpc/pseries/fadump: add support for multiple boot memory regions

2023-12-15 Thread Sourabh Jain
Hello Hari, On 06/12/23 01:48, Hari Bathini wrote: From: Sourabh Jain Currently, fadump on pseries assumes a single boot memory region even though f/w supports more than one boot memory region. Add support for more boot memory regions to make the implementation flexible for any enhancements

Re: [PATCH v14 3/6] crash: add a new kexec flag for FDT update

2023-12-14 Thread Sourabh Jain
Hello Baoquan, On 15/12/23 07:58, Baoquan He wrote: On 12/11/23 at 02:00pm, Sourabh Jain wrote: The commit a72bbec70da2 ("crash: hotplug support for kexec_load()") introduced a new kexec flag, `KEXEC_UPDATE_ELFCOREHDR`. Kexec tool uses this flag to indicate kernel that it is safe

Re: [PATCH v14 6/6] powerpc: add crash memory hotplug support

2023-12-14 Thread Sourabh Jain
On 15/12/23 06:53, Baoquan He wrote: On 12/11/23 at 02:00pm, Sourabh Jain wrote: .. diff --git a/arch/powerpc/include/asm/kexec_ranges.h b/arch/powerpc/include/asm/kexec_ranges.h index f83866a19e87..802abf580cf0 100644 --- a/arch/powerpc/include/asm/kexec_ranges.h +++ b/arch/powerpc

Re: [PATCH v14 2/6] crash: make CPU and Memory hotplug support reporting flexible

2023-12-14 Thread Sourabh Jain
Hello Baoquan, On 14/12/23 19:43, Baoquan He wrote: On 12/11/23 at 02:00pm, Sourabh Jain wrote: Architectures' specific functions `arch_crash_hotplug_cpu_support()` and `arch_crash_hotplug_memory_support()` advertise the kernel's capability to update the kdump image on CPU and Memory hotplug

[PATCH v14 6/6] powerpc: add crash memory hotplug support

2023-12-11 Thread Sourabh Jain
nabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Eric DeVolder Cc: Greg Kroah-Hartman Cc: Hari B

[PATCH v14 5/6] powerpc: add crash CPU hotplug support

2023-12-11 Thread Sourabh Jain
s related to this feature are kept under the CRASH_HOTPLUG config, and it is enabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David

[PATCH v14 3/6] crash: add a new kexec flag for FDT update

2023-12-11 Thread Sourabh Jain
Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Eric DeVolder Cc: Greg Kroah-Hartman Cc: Hari Bathini Cc: Laurent Dufour

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

2023-12-11 Thread Sourabh Jain
Dufour Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Mimi Zohar Cc: Naveen N Rao Cc: Oscar Salvador Cc: Thomas Gleixner Cc: Valentin Schneider Cc: Vivek Goyal Cc: ke...@lists.infradead.org Cc: x...@kernel.org Sourabh Jain (6): crash: forward memory_notify arg to arch crash hotplug

[PATCH v14 4/6] powerpc/kexec: turn some static helper functions public

2023-12-11 Thread Sourabh Jain
, these functions are utilized for in-kernel updates to kdump image during CPU/Memory hotplug or online/offline events for both kexec_load and kexec_file_load syscalls. There is no intended functional change. Signed-off-by: Sourabh Jain Reviewed-by: Laurent Dufour Cc: Akhil Raj Cc: Andrew Morton Cc

[PATCH v14 1/6] crash: forward memory_notify arg to arch crash hotplug handler

2023-12-11 Thread Sourabh Jain
()` and `arch_crash_handle_hotplug_event()` to accept the `memory_notify` object as an argument from crash memory hotplug notifier. Since no such object is available in the case of CPU hotplug event, the crash CPU hotplug notifier `crash_cpuhp_online()` passes NULL to the crash hotplug handler. Signed-off-by: Sourabh Jain Cc: Akhil

[PATCH v14 2/6] crash: make CPU and Memory hotplug support reporting flexible

2023-12-11 Thread Sourabh Jain
. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Aneesh Kumar K.V Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Eric DeVolder Cc: Greg Kroah-Hartman Cc: Hari Bathini Cc: Laurent

[PATCH v6 3/3] Documentation/powerpc: update fadump implementation details

2023-12-08 Thread Sourabh Jain
gic number in the future. Therefore, remove the corresponding TODO from the document. Signed-off-by: Sourabh Jain Cc: Aditya Gupta Cc: Aneesh Kumar K.V Cc: Hari Bathini Cc: Mahesh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao --- .../arch/powerpc/firmware-assisted-dump.

[PATCH v6 2/3] powerpc/fadump: add hotplug_ready sysfs interface

2023-12-08 Thread Sourabh Jain
ump kernel. This eliminates the need to regenerate the elfcorehdr during memory hotplug or online/offline events. Create a sysfs entry at /sys/kernel/fadump/hotplug_ready to let userspace know that fadump re-registration is not required for memory add/remove events. Signed-off-by: Sourabh Jain

[PATCH v6 1/3] powerpc: make fadump resilient with memory add/remove events

2023-12-08 Thread Sourabh Jain
of pt_regs and cpu_mask are not the same across the crashed and fadump kernel. Note: if either first/crashed kernel or second/fadump kernel do not have the changes introduced here kernel fail to collect the dump and prints relevant error message on console. Signed-off-by: Sourabh Jain Cc: Aditya Gupta

[PATCH v6 0/3] powerpc: make fadump resilient with memory add/remove events

2023-12-08 Thread Sourabh Jain
sh Salgaonkar Cc: Michael Ellerman Cc: Naveen N Rao Sourabh Jain (3): powerpc: make fadump resilient with memory add/remove events powerpc/fadump: add hotplug_ready sysfs interface Documentation/powerpc: update fadump implementation details Documentation/ABI/testing/sysfs-kernel-fadump

[PATCH v13 6/6] powerpc: add crash memory hotplug support

2023-12-03 Thread Sourabh Jain
nabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: Eric DeVolder Cc: Greg Kroah-Hartman Cc: Hari Bathini Cc: Laurent Duf

[PATCH v13 5/6] powerpc: add crash CPU hotplug support

2023-12-03 Thread Sourabh Jain
s related to this feature are kept under the CRASH_HOTPLUG config, and it is enabled by default. Signed-off-by: Sourabh Jain Cc: Akhil Raj Cc: Andrew Morton Cc: Baoquan He Cc: Borislav Petkov (AMD) Cc: Boris Ostrovsky Cc: Christophe Leroy Cc: Dave Hansen Cc: Dave Young Cc: David Hildenbrand Cc: E

[PATCH v13 4/6] powerpc/kexec: turn some static helper functions public

2023-12-03 Thread Sourabh Jain
, these functions are utilized for in-kernel updates to kdump image during CPU/Memory hotplug or online/offline events for both kexec_load and kexec_file_load syscalls. There is no intended functional change. Signed-off-by: Sourabh Jain Reviewed-by: Laurent Dufour Cc: Akhil Raj Cc: Andrew Morton Cc

  1   2   3   4   >