From patchwork Fri Nov 2 13:19:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 992309 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="xDWU1Y/G"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42mjPd15nczB4W7 for ; Sat, 3 Nov 2018 00:20:52 +1100 (AEDT) Received: from localhost ([::1]:51658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIZNW-0000Zh-RO for incoming@patchwork.ozlabs.org; Fri, 02 Nov 2018 09:20:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIZMt-0000Qy-6t for qemu-devel@nongnu.org; Fri, 02 Nov 2018 09:20:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIZMp-0003AJ-IR for qemu-devel@nongnu.org; Fri, 02 Nov 2018 09:20:06 -0400 Received: from mail-eopbgr740048.outbound.protection.outlook.com ([40.107.74.48]:22304 helo=NAM01-BN3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gIZMW-0002j4-8G; Fri, 02 Nov 2018 09:19:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CH1hkj0ugspNCMFXmYPxcvB5bjj11KyObhmJ+oepm6w=; b=xDWU1Y/GFcI5TvEOBx2pT2zo8Ck9+6AxuCBtMpBHu7NYhSz3FKeKYJZ8RrOXZV+Cm/xpdW0k6wkenebAWmRIBOsKzOXED0SbKdSrJV5his48Ex7lIpBqKoV9sXuPn6kCn/BTg2lqBeYaQ0MeKnT1DwL+NzIwOIzlnmaMLmI71O8= Received: from BN7PR02CA0035.namprd02.prod.outlook.com (2603:10b6:408:20::48) by MWHPR0201MB3513.namprd02.prod.outlook.com (2603:10b6:301:77::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.20; Fri, 2 Nov 2018 13:19:32 +0000 Received: from CY1NAM02FT059.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::205) by BN7PR02CA0035.outlook.office365.com (2603:10b6:408:20::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1294.21 via Frontend Transport; Fri, 2 Nov 2018 13:19:31 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT059.mail.protection.outlook.com (10.152.74.211) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1294.14 via Frontend Transport; Fri, 2 Nov 2018 13:19:27 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:36544 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1gIZMF-0003P8-6v; Fri, 02 Nov 2018 06:19:27 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1gIZMA-0007bn-30; Fri, 02 Nov 2018 06:19:22 -0700 Received: from xsj-pvapsmtp01 (smtp2.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id wA2DJHBm021849; Fri, 2 Nov 2018 06:19:17 -0700 Received: from [10.71.119.87] (helo=xsjedgari31.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1gIZM4-0007bH-5d; Fri, 02 Nov 2018 06:19:17 -0700 From: "Edgar E. Iglesias" To: , Date: Fri, 2 Nov 2018 14:19:11 +0100 Message-ID: <20181102131913.1535-1-edgar.iglesias@xilinx.com> X-Mailer: git-send-email 2.17.1 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(376002)(136003)(39860400002)(396003)(2980300002)(438002)(54534003)(189003)(199004)(2616005)(6306002)(426003)(39060400002)(107886003)(4326008)(50466002)(48376002)(336012)(305945005)(77096007)(126002)(476003)(486006)(47776003)(186003)(478600001)(8936002)(81166006)(8676002)(81156014)(63266004)(2906002)(7696005)(50226002)(26005)(966005)(36386004)(51416003)(5660300001)(1076002)(9786002)(36756003)(356004)(6666004)(316002)(54906003)(110136005)(16586007)(106002)(106466001)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR0201MB3513; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; LANG:en; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT059; 1:FMapat7g2KZzFxSCfnB5Kza74FmVNVQrzc3zIbZHwWjIoTE+VqHvRWx2SDPVZ7UOCzeOBc6FhbrjLjCXSYq/ss8Lo2ku4+vRoaTOXJGAYoRNQO2NboCUxSWFMNxJMuQL MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d0e24b7-b7bb-4cee-3eb2-08d640c5d313 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060); SRVR:MWHPR0201MB3513; X-Microsoft-Exchange-Diagnostics: 1; MWHPR0201MB3513; 3:OZk9pz062R8SnpJfNtgc8BkJOji3IOqFMQOimVO+JWlZhg/mTR/C04YVYH3qvTyNqyCwlTeeoE9DWCmzM+4gYhSAwh8EEsdCc7ghu9tjR3hb7nDisJ+scuwAU35BoB+Bo5jmobjsnDfjgiBM6PjleFruVucRA5IS7zOW9V9Rz9KIiflRKlQdcAd0E8jNGCG2yqPTMzLVyLSDsyJNvTcheYGB3+bXvI6DB1Pmp3qWRLK/s9am+u1Nq6+o0d+3kxDZQadNsS21/STeJ2/FtGbdlcOCp6DMioYLszMyy5M0kU7ggJGatjvYZrleWtYhLMx1MWD8bemdAyKAau6mX6/Sz51kC6CnZgEIULLT6KFEjbI=; 25:LUwpqIPKayaZe0K8s/bv+cqbxf9CHs6MsHszSYnxFbgNNgkGdriy2Lqy1aIlpdYXkvs1/5ZikZuF/AMYPqiKbE3FyiPiqd0qJZN4glY5jUrbY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DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(189271028609987)(192813158149592); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231382)(944501410)(52105095)(3002001)(10201501046)(93006095)(93004095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:MWHPR0201MB3513; BCL:0; PCL:0; RULEID:; SRVR:MWHPR0201MB3513; X-Microsoft-Exchange-Diagnostics: 1; MWHPR0201MB3513; 4:pA3mWBqGF3AP9mMgf2WVKUJ40rlTBf4aIVuxL6m1ZFKhsDdbnOQyR6Gk9OYCxzcJ/mFRM7EzDQ+hipjNfMcIpxUl7zP6NgNcYvNbk0P6wKzS8RrOIzXcVSEfDQCXB6nRLOcZASeRhkEYBd6Wm/Fqo6QTyLGGLLH2uKfBfiaHRcAA0v7eFqtZa/+3gwL54z1DZ6+v6LIrPozYo5Ke6fJHIkE+QdLeSdmhiPGG+Qh4PsOwJaY3qan2vQUG/HUpEzRqfzdUzUSv4gYtEIsByZz26zfhUYRT/egJsyWzEX9Q86P+2Yz6EUVStzaRu/uyfqlMisZLCwgTOck3Qni1oDj19KvuGKoh3oJ1XCb+uPN9u48= X-Forefront-PRVS: 08444C7C87 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR0201MB3513; 23:OXlcpNMbLLdYYBTDe3Xn7URWE5smf2ICBNFXtg4?= VPOU6vXw4EJD5yZIEp33DMZPUvpQl57oU8F9Ib2oZFsADEhsORjhFz4TsgvnSZf41lNL16rGdqp+TbfOj+5jh0uTt2ReAlXcpsJvymQDGodRefRUudaEj7mbBWBYw2FrCTWuYfYb7VVLXW1RT6iTwxD/rzGghHIq4LHyzm+iMfeh4d4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a9q0r7jPoLIHke9PHAZt1ZCkeS4FvHJXw4wD8MwHJPkpkw== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2018 13:19:27.9272 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d0e24b7-b7bb-4cee-3eb2-08d640c5d313 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR0201MB3513 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.74.48 Subject: [Qemu-devel] [PATCH v5 0/2] arm: Add first models of Xilinx Versal SoC 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: 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, philmd@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This patch series adds initial support for Xilinx's Versal SoC. Xilinx is introducing Versal, an adaptive compute acceleration platform (ACAP), built on 7nm FinFET process technology. Versal ACAPs combine Scalar Processing Engines, Adaptable Hardware Engines, and Intelligent Engines with leading-edge memory and interfacing technologies to deliver powerful heterogeneous acceleration for any application. The Versal AI Core series has five devices, offering 128 to 400 AI Engines. The series includes dual-core Arm Cortex-A72 application processors, dual-core Arm Cortex-R5 real-time processors, 256KB of on-chip memory with ECC, more than 1,900 DSP engines optimized for high-precision floating point with low latency. More info can be found here: https://www.xilinx.com/news/press/2018/xilinx-unveils-versal-the-first-in-a-new-category-of-platforms-delivering-rapid-innovation-with-software-programmability-and-scalable-ai-inference.html In QEMU we'd like to have a virtual developer board with the Versal SoC and a selected set of peripherals under the control of QEMU. We'd like to gradually extend this board as QEMU gains more support for Versal hardware components. QEMU will generate a device-tree describing only the components it supports and includes in the virtual dev board. Before adding Versal support, this series starts with a few fixes to the GEM that I ran into when running recent kernels on the Versal and ZynqMP models. I also noticed a problem with HVC insns not being enabled when using QEMU's PSCI implementation on CPU's with EL2 and EL3 enabled. This causes problems for Linux/KVM guests, also fixed in this series. Best regards, Edgar ChangeLog: v4 -> v5: * Correct setting of boolean full-duplex fdt property v3 -> v4: * Improve error handling for CPU and GIC creation * Remove KVM checks in GIC creation v2 -> v3: * Fix DESCONF6 queue mask generation for GEMs with only one queue. v1 -> v2: * Spell out OCM as On Chip Memory * apperture -> aperture * Remove copy+pasted virt board comment * Remove VMSD for Versal SoC (with a comment on why it's not needed) * Embedd AddressSpace dma object in GEM * Remove debug left-overs in arm-powerctl * Enable PMU in Cortex-A72 * Rename cortex_a57_a53_cp_reginfo -> cortex_a72_a57_a53_cp_reginfo Edgar E. Iglesias (2): hw/arm: versal: Add a model of Xilinx Versal SoC hw/arm: versal: Add a virtual Xilinx Versal board default-configs/aarch64-softmmu.mak | 1 + hw/arm/Makefile.objs | 1 + hw/arm/xlnx-versal-virt.c | 494 ++++++++++++++++++++++++++++ hw/arm/xlnx-versal.c | 323 ++++++++++++++++++ include/hw/arm/xlnx-versal.h | 122 +++++++ 5 files changed, 941 insertions(+) create mode 100644 hw/arm/xlnx-versal-virt.c create mode 100644 hw/arm/xlnx-versal.c create mode 100644 include/hw/arm/xlnx-versal.h