Re: [PATCH v2 0/4] powerpc/4xx: Adjustments for four function implementations

2024-01-05 Thread Markus Elfring
> Date: Sat, 25 Mar 2023 16:10:23 +0100 > > Some update suggestions were taken into account > from static source code analysis. > > Markus Elfring (4): > Fix exception handling in ppc4xx_pciex_port_setup_hose() > Fix exception handling in ppc4xx_probe_pcix_bridge() > Fix exception handling in

Re: [PATCH resent v2 0/2] powerpc/pseries: Fixes for exception handling in pSeries_reconfig_add_node()

2024-01-05 Thread Markus Elfring
> Date: Tue, 21 Mar 2023 11:26:32 +0100 > > A few update suggestions were taken into account > from static source code analysis. > > Markus Elfring (2): > Do not pass an error pointer to of_node_put() > Fix exception handling > > arch/powerpc/platforms/pseries/reconfig.c | 26 -

[PATCH 5/5] crash: clean up CRASH_DUMP

2024-01-05 Thread Baoquan He
By splitting CRASH_CORE into CRASH_RESERVE and VMCORE_INFO, and cleaning up the dependency of FA_DMUMP on CRASH_DUMP, now we can rearrange CRASH_DUMP to depend on KEXEC_CORE, and select CRASH_RESERVE and VMCORE_INFO. KEXEC_CORE won't select CRASH_RESERVE and VMCORE_INFO any more because KEXEC_CO

[PATCH 4/5] crash: remove dependency of FA_DUMP on CRASH_DUMP

2024-01-05 Thread Baoquan He
In kdump kernel, /proc/vmcore is an elf file which maps the crashed kernel's read_from_oldmemmemory content. Its elf header is constructed in 1st kernel and passed to kdump kernel via elfcorehdr_addr. Config CRASH_DUMP enables the code of 1st kernel's old memory accessing in different architecture

[PATCH 3/5] crash: rename crash_core to vmcore_info

2024-01-05 Thread Baoquan He
Now only vmcoreinfo handling related code is in crash_core.c, so do the renaming as follows: kernel/{crash_core.c => vmcore_info.c} arch/xxx/kernel/{crash_core.c => vmcore_info.c} include/linux/{crash_core.h => vmcore_info.h} CONFIG_CRASH_CORE => CONFIG_VMCORE_INFO And also update the old if

[PATCH 2/5] kexec: split crashkernel reservation code out from crash_core.c

2024-01-05 Thread Baoquan He
Both kdump and fa_dump of ppc rely on crashkernel reservation. Move the relevant codes into separate files: crash_reserve.c, include/linux/crash_reserve.h. And also add config item CRASH_RESERVE to control its enabling of the codes. And update confit items which has relationship with crashkernel r

[PATCH 1/5] kexec_core: move kdump related codes from crash_core.c to kexec_core.c

2024-01-05 Thread Baoquan He
In commit 6f991cc363a3 ("crash: move a few code bits to setup support of crash hotplug"), some elfcorehdr processing codes were moved to kernel/crash_core.c so that they can be shared by kexec_load and kexec_file_load interface. And later in commit 247262756121 ("crash: add generic infrastructure f

[PATCH 0/5] crash: clean up kdump related config items

2024-01-05 Thread Baoquan He
Motivation: = Previously, LKP reported a building error. When investigating, it can't be resolved reasonablly with the present messy kdump config items. https://lore.kernel.org/oe-kbuild-all/202312182200.ka7mzifq-...@intel.com/ The kdump (crash dumping) related config items could cau