From patchwork Thu Apr 23 12:11:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11505541 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ADAC0913 for ; Thu, 23 Apr 2020 12:12:28 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 845C820857 for ; Thu, 23 Apr 2020 12:12:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fwfhtOXq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 845C820857 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:42170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRaiR-0003Uc-NE for patchwork-qemu-devel@patchwork.kernel.org; Thu, 23 Apr 2020 08:12:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51982) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRahN-00024Y-D9 for qemu-devel@nongnu.org; Thu, 23 Apr 2020 08:11:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRahN-00085q-1P for qemu-devel@nongnu.org; Thu, 23 Apr 2020 08:11:21 -0400 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]:46452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRahM-00084u-Ke; Thu, 23 Apr 2020 08:11:20 -0400 Received: by mail-lf1-x144.google.com with SMTP id g10so4510826lfj.13; Thu, 23 Apr 2020 05:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZXHuJLnfVKlM3eLt5lleezX6bddMyflnOWtIAO7U7a8=; b=fwfhtOXq0fpq/HCyBVyXBNdwzozudu965KbJ6pjtxaTNH7V9SAYdK58yAzuE6NUMqZ /4OD032rX9dw5D3z73AfCXBggcCb0Y0J2ZkS86ePrmlTJxHrE9JcRcNpEc/TsIK9IgXF z0+/IOBQtwZRDT/uqZE/GtObJEjEmXzRx3iabl590cVHlGm1uX9F9qAcktzEGNrGtNF6 qPrMGQ7w1ZDaKJSiROeGN07kk4t9Aj+G+zogPsXgdiw8cqro1a6TJ8cdFI5WjklwcEto m1ewwwNu62QPTTr/d8ZY+2900Kkg9hVns7nS8I1mm5I5z6LeBBZAi2RPOfk+GOv9wzNV plJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZXHuJLnfVKlM3eLt5lleezX6bddMyflnOWtIAO7U7a8=; b=lwr8Y+0iLXqU5qavjkEA3RvE7IaQnyJF9xU6UYFcT/wK61CP91DjgslCRMGFV0/eU9 ZthHBjAprNqEmbWa9gIeZpx4+wj+UXx3o5VY9jMC+rAVJSx6bz+DCWtIRNuWd/b/bUoO dlzEkcgcF1owzmK5T3QHBCvQzng24PEBkgDGS6wz/g7FjXHupQs5Xgo5rxn/83oNnHYJ h+2Picl6yGjlkFPaf2m9EzQcHimUc4jZwizfCjvoed8VBCgFwMAM24SrQmElKH9LHupl 9NJnfCR4QcHhJ4AIFUNTLtqd4ezdZ6s3fFUiiluk4htlGNyWIBhGO1CsjuZzxsDbYutc Pqng== X-Gm-Message-State: AGi0PuaEfgUSxgrSpm3fdyytXTYfG/6AWwSazNEnO/Ur9TpbZ0J6h20L Y4qJWQg7vkxcuA3YtYd5+ceFQ2kwIq4= X-Google-Smtp-Source: APiQypIOVTL/UkehtEQGbPX1a21ZuXiM7FkbCZ3WHyelf/mS0Hlvwlrh47/4nA4XegStdlnWdSsBUQ== X-Received: by 2002:a19:48c3:: with SMTP id v186mr2210409lfa.194.1587643875276; Thu, 23 Apr 2020 05:11:15 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id q125sm1635708ljb.34.2020.04.23.05.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2020 05:11:14 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PATCH v2 0/4] hw/arm: xlnx-zcu102: Disable unsupported FDT firmware nodes Date: Thu, 23 Apr 2020 14:11:10 +0200 Message-Id: <20200423121114.4274-1-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::144; envelope-from=edgar.iglesias@gmail.com; helo=mail-lf1-x144.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::144 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: figlesia@xilinx.com, peter.maydell@linaro.org, sstabellini@kernel.org, edgar.iglesias@xilinx.com, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org, frederic.konrad@adacore.com, qemu-arm@nongnu.org, philmd@redhat.com, luc.michel@greensocs.com, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" When users try direct Linux runs on the ZynqMP models without enabling EL3 (and using appropriate FW) they run into trouble because the upstream kernel device-tree has EL3 based firmware nodes by default. PSCI firmware nodes work because we emulate the firmware in QEMU. This series avoids that problem by disabling firmware nodes that the machine cannot support due to lack of EL3 or EL2 support. This means we can now (without manually editing DTBs) run the following in a current Linux tree: qemu-system-aarch64 -M xlnx-zcu102 -m 2G -dtb arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0.dtb -serial mon:stdio -kernel arch/arm64/boot/Image -initrd zu-rootfs.cpio.gz -append rdinit=/bin/sh Cheers, Edgar ChangeLog: v1 -> v2: * Constify compat in qemu_fdt_node_path(). Edgar E. Iglesias (4): device_tree: Allow name wildcards in qemu_fdt_node_path() device_tree: Constify compat in qemu_fdt_node_path() hw/arm: xlnx-zcu102: Move arm_boot_info into XlnxZCU102 hw/arm: xlnx-zcu102: Disable unsupported FDT firmware nodes device_tree.c | 4 ++-- hw/arm/xlnx-zcu102.c | 39 ++++++++++++++++++++++++++++++++---- include/sysemu/device_tree.h | 5 ++++- 3 files changed, 41 insertions(+), 7 deletions(-)