From nobody Mon Apr 29 19:47:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1523982175769842.6765835869516; Tue, 17 Apr 2018 09:22:55 -0700 (PDT) Received: from localhost ([::1]:48416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8TNV-0000wH-8W for importer@patchew.org; Tue, 17 Apr 2018 12:22:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8TMY-0000VX-F4 for qemu-devel@nongnu.org; Tue, 17 Apr 2018 12:21:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8TMT-0004tY-GM for qemu-devel@nongnu.org; Tue, 17 Apr 2018 12:21:46 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44622 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f8TMT-0004t5-CN; Tue, 17 Apr 2018 12:21:41 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D89154173BBC; Tue, 17 Apr 2018 16:21:37 +0000 (UTC) Received: from tuxracer.localdomain (ibm-p8-virt-03.lab.eng.rdu.redhat.com [10.12.2.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CF8502166BAE; Tue, 17 Apr 2018 16:21:35 +0000 (UTC) From: Serhii Popovych To: qemu-ppc@nongnu.org Date: Tue, 17 Apr 2018 12:21:35 -0400 Message-Id: <1523982095-17175-1-git-send-email-spopovyc@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 17 Apr 2018 16:21:37 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 17 Apr 2018 16:21:37 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'spopovyc@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.187.233.73 Subject: [Qemu-devel] [PATCH for 2.13] spapr: Correct max associativity domains value for non-NUMA configs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" In non-NUMA configurations nb_numa_nodes is zero and we set 5th cell in ibm,max-associativity-domains to -1. That causes to stall Linux guests during boot after following line: [ 0.000000] NUMA associativity depth for CPU/Memory: 4 Make last possible NUMA in property zero to correct support for non-NUMA guests. Fixes: c1df49a670ef ("spapr: Add ibm,max-associativity-domains property") Signed-off-by: Serhii Popovych --- hw/ppc/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 7b2bc4e..bff2125 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -914,7 +914,7 @@ static void spapr_dt_rtas(sPAPRMachineState *spapr, voi= d *fdt) cpu_to_be32(0), cpu_to_be32(0), cpu_to_be32(0), - cpu_to_be32(nb_numa_nodes - 1), + cpu_to_be32(nb_numa_nodes ? nb_numa_nodes - 1 : 0), }; =20 _FDT(rtas =3D fdt_add_subnode(fdt, 0, "rtas")); --=20 1.8.3.1