From patchwork Tue Nov 17 09:57:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 56774 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1831262lbb; Tue, 17 Nov 2015 01:58:24 -0800 (PST) X-Received: by 10.68.133.230 with SMTP id pf6mr62431753pbb.31.1447754304583; Tue, 17 Nov 2015 01:58:24 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id eo16si56569775pab.209.2015.11.17.01.58.24; Tue, 17 Nov 2015 01:58:24 -0800 (PST) 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; 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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753435AbbKQJ6X (ORCPT + 6 others); Tue, 17 Nov 2015 04:58:23 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34257 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753093AbbKQJ6V (ORCPT ); Tue, 17 Nov 2015 04:58:21 -0500 Received: by wmvv187 with SMTP id v187so218386795wmv.1 for ; Tue, 17 Nov 2015 01:58:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jGInOaQLndcCjLEm4s6PvYvxLQ+Q8LG9r2/0eJj2gw0=; b=h/MiKD+TbAncWe2ZepFJDhaZ9FRpjSPXYgh5BC72wf5F626DDQ3+4slbDK0B/EvYRh 16qQawqqkov4HaaCE6QA/ryz83Uhpk4y8dbEodsYEf6FyjhYXYU0C5H1YeJX+e9J/99x 1R4h9FIijT1Y6euilUl43IejJharE7e/GicEESPKJn8WyAzeAhrbd1cfoZiNH3QlizSe s9x9frY6g5FXz9ornaoDIx5ZX7pw8YDEZkVOgvCDB5li/qVZYPRq5JgUIb973FmyHaCE caehVlrwNMXClOQVDoKYJfr+cGgYOrHdw0NSi9+GPBGvhxi4r8pYa0Ti9G9jA51xO+xE PT5g== 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=jGInOaQLndcCjLEm4s6PvYvxLQ+Q8LG9r2/0eJj2gw0=; b=YoI9e+nMgD70zNHs+G1kW74QYp5EO1lXbK+iki35qULM5xzRil3nf1TfwxeY0gdoOo 9gbcsPfPOvGxZb1kHaDV7ITzpCEAycn885fzhrP9449fBXcVgUzNjzRFCCfxXAcocLWt gK+zMK7svY4HbsIoy00qiqCowamIlaZVq/6jl+njbMBbnFriKzYDfcVRawUhGPk+cpvM K4B2qJXFc1j7urrZTaKYGveGQoZk6SG5Vb7pbzDDOxPn7ACvjb8MDZcROvjKk2egG5oO wZb+h/Jd2oBuNEtDlDL0wzs8gxiNUpfGVZYTphE6J+/C9PfXBSdH5CeckNW/YNtbB1Tt ekQw== X-Gm-Message-State: ALoCoQl+cCqiN/KYWfpZH15z7EPhZYmn5S65joub43XT/9q2wfaoHznxd2fOsqQxIgynSxUA4T2B X-Received: by 10.28.18.9 with SMTP id 9mr1496643wms.96.1447754299911; Tue, 17 Nov 2015 01:58:19 -0800 (PST) Received: from localhost ([78.129.251.54]) by smtp.gmail.com with ESMTPSA id u17sm23109521wmd.8.2015.11.17.01.58.17 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:58:19 -0800 (PST) From: shannon.zhao@linaro.org To: ian.campbell@citrix.com, stefano.stabellini@citrix.com, catalin.marinas@arm.com, will.deacon@arm.com, julien.grall@citrix.com, ard.biesheuvel@linaro.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org Cc: xen-devel@lists.xen.org, christoffer.dall@linaro.org, devicetree@vger.kernel.org, linux-efi@vger.kernel.org, peter.huangpeng@huawei.com, shannon.zhao@linaro.org, zhaoshenglong@huawei.com, hangaohuai@huawei.com Subject: [PATCH 07/13] ARM: Xen: Document UEFI support on Xen ARM virtual platforms Date: Tue, 17 Nov 2015 17:57:05 +0800 Message-Id: <1447754231-7772-8-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1447754231-7772-1-git-send-email-shannon.zhao@linaro.org> References: <1447754231-7772-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 From: Shannon Zhao Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. Signed-off-by: Shannon Zhao --- Documentation/devicetree/bindings/arm/xen.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.1.0 -- 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..c375d67 100644 --- a/Documentation/devicetree/bindings/arm/xen.txt +++ b/Documentation/devicetree/bindings/arm/xen.txt @@ -15,6 +15,24 @@ the following properties: - interrupts: the interrupt used by Xen to inject event notifications. A GIC node is also required. +To support UEFI on Xen ARM virtual platforms, Xen pupulates the FDT "uefi" node +under /hypervisor with following parameters: + +________________________________________________________________________________ +Name | Size | Description +================================================================================ +xen,uefi-system-table | 64-bit | Physical address of the UEFI System Table. +-------------------------------------------------------------------------------- +xen,uefi-mmap-start | 64-bit | 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 +40,11 @@ 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>; + }; };