From: Bharata B Rao <bharata@linux.vnet.ibm.com>
To: Serhii Popovych <spopovyc@redhat.com>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, david@gibson.dropbear.id.au
Subject: Re: [Qemu-devel] [PATCH for 2.13 v3 1/2] spapr: Add ibm, max-associativity-domains property
Date: Tue, 17 Apr 2018 09:28:42 +0530 [thread overview]
Message-ID: <20180417035842.GA3942@in.ibm.com> (raw)
In-Reply-To: <e651fb40-2e44-73ed-6082-d9e497073e69@redhat.com>
On Mon, Apr 16, 2018 at 07:47:29PM +0300, Serhii Popovych wrote:
> Bharata B Rao wrote:
> > On Wed, Apr 11, 2018 at 02:41:59PM -0400, Serhii Popovych wrote:
> >> Now recent kernels (i.e. since linux-stable commit a346137e9142
> >> ("powerpc/numa: Use ibm,max-associativity-domains to discover possible nodes")
> >> support this property to mark initially memory-less NUMA nodes as "possible"
> >> to allow further memory hot-add to them.
> >>
> >> Advertise this property for pSeries machines to let guest kernels detect
> >> maximum supported node configuration and benefit from kernel side change
> >> when hot-add memory to specific, possibly empty before, NUMA node.
> >>
> >> Signed-off-by: Serhii Popovych <spopovyc@redhat.com>
> >> ---
> >> hw/ppc/spapr.c | 10 ++++++++++
> >> 1 file changed, 10 insertions(+)
> >>
> >> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> >> index a81570e..c05bbad 100644
> >> --- a/hw/ppc/spapr.c
> >> +++ b/hw/ppc/spapr.c
> >> @@ -910,6 +910,13 @@ static void spapr_dt_rtas(sPAPRMachineState *spapr, void *fdt)
> >> 0, cpu_to_be32(SPAPR_MEMORY_BLOCK_SIZE),
> >> cpu_to_be32(max_cpus / smp_threads),
> >> };
> >> + uint32_t maxdomains[] = {
> >> + cpu_to_be32(4),
> >> + cpu_to_be32(0),
> >> + cpu_to_be32(0),
> >> + cpu_to_be32(0),
> >> + cpu_to_be32(nb_numa_nodes - 1),
> >> + };
> >>
> >> _FDT(rtas = fdt_add_subnode(fdt, 0, "rtas"));
> >>
> >> @@ -946,6 +953,9 @@ static void spapr_dt_rtas(sPAPRMachineState *spapr, void *fdt)
> >> _FDT(fdt_setprop(fdt, rtas, "ibm,associativity-reference-points",
> >> refpoints, sizeof(refpoints)));
> >>
> >> + _FDT(fdt_setprop(fdt, rtas, "ibm,max-associativity-domains",
> >> + maxdomains, sizeof(maxdomains)));
> >> +
> >> _FDT(fdt_setprop_cell(fdt, rtas, "rtas-error-log-max",
> >> RTAS_ERROR_LOG_MAX));
> >> _FDT(fdt_setprop_cell(fdt, rtas, "rtas-event-scan-rate",
> >> --
> >> 1.8.3.1
> >
> > This commit causes hash guest with latest guest kernel to hang at early boot.
>
> I use v4.16 tag from stable and can't reproduce on P8 machine reported
> issue.
>
> Could you please share more details about your setup, kernel commit id
> you spot problem?
I am on 4.16.0-rc7 (commit id: 0b412605ef5f)
BTW this happens only for non-NUMA guest.
Regards,
Bharata.
next prev parent reply other threads:[~2018-04-17 3:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-11 18:41 [Qemu-devel] [PATCH for 2.13 v3 0/2] target/ppc: Support adding memory to initially memory-less NUMA nodes Serhii Popovych
2018-04-11 18:41 ` [Qemu-devel] [PATCH for 2.13 v3 1/2] spapr: Add ibm, max-associativity-domains property Serhii Popovych
2018-04-13 7:57 ` Bharata B Rao
2018-04-16 16:47 ` Serhii Popovych
2018-04-17 3:58 ` Bharata B Rao [this message]
2018-04-17 6:19 ` David Gibson
2018-04-17 16:26 ` Serhii Popovych
2018-04-11 18:42 ` [Qemu-devel] [PATCH for 2.13 v3 2/2] Revert "spapr: Don't allow memory hotplug to memory less nodes" Serhii Popovych
2018-04-12 2:21 ` [Qemu-devel] [PATCH for 2.13 v3 0/2] target/ppc: Support adding memory to initially memory-less NUMA nodes David Gibson
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=20180417035842.GA3942@in.ibm.com \
--to=bharata@linux.vnet.ibm.com \
--cc=david@gibson.dropbear.id.au \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=spopovyc@redhat.com \
/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).