From patchwork Fri Apr 1 15:49:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 64874 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp811499lbc; Fri, 1 Apr 2016 08:51:47 -0700 (PDT) X-Received: by 10.66.251.10 with SMTP id zg10mr32060207pac.1.1459525900569; Fri, 01 Apr 2016 08:51:40 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12si22055687pat.92.2016.04.01.08.51.40; Fri, 01 Apr 2016 08:51:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751845AbcDAPvc (ORCPT + 7 others); Fri, 1 Apr 2016 11:51:32 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33218 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932572AbcDAPv2 (ORCPT ); Fri, 1 Apr 2016 11:51:28 -0400 Received: by mail-pa0-f49.google.com with SMTP id zm5so94007206pac.0 for ; Fri, 01 Apr 2016 08:51:27 -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:in-reply-to:references; bh=6d3kD/k5+TjSkmmKOokdQE45WzF40+QUpM7HToUpHv8=; b=Rn9vB83dctfOgZc9aeJ5MYa1h+GwAudFtYP8mg3tim6YWBWeLoOS+mx3phvv/L8/wP LE61lvt8EqjnfcEnydo5j7kVrPvme0ew7rMTwChGDELYOeyNfwCZtnT3Hu3xyoC90/E2 RgzJxGLuB+K/yZdhMyTfAZUVuJoVGF0ck60tQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6d3kD/k5+TjSkmmKOokdQE45WzF40+QUpM7HToUpHv8=; b=RnrIbUTVgNOSmsfCAnF9OAsmtMKlRa7aTyhq4I2Tu3VCCcX1LKZx+GKh6ei//yIfWp JQ38E6kGPJc881Z84eJY2H8G9JcWkldEaAHgknCMyPWlxLzFR9FeW87pvabDmepGAMwL 5G5P14LNBg6AIpfAq/CUxwr5cGFu7bwAiR0sOzxwsuySdZsmohDkem7MeMV+DotRi2yB JiSahNULEHj+cEwrDRzFTRD8e/Zp35azkKaltyTAC6UsjviLYqO8WtRuO9NA0ZP86++z XLMB+eSql/kNUPart64YyTcdrbmH1Mb0tUqAkDkWalpJ1d3K4kJMR1Fi73VF1r+CIDsk SOuA== X-Gm-Message-State: AD7BkJKn+G6rK2WCaSq17o7w++Bj5Rm78a5bh0GRPyr2/UMU1+MSFU6tYa67JCZIPqjYWP5S X-Received: by 10.66.189.166 with SMTP id gj6mr32133588pac.158.1459525887344; Fri, 01 Apr 2016 08:51:27 -0700 (PDT) Received: from localhost.localdomain ([167.160.116.218]) by smtp.gmail.com with ESMTPSA id yj1sm22536791pac.16.2016.04.01.08.51.18 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2016 08:51:26 -0700 (PDT) From: Shannon Zhao To: linux-arm-kernel@lists.infradead.org, stefano.stabellini@citrix.com Cc: david.vrabel@citrix.com, devicetree@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, julien.grall@arm.com, peter.huangpeng@huawei.com, xen-devel@lists.xen.org, zhaoshenglong@huawei.com, shannon.zhao@linaro.org, Rob Herring Subject: [PATCH v10 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms Date: Fri, 1 Apr 2016 23:49:11 +0800 Message-Id: <1459525755-36968-14-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459525755-36968-1-git-send-email-shannon.zhao@linaro.org> References: <1459525755-36968-1-git-send-email-shannon.zhao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. CC: Rob Herring Signed-off-by: Shannon Zhao Acked-by: Rob Herring Reviewed-by: Stefano Stabellini --- Documentation/devicetree/bindings/arm/xen.txt | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/arm/xen.txt b/Documentation/devicetree/bindings/arm/xen.txt index 0f7b9c2..c9b9321 100644 --- a/Documentation/devicetree/bindings/arm/xen.txt +++ b/Documentation/devicetree/bindings/arm/xen.txt @@ -11,10 +11,32 @@ the following properties: memory where the grant table should be mapped to, using an HYPERVISOR_memory_op hypercall. The memory region is large enough to map the whole grant table (it is larger or equal to gnttab_max_grant_frames()). + This property is unnecessary when booting Dom0 using ACPI. - interrupts: the interrupt used by Xen to inject event notifications. A GIC node is also required. + This property is unnecessary when booting Dom0 using ACPI. +To support UEFI on Xen ARM virtual platforms, Xen populates the FDT "uefi" node +under /hypervisor with following parameters: + +________________________________________________________________________________ +Name | Size | Description +================================================================================ +xen,uefi-system-table | 64-bit | Guest physical address of the UEFI System + | | Table. +-------------------------------------------------------------------------------- +xen,uefi-mmap-start | 64-bit | Guest physical address of the UEFI memory + | | map. +-------------------------------------------------------------------------------- +xen,uefi-mmap-size | 32-bit | Size in bytes of the UEFI memory map + | | pointed to in previous entry. +-------------------------------------------------------------------------------- +xen,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI + | | memory map. +-------------------------------------------------------------------------------- +xen,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format. +-------------------------------------------------------------------------------- Example (assuming #address-cells = <2> and #size-cells = <2>): @@ -22,4 +44,17 @@ hypervisor { compatible = "xen,xen-4.3", "xen,xen"; reg = <0 0xb0000000 0 0x20000>; interrupts = <1 15 0xf08>; + uefi { + xen,uefi-system-table = <0xXXXXXXXX>; + xen,uefi-mmap-start = <0xXXXXXXXX>; + xen,uefi-mmap-size = <0xXXXXXXXX>; + xen,uefi-mmap-desc-size = <0xXXXXXXXX>; + xen,uefi-mmap-desc-ver = <0xXXXXXXXX>; + }; }; + +The format and meaning of the "xen,uefi-*" parameters are similar to those in +Documentation/arm/uefi.txt, which are provided by the regular UEFI stub. However +they differ because they are provided by the Xen hypervisor, together with a set +of UEFI runtime services implemented via hypercalls, see +http://xenbits.xen.org/docs/unstable/hypercall/x86_64/include,public,platform.h.html.