Re: [PATCH 0/3] arm64: kdump : take off the protection on crashkernel memory region

2023-03-24 Thread Mike Rapoport
On Fri, Mar 24, 2023 at 09:18:35PM +0800, Baoquan He wrote: > Problem: > === > On arm64, block and section mapping is supported to build page tables. > However, currently it enforces to take base page mapping for the whole > linear mapping if CONFIG_ZONE_DMA or CONFIG_ZONE_DMA32 is enabled and

Re: [PATCH 0/3] arm64: kdump : take off the protection on crashkernel memory region

2023-03-24 Thread Baoquan He
On 03/25/23 at 10:14am, Leizhen (ThunderTown) wrote: > > > On 2023/3/25 1:11, Catalin Marinas wrote: > > On Fri, Mar 24, 2023 at 09:18:35PM +0800, Baoquan He wrote: > >> Baoquan He (3): > >> arm64: kdump : take off the protection on crashkernel memory region > >> arm64: kdump: do not map cras

Re: [PATCH 0/3] arm64: kdump : take off the protection on crashkernel memory region

2023-03-24 Thread Leizhen (ThunderTown)
On 2023/3/25 1:11, Catalin Marinas wrote: > On Fri, Mar 24, 2023 at 09:18:35PM +0800, Baoquan He wrote: >> Baoquan He (3): >> arm64: kdump : take off the protection on crashkernel memory region >> arm64: kdump: do not map crashkernel region specifically >> arm64: kdump: defer the crashkern

Re: [PATCH 3/3] arm64: kdump: defer the crashkernel reservation for platforms with no DMA memory zones

2023-03-24 Thread Leizhen (ThunderTown)
On 2023/3/24 21:18, Baoquan He wrote: > In commit 031495635b46 ("arm64: Do not defer reserve_crashkernel() for > platforms with no DMA memory zones"), reserve_crashkernel() is called > much earlier in arm64_memblock_init() to avoid causing base apge > mapping on platforms with no DMA meomry zone

Re: [PATCH 2/3] arm64: kdump: do not map crashkernel region specifically

2023-03-24 Thread Leizhen (ThunderTown)
On 2023/3/24 21:18, Baoquan He wrote: > After taking off the protection functions on crashkernel memory region, > there's no need to map crashkernel region with page granularity during > linear mapping. > > With this change, the system can make use of block or section mapping > on linear region

Re: [PATCH 1/3] arm64: kdump : take off the protection on crashkernel memory region

2023-03-24 Thread Leizhen (ThunderTown)
On 2023/3/24 21:18, Baoquan He wrote: > Problem: > === > On arm64, block and section mapping is supported to build page tables. > However, currently it enforces to take base page mapping for the whole > linear mapping if CONFIG_ZONE_DMA or CONFIG_ZONE_DMA32 is enabled and > crashkernel kerne

Re: [PATCH v4] arm64: kdump: simplify the reservation behaviour of crashkernel=,high

2023-03-24 Thread Leizhen (ThunderTown)
On 2023/3/24 22:53, Baoquan He wrote: > Hi Leizhen, > > On 03/24/23 at 10:47am, Leizhen (ThunderTown) wrote: > .. >> 2) with the fixed CRASH_ADDR_LOW_MAX as 4G, we can easily fix the >> problem of base page mapping for the whole linear mapping if crsahkernel= >> is set in kerne

Re: [PATCH 0/3] arm64: kdump : take off the protection on crashkernel memory region

2023-03-24 Thread Catalin Marinas
On Fri, Mar 24, 2023 at 09:18:35PM +0800, Baoquan He wrote: > Baoquan He (3): > arm64: kdump : take off the protection on crashkernel memory region > arm64: kdump: do not map crashkernel region specifically > arm64: kdump: defer the crashkernel reservation for platforms with no > DMA memo

Re: [PATCH v4] arm64: kdump: simplify the reservation behaviour of crashkernel=,high

2023-03-24 Thread Catalin Marinas
On Fri, Mar 24, 2023 at 10:08:17PM +0800, Baoquan He wrote: > On 03/23/23 at 05:25pm, Catalin Marinas wrote: > > On Mon, Mar 20, 2023 at 09:12:08PM +0800, Baoquan He wrote: > > > crashkernel=size > > > 1)first attempt: low memory under arm64_dma_phys_limit > > > 2)fallback: finding memory ab

Re: [PATCH v3] kexec: Support purgatories with .text.hot sections

2023-03-24 Thread Philipp Rudo
Hi Ricardo, On Wed, 22 Mar 2023 20:09:21 +0100 Ricardo Ribalda wrote: > Clang16 links the purgatory text in two sections: > > [ 1] .text PROGBITS 0040 >11a1 AX 0 0 16 > [ 2] .rela.textRELA

Re: [PATCH v4] arm64: kdump: simplify the reservation behaviour of crashkernel=,high

2023-03-24 Thread Baoquan He
Hi Leizhen, On 03/24/23 at 10:47am, Leizhen (ThunderTown) wrote: .. > 2) with the fixed CRASH_ADDR_LOW_MAX as 4G, we can easily fix the > problem of base page mapping for the whole linear mapping if crsahkernel= > is set in kernel parameter shown in [1] at bottom. > >>> > >>>

Re: [PATCH v4] arm64: kdump: simplify the reservation behaviour of crashkernel=,high

2023-03-24 Thread Baoquan He
On 03/23/23 at 05:25pm, Catalin Marinas wrote: > On Mon, Mar 20, 2023 at 09:12:08PM +0800, Baoquan He wrote: > > On 03/17/23 at 06:05pm, Catalin Marinas wrote: > > > On Fri, Mar 17, 2023 at 11:09:13PM +0800, Baoquan He wrote: > > > > In fact, what I want to achieve is we set CRASH_ADDR_LOW_MAX to 4

[PATCH 2/3] arm64: kdump: do not map crashkernel region specifically

2023-03-24 Thread Baoquan He
After taking off the protection functions on crashkernel memory region, there's no need to map crashkernel region with page granularity during linear mapping. With this change, the system can make use of block or section mapping on linear region to largely improve perforcemence during system bootu

[PATCH 3/3] arm64: kdump: defer the crashkernel reservation for platforms with no DMA memory zones

2023-03-24 Thread Baoquan He
In commit 031495635b46 ("arm64: Do not defer reserve_crashkernel() for platforms with no DMA memory zones"), reserve_crashkernel() is called much earlier in arm64_memblock_init() to avoid causing base apge mapping on platforms with no DMA meomry zones. With taking off protection on crashkernel mem

[PATCH 1/3] arm64: kdump : take off the protection on crashkernel memory region

2023-03-24 Thread Baoquan He
Problem: === On arm64, block and section mapping is supported to build page tables. However, currently it enforces to take base page mapping for the whole linear mapping if CONFIG_ZONE_DMA or CONFIG_ZONE_DMA32 is enabled and crashkernel kernel parameter is set. This will cause longer time of th

[PATCH 0/3] arm64: kdump : take off the protection on crashkernel memory region

2023-03-24 Thread Baoquan He
Problem: === On arm64, block and section mapping is supported to build page tables. However, currently it enforces to take base page mapping for the whole linear mapping if CONFIG_ZONE_DMA or CONFIG_ZONE_DMA32 is enabled and crashkernel kernel parameter is set. This will cause longer time of th