From: Jinjie Ruan <ruanjinjie@huawei.com>
To: Catalin Marinas <catalin.marinas@arm.com>,
"Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: <bhe@redhat.com>, <akpm@linux-foundation.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH] ARM: Support allocating crashkernel above 4G for LPAE
Date: Tue, 6 Aug 2024 10:19:14 +0800 [thread overview]
Message-ID: <93bbedcd-2f6b-3124-6b54-01080efeb515@huawei.com> (raw)
In-Reply-To: <ZrDRCP9tyvXLfAYs@arm.com>
On 2024/8/5 21:18, Catalin Marinas wrote:
> On Fri, Aug 02, 2024 at 12:01:43PM +0100, Russell King wrote:
>> On Fri, Aug 02, 2024 at 05:25:10PM +0800, Jinjie Ruan wrote:
>>> As ARM LPAE feature support accessing memory beyond the 4G limit, define
>>> HAVE_ARCH_CRASHKERNEL_RESERVATION_HIGH macro to support reserving crash
>
> At least in 6.11-rc1, there's no trace of such macro anywhere. So not
> sure this patch has any effect (I haven't checked linux-next though).
Sorry, this macro is introduced in linux-next, the -next subject has
been missed.
>
>>> memory above 4G for ARM32 LPAE.
>>>
>>> No test because there is no LPAE ARM32 hardware.
>>
>> Why are you submitting patches for features you can't test?
>>
>> I'm not going to apply this without it being properly tested, because I
>> don't believe that this will work in the generic case.
>>
>> If the crash kernel is located in memory outside of the lower 4GiB of
>> address space, and there is no alias within physical address space
>> for that memory, then there is *no* *way* for such a kernel to boot.
>>
>> So, right now I believe this patch to be *fundamentally* wrong.
>
> Indeed. Even on arm64, we keep some crashkernel reservations in the
> lower parts of the memory for ZONE_DMA allocations.
Indeed, it is.
>
> On arch/arm with LPAE, we could do something similar like forcing some
> lowmem reservation and allowing explicit allocation in the higher ranges
> with crashkernel=<size>,high. We should, of course, force the kdump
In linux-next, with the HAVE_ARCH_CRASHKERNEL_RESERVATION_HIGH macro
defined, it is ok.
> image placement in the lower memory. The user kexec tools must be taught
> to interpret this information and provide a DT accordingly to the crash
> kernel.
>
prev parent reply other threads:[~2024-08-06 2:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-02 9:25 Jinjie Ruan
2024-08-02 11:01 ` Russell King (Oracle)
2024-08-05 1:23 ` Jinjie Ruan
2024-08-05 2:56 ` Baoquan He
2024-08-06 2:46 ` Jinjie Ruan
2024-08-06 8:11 ` Baoquan He
2024-08-06 8:34 ` Russell King (Oracle)
2024-08-06 11:02 ` Baoquan He
2024-08-06 11:10 ` Jinjie Ruan
2024-08-06 11:08 ` Jinjie Ruan
2024-08-05 13:18 ` Catalin Marinas
2024-08-06 2:19 ` Jinjie Ruan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=93bbedcd-2f6b-3124-6b54-01080efeb515@huawei.com \
--to=ruanjinjie@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=bhe@redhat.com \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®