From: Simon Horman <horms@verge.net.au>
To: Hari Bathini <hbathini@linux.vnet.ibm.com>
Cc: Geoff Levand <geoff@infradead.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Ankit Kumar <ankit@linux.vnet.ibm.com>,
Kexec-ml <kexec@lists.infradead.org>
Subject: Re: [PATCH] kexec-tools: ppc64: fix how RMA top is deduced
Date: Fri, 4 Aug 2017 13:11:11 +0200 [thread overview]
Message-ID: <20170804111111.GA13074@verge.net.au> (raw)
In-Reply-To: <150108958197.31071.13359341334422395062.stgit@hbathini.in.ibm.com>
On Wed, Jul 26, 2017 at 10:49:41PM +0530, Hari Bathini wrote:
> Hang was observed, in purgatory, on a machine configured with
> single LPAR. This was because one of the segments was loaded
> outside the actual Real Memory Area (RMA) due to wrongly
> deduced RMA top value.
>
> Currently, top of real memory area, which is crucial for loading
> kexec/kdump kernel, is obtained by iterating through mem nodes
> and setting its value based on the base and size values of the
> last mem node in the iteration. That can't always be correct as
> the order of iteration may not be same and RMA base & size are
> always based on the first memory property. Fix this by setting
> RMA top value based on the base and size values of the memory
> node that has the smallest base value (first memory property)
> among all the memory nodes.
>
> Also, correct the misnomers rmo_base and rmo_top to rma_base
> and rma_top respectively.
>
> While how RMA top is deduced was broken for sometime, the issue
> may not have been seen so far, for couple of possible reasons:
>
> 1. Only one mem node was available.
> 2. First memory property has been the last node in
> iteration when multiple mem nodes were present.
>
> Fixes: 02f4088ffded ("kexec fix ppc64 device-tree mem node")
> Reported-by: Ankit Kumar <ankit@linux.vnet.ibm.com>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Geoff Levand <geoff@infradead.org>
> Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
Thanks, applied.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
prev parent reply other threads:[~2017-08-04 11:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-26 17:19 [PATCH] kexec-tools: ppc64: fix how RMA top is deduced Hari Bathini
2017-08-04 11:11 ` Simon Horman [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=20170804111111.GA13074@verge.net.au \
--to=horms@verge.net.au \
--cc=ankit@linux.vnet.ibm.com \
--cc=geoff@infradead.org \
--cc=hbathini@linux.vnet.ibm.com \
--cc=kexec@lists.infradead.org \
--cc=mpe@ellerman.id.au \
/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