From patchwork Thu Apr 18 04:04:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongbo Zhang X-Patchwork-Id: 162432 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp255879jan; Wed, 17 Apr 2019 21:05:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC2QIa4om4DVbIltqdtCQfdUWnYGdjTf3wi/1HJ07zVPbL6brUG6xqv45JPzeGD+6pqkaI X-Received: by 2002:a1c:b189:: with SMTP id a131mr1251707wmf.107.1555560337060; Wed, 17 Apr 2019 21:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555560337; cv=none; d=google.com; s=arc-20160816; b=ACzeZzGDkoiiXIGFPVQ1fKPto8ZcWHz9sK4SF4HHt2AHtgRuaOY7z9MjgIN35txYBm bTUaV5Uy4BLe8ctpMDIlNjV2sLLmtqJSccjiDnuu3jqx8dnSPiwpOjiHffBkDWlFevP7 hTvfXGXcBz3vfCh/MEciXBkaR/S25tpTZ9wZfdlnU/Q/4QjdtUJMNjij4B93KlsU002c DgEZ3Rip6BK1ajG65PjbHHz3oL3jnsj/B7ocuVQMT2oPxk47c3GCdHdea8CMvd2OfoVf iB8MbUhSHPVPqLn7u4b7HPVb/9PexRjwGQyiuZNQt5fyrSfkT37yskk/2FJnXVgGud6i 2xHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:to:from :dkim-signature; bh=ipCTowXe446W73k2Vwrsnaf0r5pLUqeNQXv5HiqvNbk=; b=NnLdUYwU4t2ihGrOa7tT+zl61y+Qe9YB4vymrq0Mb0yLQXFM7ZcUpId/wFhZWLsGNZ 8TLQfP1MG/8hfTN5CidGh3MJenuBDpL7KJnPmGT23CgbcD2MjwAc5KFtt+0S24misFzZ Cbzu7Mc6mh0DoFFvRlcUxWU/hzDOaNM3+VnQswApS5MDqbxcxWaCPleHyzgBbM6rtrr7 d7bqPLgHlcJzSJ0fUKST/V9EP/EhfSST2/OKF4gkCb14Ak+rZX7M/AQxCdb+k5GrjCqL Dt90LWh7fezCtaU4RcRJu2jrauj+0ZuVWdx1TBOa2hdFfoJPvFVZJAOq5ojxXl2GOHn+ 3x6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=x1fbTxBp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s15si656199wmc.4.2019.04.17.21.05.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 17 Apr 2019 21:05:37 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=x1fbTxBp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:35239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGyIp-00022r-NU for patch@linaro.org; Thu, 18 Apr 2019 00:05:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGyIV-00021r-75 for qemu-devel@nongnu.org; Thu, 18 Apr 2019 00:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGyIS-0001q1-Da for qemu-devel@nongnu.org; Thu, 18 Apr 2019 00:05:15 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:44243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGyIS-0001mF-7W for qemu-devel@nongnu.org; Thu, 18 Apr 2019 00:05:12 -0400 Received: by mail-pg1-x541.google.com with SMTP id i2so530494pgj.11 for ; Wed, 17 Apr 2019 21:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ipCTowXe446W73k2Vwrsnaf0r5pLUqeNQXv5HiqvNbk=; b=x1fbTxBp2La9EgVubLuqRwSWaJwdPyG2p+Eimg/8XdAFB7iFLkDn3tcNgfu2dUZprF N+IWduh4UUNW3BKCE2tYSKZkG2dvMIoMAUwxXZWtc/I//xV8/ytNpX4Y3I7+P9d+qt9+ Pc1R53vDtFB+ab3NbN0TlmUKSSBtALeurPhHCFuAsDFyYH1M5hxXihzZ1UR5XIvLmnsd n78bsXLbJoULmzBPI+p2xyGJBLbyzFxXe+cWB6j7vO6K3U79zGjI9fBSM7hTFUSLhNNi RvJUYROBVt1B6eyLljPrJeQq8E95T7Yr29joF5yOI2z0TCYs8Bzin6u2LWDH7hTWH7xr fwHg== 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; bh=ipCTowXe446W73k2Vwrsnaf0r5pLUqeNQXv5HiqvNbk=; b=Q69zLR6ZKWw4cU31vs2vOYTT4Tw3X+017YoNcxJZeFdJs7O/qribmCc7vN6jGf0mLm hZxEW4hK2CrUPM5qrxiMY5wY8ekAhnbsnGPZD6PVwk9d7h9Gtuh8NLMFFYTJ0mGUvhx4 LvTR6E+fnI2Vr7kIyJBy+jXk8QOJIReyiZY9Zvi94mKqbFIHkEYtTFXDIqXNFkhmU0PP DbWhO+GOeoUwp2M00ru82SppZ4rklZUIO+BvZtX6cKyTnPs3qPJrdBIu2mqFOpwDyPxm lKYMwPM3S8zNNOsBSTfpYYFwcc9k4VN6la/hyXj1eH0+mbOPNb03Z0YoMxhMTn+0cO22 JxpQ== X-Gm-Message-State: APjAAAUMq+qNprHNcQ+rtKbMvm/qW09gO3aVnOY6nMZbf/HaXJnDmEEW hrv19of40Kh2t111BoJZ8Fo9gw== X-Received: by 2002:a63:5c56:: with SMTP id n22mr74890116pgm.108.1555560309080; Wed, 17 Apr 2019 21:05:09 -0700 (PDT) Received: from localhost.localdomain ([38.106.11.25]) by smtp.gmail.com with ESMTPSA id h8sm910688pfo.149.2019.04.17.21.05.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Apr 2019 21:05:08 -0700 (PDT) From: Hongbo Zhang To: peter.maydell@linaro.org, qemu-devel@nongnu.org, qemu-arm@nongnu.org Date: Thu, 18 Apr 2019 12:04:49 +0800 Message-Id: <1555560291-3415-1-git-send-email-hongbo.zhang@linaro.org> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::541 Subject: [Qemu-devel] [PATCH v7 0/2] Add Arm SBSA Reference Machine 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: Hongbo Zhang , radoslaw.biernacki@linaro.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" For the Aarch64, there is one machine 'virt', it is primarily meant to run on KVM and execute virtualization workloads, but we need an environment as faithful as possible to physical hardware, to support firmware and OS development for pysical Aarch64 machines. This machine comes with: - Re-designed memory map. - CPU cortex-a57. - EL2 and EL3 enabled. - GIC version 3. - System bus AHCI controller. - System bus XHCI controller. - CDROM and hard disc on AHCI bus. - E1000E ethernet card on PCIE bus. - VGA display adaptor on PCIE bus. - Only minimal device tree nodes. And without: - virtio deivces. - fw_cfg device. - ACPI tables. Arm Trusted Firmware and UEFI porting to this are done accordingly, and it should supply ACPI tables to load OS, the minimal device tree nodes supplied from this platform are only to pass the dynamic info reflecting command line input to firmware, not for loading OS. v7 changes: - edit memory map for PCIE slightly - add another secure UART which can be used for RAS and MM from EL0. v6 changes: - rebased to the latest QEMU tree - rechecked all the header files included - added the newly introduced system bus EHCI controller - removed the machine_done callback due to commit 5614ca80 - updated block comments styles according to checkpatch.pl - use Kconfig to add new file - use private SBSA* types defination instead of VIRT* in virt.h since nobody else using them so they are in the .c file instead of a new .h file v5 changes: - removed more lines derived from virt.c - designed a new memory map - splitted former one patch into two for easier review - cancled previous EHCI and new HXCI coming later separately V4 changes: - rebased to v3.0.0 - removed timer, uart, rtc, *hci device tree nodes (others were removerd in v3) - other minore codes clean up, mainly unsed header files, comments etc. V3 changes: - rename the platform 'sbsa-ref' - move all the codes to a separate file sbsa-ref.c - remove paravirtualized fw_cfg device - do not supply ACPI tables, since firmware will do it - supply only necessary DT nodes - and other minor code clean up Hongbo Zhang (2): hw/arm: Add arm SBSA reference machine, skeleton part hw/arm: Add arm SBSA reference machine, devices part default-configs/arm-softmmu.mak | 1 + hw/arm/Kconfig | 3 + hw/arm/Makefile.objs | 1 + hw/arm/sbsa-ref.c | 757 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 762 insertions(+) create mode 100644 hw/arm/sbsa-ref.c -- 2.7.4