Re: [PATCHv9 2/2] powerpc/setup: Loosen the mapping between cpu logical id and its seq in dt

2023-11-26 Thread Hari Bathini
Hi Pingfan, Michael, On 17/10/23 4:03 pm, Hari Bathini wrote: On 17/10/23 7:58 am, Pingfan Liu wrote: *** Idea *** For kexec -p, the boot cpu can be not the cpu0, this causes the problem of allocating memory for paca_ptrs[]. However, in theory, there is no requirement to assign cpu's logical

Re: [PATCH] crash_core: export vmemmap when CONFIG_SPARSEMEM_VMEMMAP is enabled

2023-11-26 Thread Shijie Huang
在 2023/11/27 10:51, Baoquan He 写道: Hi, On 11/27/23 at 10:07am, Huang Shijie wrote: In memory_model.h, if CONFIG_SPARSEMEM_VMEMMAP is configed, kernel will use vmemmap to do the __pfn_to_page/page_to_pfn, and kernel will not use the "classic sparse" to do the __pfn_to_page/page_to_pfn. So expo

Re: [PATCH 0/3] kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMP

2023-11-26 Thread Baoquan He
On 11/25/23 at 06:07pm, Eric DeVolder wrote: > > On 11/23/23 01:36, Baoquan He wrote: > > Ignat reported a potential config regression was introduced by > > commit 89cde455915f ("kexec: consolidate kexec and crash options > > into kernel/Kconfig.kexec"). Please click below link for more details: >

[PATCH] kexec: avoid out of bounds in crash_exclude_mem_range()

2023-11-26 Thread fuqiang wang
When the split happened, judge whether mem->nr_ranges is equal to mem->max_nr_ranges. If it is true, return -ENOMEM. The advantage of doing this is that it can avoid array bounds caused by some bugs. E.g., Before commit 4831be702b95 ("arm64/kexec: Fix missing extra range for crashkres_low."), rese

Re: [PATCH] crash_core: export vmemmap when CONFIG_SPARSEMEM_VMEMMAP is enabled

2023-11-26 Thread Baoquan He
Hi, On 11/27/23 at 10:07am, Huang Shijie wrote: > In memory_model.h, if CONFIG_SPARSEMEM_VMEMMAP is configed, > kernel will use vmemmap to do the __pfn_to_page/page_to_pfn, > and kernel will not use the "classic sparse" to do the > __pfn_to_page/page_to_pfn. > > So export the vmemmap when CONFIG_

Re: [PATCH v2] LoongArch: Load vmlinux.efi to the link address

2023-11-26 Thread RuiRui Yang
On Mon, 27 Nov 2023 at 09:53, RuiRui Yang wrote: > > On Sat, 25 Nov 2023 at 14:54, WANG Rui wrote: > > > > Currently, kexec loads vmlinux.efi to address 0 instead of the link > > address. This causes kexec to fail to boot the new vmlinux.efi on qemu. > > > > pei_loongarch_load: kernel_segment:

[PATCH] crash_core: export vmemmap when CONFIG_SPARSEMEM_VMEMMAP is enabled

2023-11-26 Thread Huang Shijie
In memory_model.h, if CONFIG_SPARSEMEM_VMEMMAP is configed, kernel will use vmemmap to do the __pfn_to_page/page_to_pfn, and kernel will not use the "classic sparse" to do the __pfn_to_page/page_to_pfn. So export the vmemmap when CONFIG_SPARSEMEM_VMEMMAP is configed. This makes the user applicatio

Re: [PATCH v2] LoongArch: Load vmlinux.efi to the link address

2023-11-26 Thread RuiRui Yang
On Sat, 25 Nov 2023 at 14:54, WANG Rui wrote: > > Currently, kexec loads vmlinux.efi to address 0 instead of the link > address. This causes kexec to fail to boot the new vmlinux.efi on qemu. > > pei_loongarch_load: kernel_segment: > pei_loongarch_load: kernel_entry: 000

Re: [PATCH v2 4/7] kexec_file, arm64: print out debugging message if required

2023-11-26 Thread Baoquan He
h subject: [PATCH v2 4/7] kexec_file, arm64: print out debugging message > if required > config: arm64-randconfig-001-20231126 > (https://download.01.org/0day-ci/archive/20231126/202311260548.1haxcdne-...@intel.com/config) > compiler: clang version 14.0.6 (https://github.com/llvm/llvm-proje