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

2023-11-27 Thread Baoquan He
On 11/28/23 at 11:31am, Shijie Huang wrote: > > 在 2023/11/28 11:25, Baoquan He 写道: > > On 11/27/23 at 11:18am, Shijie Huang wrote: > > > 在 2023/11/27 10:51, Baoquan He 写道: > > > > Hi, > > > > > > > > On 11/27/23 at 10:07am, Huang Shijie wrote: > > > > > In memory_model.h, if

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

2023-11-27 Thread hev
Hello Simon, Could you apply this patch (v2) instead of patch (v1) [1] ? Thanks! [1] https://lore.kernel.org/kexec/20231124154658.114579-1-wang...@loongson.cn/ On Sat, Nov 25, 2023 at 2:52 PM WANG Rui wrote: > > Currently, kexec loads vmlinux.efi to address 0 instead of the link > address.

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

2023-11-27 Thread WANG Rui
Hi, On Mon, Nov 27, 2023 at 10:36 AM RuiRui Yang wrote: > > 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

[PATCH v2] drivers/base/cpu: crash data showing should depends on KEXEC_CORE

2023-11-27 Thread Baoquan He
After commit 88a6f8994421 ("crash: memory and CPU hotplug sysfs attributes"), on x86_64, if only below kernel configs related to kdump are set, compiling error are triggered. CONFIG_CRASH_CORE=y CONFIG_KEXEC_CORE=y CONFIG_CRASH_DUMP=y CONFIG_CRASH_HOTPLUG=y --

[PATCH v2] kernel/Kconfig.kexec: drop select of KEXEC for CRASH_DUMP

2023-11-27 Thread Baoquan He
Ignat Korchagin complained that a potential config regression was introduced by commit 89cde455915f ("kexec: consolidate kexec and crash options into kernel/Kconfig.kexec"). Before the commit, CONFIG_CRASH_DUMP has no dependency on CONFIG_KEXEC. After the commit, CRASH_DUMP selects KEXEC. That

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

2023-11-27 Thread Shijie Huang
在 2023/11/28 11:25, Baoquan He 写道: On 11/27/23 at 11:18am, Shijie Huang wrote: 在 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

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

2023-11-27 Thread Baoquan He
On 11/27/23 at 11:18am, Shijie Huang wrote: > > 在 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

Re: [PATCH 0/4] kdump: crashkernel reservation from CMA

2023-11-27 Thread Baoquan He
On 11/28/23 at 09:12am, Tao Liu wrote: > Hi Jiri, > > On Sun, Nov 26, 2023 at 5:22 AM Jiri Bohac wrote: > > > > Hi Tao, > > > > On Sat, Nov 25, 2023 at 09:51:54AM +0800, Tao Liu wrote: > > > Thanks for the idea of using CMA as part of memory for the 2nd kernel. > > > However I have a question: >

Re: [PATCH 0/4] kdump: crashkernel reservation from CMA

2023-11-27 Thread Pingfan Liu
On Sun, Nov 26, 2023 at 5:24 AM Jiri Bohac wrote: > > Hi Tao, > > On Sat, Nov 25, 2023 at 09:51:54AM +0800, Tao Liu wrote: > > Thanks for the idea of using CMA as part of memory for the 2nd kernel. > > However I have a question: > > > > What if there is on-going DMA/RDMA access on the CMA range

Re: [PATCH 0/4] kdump: crashkernel reservation from CMA

2023-11-27 Thread Tao Liu
Hi Jiri, On Sun, Nov 26, 2023 at 5:22 AM Jiri Bohac wrote: > > Hi Tao, > > On Sat, Nov 25, 2023 at 09:51:54AM +0800, Tao Liu wrote: > > Thanks for the idea of using CMA as part of memory for the 2nd kernel. > > However I have a question: > > > > What if there is on-going DMA/RDMA access on the

Re: [PATCH] kexec_file: add kexec_file flag to support debug printing

2023-11-27 Thread Baoquan He
On 11/27/23 at 01:32pm, Simon Horman wrote: > On Tue, Nov 14, 2023 at 11:20:30PM +0800, Baoquan He wrote: > > This add KEXEC_FILE_DEBUG to kexec_file_flags so that it can be passed > > to kernel when '-d' is added with kexec_file_load interface. With that > > flag enabled, kernel can enable the

Re: [RFC V2] IMA Log Snapshotting Design Proposal

2023-11-27 Thread Paul Moore
On Mon, Nov 27, 2023 at 12:08 PM Mimi Zohar wrote: > On Wed, 2023-11-22 at 09:22 -0500, Paul Moore wrote: ... > > Okay, we are starting to get closer, but I'm still missing the part > > where you say "if you do X, Y, and Z, I'll accept and merge the > > solution." Can you be more explicit

Re: [RFC V2] IMA Log Snapshotting Design Proposal

2023-11-27 Thread Mimi Zohar
On Wed, 2023-11-22 at 09:22 -0500, Paul Moore wrote: > On Wed, Nov 22, 2023 at 8:18 AM Mimi Zohar wrote: > > On Tue, 2023-11-21 at 23:27 -0500, Paul Moore wrote: > > > On Thu, Nov 16, 2023 at 5:28 PM Paul Moore wrote: > > > > On Tue, Oct 31, 2023 at 3:15 PM Mimi Zohar wrote: > > > > > > ... > >

Re: [PATCH] LoongArch: Fix an issue with relocatable vmlinux

2023-11-27 Thread Simon Horman
On Fri, Nov 24, 2023 at 04:54:10PM +0800, WANG Rui wrote: > Normally vmlinux for LoongArch is of ET_EXEC type, while if built with > CONFIG_RELOCATABLE (this is PIE) and Clang, it will be of ET_DYN type. > Meanwhile, physical address field of segments in vmlinux has actually > the same value as

Re: [PATCH] m68k: fix getrandom() use with uclibc

2023-11-27 Thread Simon Horman
On Sat, Apr 22, 2023 at 11:59:04AM +0200, Laurent Vivier wrote: > With uclibc, getrandom() is only defined with _GNU_SOURCE, fix that: > > kexec/arch/m68k/bootinfo.c: In function 'bootinfo_add_rng_seed': > kexec/arch/m68k/bootinfo.c:231:13: warning: implicit declaration of function >

Re: [PATCH] lzma: Relax memory limit for lzma decompressor

2023-11-27 Thread Simon Horman
On Sat, Nov 25, 2023 at 03:26:43PM +0800, WANG Rui wrote: > The kexec cannot load LZMA compressed vmlinuz.efi on LoongArch. > > Try LZMA decompression. > lzma_decompress_file: read on /tmp/Image4yyfhM of 65536 bytes failed > pez_prepare: decompressed size 8563960 > pez_prepare: done >

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

2023-11-27 Thread Simon Horman
On Fri, Nov 24, 2023 at 11:46:58PM +0800, 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:

Re: [PATCH] kexec_file: add kexec_file flag to support debug printing

2023-11-27 Thread Simon Horman
On Tue, Nov 14, 2023 at 11:20:30PM +0800, Baoquan He wrote: > This add KEXEC_FILE_DEBUG to kexec_file_flags so that it can be passed > to kernel when '-d' is added with kexec_file_load interface. With that > flag enabled, kernel can enable the debugging message printing. > > Signed-off-by: