From patchwork Wed Sep 5 22:09:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 10589579 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 44E61920 for ; Wed, 5 Sep 2018 22:14:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34B3E2A9FF for ; Wed, 5 Sep 2018 22:14:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24E042AA1F; Wed, 5 Sep 2018 22:14:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B2C192A9FF for ; Wed, 5 Sep 2018 22:14:11 +0000 (UTC) Received: from localhost ([::1]:58263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxg3v-00047i-0u for patchwork-qemu-devel@patchwork.kernel.org; Wed, 05 Sep 2018 18:14:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxg0Q-0001Dx-Qz for qemu-devel@nongnu.org; Wed, 05 Sep 2018 18:10:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxg0M-00044S-Nm for qemu-devel@nongnu.org; Wed, 05 Sep 2018 18:10:34 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:48188) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fxg0L-00040O-Ur for qemu-devel@nongnu.org; Wed, 05 Sep 2018 18:10:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1536185430; x=1567721430; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uJ7jgo9RsPUtkEsJH8ArOOdO4ODpLH7TDFpV/X6kGi4=; b=HJXvMN5srk5DmRHlZYKFTWa6u1xv5jByLg9qwedEbqcKn3h0Wrh/k8gp hL50+S9vXiSqduMaxhOqQkjVlhvVe/22laoXBoOQVVW1vVufUzLekw4To mEKRFQMOLUCpUoyeQ+x25cxyzcwcVKRnWHDy3tE+AQFbchC0vl+crMkrA IA4ynmRaRtKVKc4hw81CLAutzn4G14gjUzFwMOEn3Y9lZGRCA++6HYg4W 3Ps3Wt3e3RP6n0slNkTdAYuioPjIfACtQpyrYPNLXVn0ovh+qhrDuqnvM 9TUrA94wuR/gcpRF4rRQ/Zfyru54aYDCWjGj7gTCUdH33BQH8U40v8w/a g==; X-IronPort-AV: E=Sophos;i="5.53,334,1531756800"; d="scan'208";a="93247430" Received: from mail-by2nam01lp0184.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.184]) by ob1.hgst.iphmx.com with ESMTP; 06 Sep 2018 06:10:14 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1R8cvhmxJG01iNyNR3VXa2P8Ada99u5rB9veeCdcBl4=; b=UWBYSJ+Ln8KhN+RdHbnDTnqfjfFNYWji3QmOchq4e0mFNz0WiVQIesIZ1lcLSpmjPc3LOhcK/prOPr5ZGQ91hYnFQqmf1AGboJkEyTjJparpgXPUG2GKTRWbbSt5JK/bc+6NosmPHerjUwDkZogvbW9tmndB8654pYtrij8lmms= Received: from risc6-mainframe.int.fusionio.com (199.255.44.171) by BN6PR04MB0386.namprd04.prod.outlook.com (2603:10b6:404:91::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.18; Wed, 5 Sep 2018 22:10:13 +0000 From: Alistair Francis To: qemu-devel@nongnu.org Date: Wed, 5 Sep 2018 15:09:31 -0700 Message-Id: <20180905220932.6152-9-alistair.francis@wdc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180905220932.6152-1-alistair.francis@wdc.com> References: <20180905220932.6152-1-alistair.francis@wdc.com> MIME-Version: 1.0 X-Originating-IP: [199.255.44.171] X-ClientProxiedBy: CO2PR06CA0060.namprd06.prod.outlook.com (2603:10b6:104:3::18) To BN6PR04MB0386.namprd04.prod.outlook.com (2603:10b6:404:91::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 58689106-358d-47f4-82e6-08d6137c5a9a X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:BN6PR04MB0386; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0386; 3:Q+AWJvmVZatEOeggchk1dZBPnSqg7+UXljsNtdbrtrjnAz50YkD8kM0hwX8+8QdF0Fy63d8G70d095V6ZkvHWKwpf+r0d+NMzv9seyxiyRwBkCGhBaYFC1pBxwUSvYbsBXh3q0mGk8vVYn89GwEF7Urn/GuN/wbL9XVajqSRoJW+65yTbJZWaT4WMgCAkGP14+/hXjwhM0NZY2JDnJtD0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tMzUTMQ4YjrwwBTHVXCpqChkb0FYHWt8qzw1CIY9IYvcKj0VzF+uJVQCD2Lo2CoFSB9hHWb8Bl2yDKCDQgbGK04SX+FVqobX4Hik9c/nyEZwy1uls9XHaTi2eqEVmiLUP83Bt5dp7r7uwBEepiqlXkPvu1; 4:L0sIqtYjBTZakjpq+2VHO2Kt3Gi2StsEMCqyZYwJTBIKJUkyP+Z9g8K7dTgsf3a/BfvRYxQrj+H71HTpEtyz6N4IQDru0kIZEisQJNw212gy+hWZFNjqtq+nbj2CJ1dkG6iFISYH9MLfUzkCi9Dd3g7l6Fe1w+k5yqmmLi5X2fsz8eaN85hB8YEA9WELbNBis0fv8QaZA1o29PLdnUdBn9xR4fiLK2I/kj/TELMtBHUzTie2UqfYpUconv5D8ED4fCPeCjPvLqvQBaCwz5xuaw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(10201501046)(3231344)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(201708071742011)(7699016); SRVR:BN6PR04MB0386; BCL:0; PCL:0; RULEID:; SRVR:BN6PR04MB0386; X-Forefront-PRVS: 078693968A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(979002)(366004)(39860400002)(346002)(396003)(376002)(136003)(199004)(189003)(44832011)(53936002)(6512007)(86362001)(5660300001)(97736004)(6346003)(2870700001)(6666003)(2906002)(6916009)(50466002)(386003)(6506007)(72206003)(186003)(26005)(1076002)(478600001)(36756003)(47776003)(66066001)(8676002)(16526019)(486006)(3846002)(68736007)(6486002)(6116002)(11346002)(956004)(2616005)(106356001)(105586002)(23676004)(7736002)(2361001)(4326008)(476003)(76176011)(81156014)(81166006)(316002)(8936002)(50226002)(2351001)(52116002)(25786009)(305945005)(14444005)(446003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR04MB0386; H:risc6-mainframe.int.fusionio.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alistair.Francis@wdc.com; X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BBN6PR04MB0386=3B23=3AzDnTSI3?= =?utf-8?q?Rtygq2o2uH09KaidA8NAL4HCqNciyxBWlAxvNt3i0+vqjnKj1UdMVyTJpmv0lyBNS?= =?utf-8?q?f2ry3PgfnvHo8AfH+V3zbjccC5lCdYCrKasZvhSUMB6rfEeJ1ST7fAfIyQTcC31Vb?= =?utf-8?q?ORznJGR8rLDF/fdBBT5WUW6Ol+HilLXBBceubXa2hG/qz34huf5HkjL3MeJ6v4OUq?= =?utf-8?q?LjWr8e1zF2NzUk6AfSTCKhDbHBoteyByFgAo1skXRsnJVnDEIQMS/6CZGOK/+VMq1?= =?utf-8?q?McHufg78/BlVg5CUETxvFh57QHFf+28rYCL8P/DNOOGYtdsm+J6LkdeGWJiFWe8yo?= =?utf-8?q?FWgy7ZLhKIP7fbrEIOlvMHV25D8qukS+ET/GI57QWTQTr+FwIPtuJ4yjuSx+tDfd5?= =?utf-8?q?shj1fj8olzWv982oKjkd8ZvbyYAzmxzavzD95YOmnNu9QufIWV5iTWVGwhZV/aOl/?= =?utf-8?q?x8yfhcp0nvH186p7nFlqLYIqwAJiUG/DoPaX6KusqiHmX3Tqx6kM+get38EbHhcsb?= =?utf-8?q?E2wx+5kFBwvBiZJ76DJ7D3Z3raJdEek4ISuD/dCPBGi5FefP81UAlzYmkLftN7t2M?= =?utf-8?q?GgauRnLLAoH6qP+JIOil8E9KljoUrzIwlI+XNWIfff5ElJHB3/Bd0BjNZOqswrrsz?= =?utf-8?q?MpQu92LnqU5LdXzcqBX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HdQN/mR0/uzZaxPfDcu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2018 22:10:13.2232 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58689106-358d-47f4-82e6-08d6137c5a9a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0386 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 216.71.153.141 Subject: [Qemu-devel] [PULL v2 08/10] hw/riscv/virtio: Set the soc device tree node as a simple-bus 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: Alistair Francis Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP To allow Linux to enumerate devices on the /soc/ node set it as a "simple-bus". Signed-off-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé --- hw/riscv/virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 248bbdffd3..e8ba4d192d 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -121,7 +121,7 @@ static void *create_fdt(RISCVVirtState *s, const struct MemmapEntry *memmap, qemu_fdt_add_subnode(fdt, "/soc"); qemu_fdt_setprop(fdt, "/soc", "ranges", NULL, 0); - qemu_fdt_setprop_string(fdt, "/soc", "compatible", "riscv-virtio-soc"); + qemu_fdt_setprop_string(fdt, "/soc", "compatible", "simple-bus"); qemu_fdt_setprop_cell(fdt, "/soc", "#size-cells", 0x2); qemu_fdt_setprop_cell(fdt, "/soc", "#address-cells", 0x2);