From nobody Tue Feb 10 02:27:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1622709005; cv=none; d=zohomail.com; s=zohoarc; b=Tzs0wGremFtOATQI8kk2Qpl2kL/QD88ezvooIMEUzCkxp0WhrpnJ7F79VTaXA2CVvqIljRTlBciIzSxtR5sJaYnHUMTMqkX/DQib0arwyhQpqoxcIeTtg/KaQ+WAH2Y/G4UAB0GjvaWkrt/3axH4gr/banPINgCwzNpwP7SOoiE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622709005; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2hN75H53UJzUUXWhP60exRIgZfl7AgwQLyabjlkzDNg=; b=hJGbHPkkbIRmGTElkTL6ZT19+iEif1wJBnUX8TtKG1h+D9B8V0OtmpK4cBq881+IKSMhrFuDCDIyOAd56cQyCSkqLwao/dsHoG8p6AdG4FLRfS5dhB3U9Z61kXD7mk2i6y9aRadxm9aFuXWMkk656z8xRC/gjGhPojI9BYFBVh4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622709005644778.3741482856796; Thu, 3 Jun 2021 01:30:05 -0700 (PDT) Received: from localhost ([::1]:39504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loijs-0007Eq-DZ for importer@patchew.org; Thu, 03 Jun 2021 04:30:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loid1-0006HY-CF; Thu, 03 Jun 2021 04:22:59 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:41225 helo=ozlabs.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loicx-0008Th-Rq; Thu, 03 Jun 2021 04:22:59 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 4Fwf5l5R7Wz9sXN; Thu, 3 Jun 2021 18:22:35 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1622708555; bh=qSqThnA6qWmGtCDIOnPS/P5u6HYvRVsnuAh98ZijRw0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oIBfOa7zevAyUyP1ZlEYUwEoJ1EE0AFApHdrPtEQ0IkRaKjcHpb6dfj/LcLX+UHZi AKI7A5rSk79eF572Bb2xhGr2v0QY/lufk0YTulXkU5Cx8QKS1tzhvhwGYAK29Z1W0D 5bTRJag+2Jw5pkKHE9cBHJ2IB8gOIWaMNLvqxevI= From: David Gibson To: peter.maydell@linaro.org, groug@kaod.org Subject: [PULL 08/42] spapr: nvdimm: Fix the persistent-memory root node name in device tree Date: Thu, 3 Jun 2021 18:21:57 +1000 Message-Id: <20210603082231.601214-9-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210603082231.601214-1-david@gibson.dropbear.id.au> References: <20210603082231.601214-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=203.11.71.1; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Aneesh Kumar K . V" , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Shivaprasad G Bhat , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Shivaprasad G Bhat The FDT code is adding the pmem root node by name "persistent-memory" which should have been "ibm,persistent-memory". The linux fetches the device tree nodes by type and it has been working correctly as the type is correct. If someone searches by its intended name it would fail, so fix that. Reported-by: Aneesh Kumar K.V Signed-off-by: Shivaprasad G Bhat Message-Id: <162204278956.219.9061511386011411578.stgit@cc493db1e665> Signed-off-by: David Gibson --- hw/ppc/spapr_nvdimm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr_nvdimm.c b/hw/ppc/spapr_nvdimm.c index 3f57a8b6fa..91de1052f2 100644 --- a/hw/ppc/spapr_nvdimm.c +++ b/hw/ppc/spapr_nvdimm.c @@ -175,11 +175,11 @@ int spapr_pmem_dt_populate(SpaprDrc *drc, SpaprMachin= eState *spapr, =20 void spapr_dt_persistent_memory(SpaprMachineState *spapr, void *fdt) { - int offset =3D fdt_subnode_offset(fdt, 0, "persistent-memory"); + int offset =3D fdt_subnode_offset(fdt, 0, "ibm,persistent-memory"); GSList *iter, *nvdimms =3D nvdimm_get_device_list(); =20 if (offset < 0) { - offset =3D fdt_add_subnode(fdt, 0, "persistent-memory"); + offset =3D fdt_add_subnode(fdt, 0, "ibm,persistent-memory"); _FDT(offset); _FDT((fdt_setprop_cell(fdt, offset, "#address-cells", 0x1))); _FDT((fdt_setprop_cell(fdt, offset, "#size-cells", 0x0))); --=20 2.31.1