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 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 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

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

2023-03-23 Thread Leizhen (ThunderTown)
On 2023/3/24 1:25, 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 4G f

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

2023-03-23 Thread Catalin Marinas
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 4G > > > fixedly on arm64, just like what we do on x86_6

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

2023-03-20 Thread Baoquan He
On 03/17/23 at 06:05pm, Catalin Marinas wrote: > On Fri, Mar 17, 2023 at 11:09:13PM +0800, Baoquan He wrote: > > On 03/16/23 at 05:35pm, Catalin Marinas wrote: > > > On Thu, Mar 16, 2023 at 05:47:52PM +0800, Baoquan He wrote: > > > > Now I am wondering if we should change CRASH_ADDR_LOW_MAX to 4G d

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

2023-03-17 Thread Catalin Marinas
On Fri, Mar 17, 2023 at 11:09:13PM +0800, Baoquan He wrote: > On 03/16/23 at 05:35pm, Catalin Marinas wrote: > > On Thu, Mar 16, 2023 at 05:47:52PM +0800, Baoquan He wrote: > > > Now I am wondering if we should change CRASH_ADDR_LOW_MAX to 4G directly > > > since we decide to take 4G as the low mem

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

2023-03-17 Thread Baoquan He
On 03/16/23 at 05:35pm, Catalin Marinas wrote: > On Thu, Mar 16, 2023 at 05:47:52PM +0800, Baoquan He wrote: > > On 03/15/23 at 02:52pm, Catalin Marinas wrote: > > > On Mon, Mar 06, 2023 at 04:41:24PM +0800, Baoquan He wrote: > > > > + /* > > > > +* For crashkernel=siz

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

2023-03-16 Thread Catalin Marinas
On Thu, Mar 16, 2023 at 05:47:52PM +0800, Baoquan He wrote: > On 03/15/23 at 02:52pm, Catalin Marinas wrote: > > On Mon, Mar 06, 2023 at 04:41:24PM +0800, Baoquan He wrote: > > > + /* > > > + * For crashkernel=size[KMG], if the first attempt was for > > > + * low memory, f

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

2023-03-16 Thread Baoquan He
Hi Catalin, On 03/15/23 at 02:52pm, Catalin Marinas wrote: > On Mon, Mar 06, 2023 at 04:41:24PM +0800, Baoquan He wrote: > > On arm64, reservation for 'crashkernel=xM,high' is taken by searching for > > suitable memory region top down. If the 'xM' of crashkernel high memory > > is reserved from hi

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

2023-03-15 Thread Catalin Marinas
On Mon, Mar 06, 2023 at 04:41:24PM +0800, Baoquan He wrote: > On arm64, reservation for 'crashkernel=xM,high' is taken by searching for > suitable memory region top down. If the 'xM' of crashkernel high memory > is reserved from high memory successfully, it will try to reserve > crashkernel low mem

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

2023-03-08 Thread Simon Horman
On Mon, Mar 06, 2023 at 04:41:24PM +0800, Baoquan He wrote: > On arm64, reservation for 'crashkernel=xM,high' is taken by searching for > suitable memory region top down. If the 'xM' of crashkernel high memory > is reserved from high memory successfully, it will try to reserve > crashkernel low mem

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

2023-03-06 Thread Leizhen (ThunderTown)
On 2023/3/6 16:41, Baoquan He wrote: > On arm64, reservation for 'crashkernel=xM,high' is taken by searching for > suitable memory region top down. If the 'xM' of crashkernel high memory > is reserved from high memory successfully, it will try to reserve > crashkernel low memory later accoringly

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

2023-03-06 Thread Baoquan He
On arm64, reservation for 'crashkernel=xM,high' is taken by searching for suitable memory region top down. If the 'xM' of crashkernel high memory is reserved from high memory successfully, it will try to reserve crashkernel low memory later accoringly. Otherwise, it will try to search low memory ar