From nobody Wed Nov 19 08:43:58 2025 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=1615350162; cv=none; d=zohomail.com; s=zohoarc; b=ADVFmOzJqmSVLsDNIMzTaYQA4pTdSHGQ3eJ99IlBXNwbV5SIvsBx/CN5ufA0uFRNTNkXwJ/9s8irWFRwbZj8W4pgM8WaCRc4wAqtIk9pkW3zcNVvjIcgifnzZJF99AyOMrU0fcRqFy317/Up3lrUAEDtBEUe/rnmdMyHS8rVUKI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615350162; 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=gakrJhwoJsqTRdjzwj8BnL53qUAdraq+Gs70DM7QIKM=; b=P6pBOvzmESvg4m9YwYp+DRYhsbTSNTtqequT0smoSMWkVK1WlANMMxUVEmadZC27bHujkluUo0dUqX+xKYvq2BuaiR4WYCWmlmlljCWwleZEfdyj9kl9O7vAaOVJTahlfPyRY3GMfPJ/dB/SXjFfPgb0waaVbjTM3kpFwdKh+lE= 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 1615350162291308.80262110316016; Tue, 9 Mar 2021 20:22:42 -0800 (PST) Received: from localhost ([::1]:50522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJqMq-0005z5-8O for importer@patchew.org; Tue, 09 Mar 2021 23:22:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJqAw-0003YQ-VM; Tue, 09 Mar 2021 23:10:23 -0500 Received: from ozlabs.org ([2401:3900:2:1::2]:55963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJqAv-0004E7-Au; Tue, 09 Mar 2021 23:10:22 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 4DwJWf0SZYz9sX2; Wed, 10 Mar 2021 15:10:06 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1615349406; bh=uJfNzO/IH/PKiESK8g5yg4+400F3gnzkruuBjogzggs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eLCNl026PJj7kOhBi77/2+xRX8xoKd2J7qP85C2mWAzbl2vEH7TD1Fi/6rJGnkuuT DdhF07d+6I4WebKLs/VyuABBp3plbYHTAjo3bxJ+Ltni7NHxj7OEs+tIvunVb0ERS1 GD+zMwvL5GUhugyR0QpI12iFO5/US+U3MFeCGhYc= From: David Gibson To: peter.maydell@linaro.org, groug@kaod.org Subject: [PULL 14/20] hw/ppc: e500: Add missing in the eTSEC node Date: Wed, 10 Mar 2021 15:09:56 +1100 Message-Id: <20210310041002.333813-15-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210310041002.333813-1-david@gibson.dropbear.id.au> References: <20210310041002.333813-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=2401:3900:2:1::2; 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: Bin Meng , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, 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: Bin Meng The eTSEC node should provide an empty property in the eTSEC node, otherwise of_translate_address() in the Linux kernel fails to get the eTSEC register base, reporting: OF: ** translation for device /platform@f00000000/ethernet@0/queue-group = ** OF: bus is default (na=3D1, ns=3D1) on /platform@f00000000/ethernet@0 OF: translating address: 00000000 OF: parent bus is default (na=3D1, ns=3D1) on /platform@f00000000 OF: no ranges; cannot translate Per devicetree spec v0.3 [1] chapter 2.3.8: If the property is not present in a bus node, it is assumed that no mapping exists between children of the node and the parent address space. This is why of_translate_address() aborts the address translation. Apparently U-Boot devicetree parser seems to be tolerant with missing as this was not noticed when testing with U-Boot. The empty property is present in all kernel shipped dtsi files for eTSEC, Let's add it to conform with the spec. [1] https://github.com/devicetree-org/devicetree-specification/releases/dow= nload/v0.3/devicetree-specification-v0.3.pdf Fixes: fdfb7f2cdb2d ("e500: Add support for eTSEC in device tree") Signed-off-by: Bin Meng Message-Id: <1614158919-9473-1-git-send-email-bmeng.cn@gmail.com> Signed-off-by: David Gibson --- hw/ppc/e500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 01517a6c6c..1d94485ac8 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -231,6 +231,7 @@ static int create_devtree_etsec(SysBusDevice *sbdev, Pl= atformDevtreeData *data) assert(irq2 >=3D 0); =20 qemu_fdt_add_subnode(fdt, node); + qemu_fdt_setprop(fdt, node, "ranges", NULL, 0); qemu_fdt_setprop_string(fdt, node, "device_type", "network"); qemu_fdt_setprop_string(fdt, node, "compatible", "fsl,etsec2"); qemu_fdt_setprop_string(fdt, node, "model", "eTSEC"); --=20 2.29.2