From: Sourabh Jain <sourabhjain@linux.ibm.com>
To: linuxppc-dev@lists.ozlabs.org
Subject: Re: powerpc: Set crashkernel offset to mid of RMA region
Date: Fri, 4 Feb 2022 14:30:27 +0530 [thread overview]
Message-ID: <76edae60-4704-5abf-0824-b0d3eeafa3ee@linux.ibm.com> (raw)
In-Reply-To: <d523c2d6-2a12-77aa-75a9-942cff5574bd@linux.ibm.com>
On 01/02/22 16:40, Hari Bathini wrote:
>
>
> On 28/01/22 3:34 pm, Sourabh Jain wrote:
>> On large config LPARs (having 192 and more cores), Linux fails to boot
>> due to insufficient memory in the first memblock. It is due to the
>> memory reservation for the crash kernel which starts at 128MB offset of
>> the first memblock. This memory reservation for the crash kernel doesn't
>> leave enough space in the first memblock to accommodate other essential
>> system resources.
>>
>> The crash kernel start address was set to 128MB offset by default to
>> ensure that the crash kernel get some memory below the RMA region which
>> is used to be of size 256MB. But given that the RMA region size can be
>> 512MB or more, setting the crash kernel offset to mid of RMA size will
>> leave enough space for kernel to allocate memory for other system
>> resources.
>>
>> Since the above crash kernel offset change is only applicable to the
>> LPAR
>> platform, the LPAR feature detection is pushed before the crash kernel
>> reservation. The rest of LPAR specific initialization will still
>> be done during pseries_probe_fw_features as usual.
>>
>> Signed-off-by: Sourabh Jain<sourabhjain@linux.ibm.com>
>> Reported-and-tested-by: Abdul haleem<abdhalee@linux.vnet.ibm.com>
>>
>> ---
>> arch/powerpc/kernel/rtas.c | 4 ++++
>> arch/powerpc/kexec/core.c | 15 +++++++++++----
>> 2 files changed, 15 insertions(+), 4 deletions(-)
>>
>> ---
>> Change in v3:
>> Dropped 1st and 2nd patch from v2. 1st and 2nd patch from v2 patch
>> series [1] try to discover 1T segment MMU feature support
>> BEFORE boot CPU paca allocation ([1] describes why it is needed).
>> MPE has posted a patch [2] that archives a similar objective by
>> moving
>> boot CPU paca allocation after mmu_early_init_devtree().
>>
>
>> NOTE: This patch is dependent on the patch [2].
>>
>> [1]https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20211018084434.217772-3-sourabhjain@linux.ibm.com/
>>
>> [2]https://lists.ozlabs.org/pipermail/linuxppc-dev/2022-January/239175.html
>>
>
> This dependency info must be captured somewhere within the changelog to
> be useful.
Added about the dependent patch in v4 patch commit message.
v4 patch link:
https://lists.ozlabs.org/pipermail/linuxppc-dev/2022-February/239642.html
Thanks for the review Hari.
- Sourabh Jain
next prev parent reply other threads:[~2022-02-04 9:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-28 10:04 powerpc: Set crashkernel offset to mid of RMA region Sourabh Jain
2022-02-01 6:50 ` kernel test robot
2022-02-01 11:10 ` Hari Bathini
2022-02-04 9:00 ` Sourabh Jain [this message]
2022-02-01 11:44 ` Michael Ellerman
2022-02-02 15:08 ` Sourabh Jain
2022-02-03 11:07 ` Michael Ellerman
2022-02-04 9:14 ` Sourabh Jain
-- strict thread matches above, loose matches on Subject: below --
2022-02-04 8:56 Sourabh Jain
2022-02-16 12:25 ` Michael Ellerman
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=76edae60-4704-5abf-0824-b0d3eeafa3ee@linux.ibm.com \
--to=sourabhjain@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/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;
as well as URLs for NNTP newsgroup(s).