From patchwork Tue Nov 17 09:41:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 7635101 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1D5A7BF90C for ; Tue, 17 Nov 2015 10:14:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3831D204D6 for ; Tue, 17 Nov 2015 10:14:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 62DB220411 for ; Tue, 17 Nov 2015 10:14:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZydF2-0006VD-7a; Tue, 17 Nov 2015 10:12:00 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zycu3-0004yx-UX for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 09:50:23 +0000 Received: by wmvv187 with SMTP id v187so218038392wmv.1 for ; Tue, 17 Nov 2015 01:49:58 -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=1Yb265ywlEB+Jwt5oTsbeJIYK+HJccJya+TRKVgG5E4=; b=W2Mub6Xz+8NDes07sxoKbsc3DBErLjGiaBeUac62gfmh0zIOMOH2rrG18NOqJF7gld sCsxVK1SsJlAdZcZMQI67mbmTNwN8M27ciXdcQt+5FIFlNJD9n5YQkseNYFfnWo7rw8F lqNE0eDfWDBdF0ufnVp7XpHEu07yq0+wqJ/nTMeP0hHAHk6zBC0OTLSabCJtRkLx6Nq9 IfYi+PS5XFvXkjgoDUZiPIE5lPYD1IAJm3xpSI7caBclNZbDQZF5TnTx7gX936Rpxp3h eYdR6vWWWoqiUwHWnJZtfP3KHgjGURI234VNs3+BztRTCRHpQHfapogQ03ZZdnH9ylRk JFfQ== 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=1Yb265ywlEB+Jwt5oTsbeJIYK+HJccJya+TRKVgG5E4=; b=G6Av5y+cGxCCU8nIc26YiUIJoI5OOtRQm4JZYcBvi17g6b4YRdQGNr8QHi6133383I vTxFYxcMzz6vT3Xpp3WmRz5t2V/yoAzykApRIYMfVBWtQrgQWy0cFhabxL8Vc9yTblZ9 Oc4MO/HUbN/3JQrgJ3MWcjXwGAZcBZlenjcNysOTcW9Xhcj0MLID/j4u2nH1ChdrHwxQ DKePdJEWruW5AwGz8VWoxJwzeSCeZfPlI4eEmjmeLxYYeMooOrNBGx6t7DM59q32TMch QXsPtTVnPl9r2fMxuJmeaEkUA0nX49zHKu7PlULuNwiyotb0iBZUzflZjNzY6Ki8+e2i yT2A== X-Gm-Message-State: ALoCoQn0C1nvJxv5HwXtBHwFBIPKyZ+caKgq27+auoP9HBDCBBb+riilsbIAh6w+xiiLW6KA/zn4 X-Received: by 10.28.100.69 with SMTP id y66mr1542247wmb.98.1447753797520; Tue, 17 Nov 2015 01:49:57 -0800 (PST) Received: from localhost ([78.129.251.54]) by smtp.gmail.com with ESMTPSA id k133sm15287963wmg.18.2015.11.17.01.49.55 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:49:56 -0800 (PST) From: shannon.zhao@linaro.org To: ian.campbell@citrix.com, stefano.stabellini@citrix.com, keir@xen.org, jbeulich@suse.com, andrew.cooper3@citrix.com, julien.grall@citrix.com, xen-devel@lists.xen.org Subject: [PATCH v3 62/62] xen/arm64: Add ACPI support Date: Tue, 17 Nov 2015 17:41:01 +0800 Message-Id: <1447753261-7552-63-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> References: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_015020_580411_7B114470 X-CRM114-Status: GOOD ( 12.00 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, hangaohuai@huawei.com, ard.biesheuvel@linaro.org, shannon.zhao@linaro.org, christoffer.dall@linaro.org, peter.huangpeng@huawei.com, david.vrabel@citrix.com, zhaoshenglong@huawei.com, linux-arm-kernel@lists.infradead.org, roger.pau@citrix.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Naresh Bhat Add ACPI support on arm64 xen hypervisor. Enable EFI support on ARM. Signed-off-by: Naresh Bhat Signed-off-by: Shannon Zhao --- config/arm64.mk | 1 + xen/common/efi/runtime.c | 2 +- xen/include/asm-arm/config.h | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/arm64.mk b/config/arm64.mk index c5deb4e..c6a040b 100644 --- a/config/arm64.mk +++ b/config/arm64.mk @@ -11,6 +11,7 @@ HAS_CADENCE_UART := y HAS_NS16550 := y HAS_MEM_ACCESS := y HAS_GICV3 := y +HAS_ACPI := y # Use only if calling $(LD) directly. LDFLAGS_DIRECT += -EL diff --git a/xen/common/efi/runtime.c b/xen/common/efi/runtime.c index ae87557..7748056 100644 --- a/xen/common/efi/runtime.c +++ b/xen/common/efi/runtime.c @@ -11,7 +11,7 @@ DEFINE_XEN_GUEST_HANDLE(CHAR16); #ifndef COMPAT #ifdef CONFIG_ARM /* Disabled until runtime services implemented */ -const bool_t efi_enabled = 0; +const bool_t efi_enabled = 1; #else # include # include diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h index 817c216..e87fd27 100644 --- a/xen/include/asm-arm/config.h +++ b/xen/include/asm-arm/config.h @@ -33,6 +33,11 @@ #define CONFIG_ARM_L1_CACHE_SHIFT 7 /* XXX */ +#if defined(CONFIG_ARM_64) +#define CONFIG_ACPI 1 +#define CONFIG_ACPI_BOOT 1 +#endif + #define CONFIG_SMP 1 #define CONFIG_VIDEO 1