From patchwork Mon Dec 22 10:59:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 42515 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A1A4925BA1 for ; Mon, 22 Dec 2014 11:02:43 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf2790368lbj.3 for ; Mon, 22 Dec 2014 03:02:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=KZlpnlCLed01BGgpmywwPy2J1ytud/P8qOmFpxL+980=; b=UP9t8ApbbqRgIKho2tKBJz6TFjsI+Rs4kRxJbpqLzGTiX6Qqzx7dxtOr/hAYv7yjpj 43qDbKjKjs60jMELi2cCeEl9CNJsHHG7udrZsBIkiyR+2JbtoSfd/2EfAPm7JClZsO75 fVxCkVc4Aw6S4h0u2hNSHnvPSbZJA7Y3kh5gVnuocTXxN3Xjc2ux9jUCcM3Q9ZkIfAAA 6d8vBjJa7qr/p9pfzAu5exhpWh+zNOk/pwByGGxXD7Vlf+6ANi6mF6X9oseQaDFAaHFM w/Lq9FHIHNnVz46WjZzVxv65cKzQnqr9f+Ewycx2TodW9EWNHbjRg5EZrqXoSoy6Co4q NToQ== X-Gm-Message-State: ALoCoQnDWQ1yngyou10GI0fbo8n6ZAT/rGc5FCZTm7uJoJjzYCUnhu4gwqt9hTOrI2wH4RYt6jHX X-Received: by 10.112.42.104 with SMTP id n8mr112007lbl.19.1419246162651; Mon, 22 Dec 2014 03:02:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.131 with SMTP id t3ls880272lag.44.gmail; Mon, 22 Dec 2014 03:02:42 -0800 (PST) X-Received: by 10.152.5.198 with SMTP id u6mr21705961lau.42.1419246162444; Mon, 22 Dec 2014 03:02:42 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id i8si18155656lam.48.2014.12.22.03.02.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Dec 2014 03:02:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id gd6so3845390lab.17 for ; Mon, 22 Dec 2014 03:02:42 -0800 (PST) X-Received: by 10.152.164.133 with SMTP id yq5mr17408105lab.38.1419246162300; Mon, 22 Dec 2014 03:02:42 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp989177lbb; Mon, 22 Dec 2014 03:02:40 -0800 (PST) X-Received: by 10.68.57.202 with SMTP id k10mr33626207pbq.163.1419246159934; Mon, 22 Dec 2014 03:02:39 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id qu3si24714153pbc.58.2014.12.22.03.02.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Dec 2014 03:02:39 -0800 (PST) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; 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 1Y30jW-0008Id-8a; Mon, 22 Dec 2014 11:01:02 +0000 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y30iR-0006lW-W2 for linux-arm-kernel@lists.infradead.org; Mon, 22 Dec 2014 10:59:56 +0000 Received: by mail-wi0-f169.google.com with SMTP id r20so10117745wiv.4 for ; Mon, 22 Dec 2014 02:59:34 -0800 (PST) X-Received: by 10.194.174.40 with SMTP id bp8mr39868579wjc.104.1419245974008; Mon, 22 Dec 2014 02:59:34 -0800 (PST) Received: from ards-macbook-pro.local ([105.155.26.23]) by mx.google.com with ESMTPSA id f7sm12853616wiz.13.2014.12.22.02.59.31 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Dec 2014 02:59:33 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, leif.lindholm@linaro.org, roy.franz@linaro.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, matt.fleming@intel.com, bp@alien8.de, dyoung@redhat.com, geoff.levand@linaro.org, msalter@redhat.com Subject: [PATCH v4 5/8] arm64/efi: set EFI_ALLOC_ALIGN to 64 KB Date: Mon, 22 Dec 2014 10:59:01 +0000 Message-Id: <1419245944-2424-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1419245944-2424-1-git-send-email-ard.biesheuvel@linaro.org> References: <1419245944-2424-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141222_025956_204062_760AB645 X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.169 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.169 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Set EFI_ALLOC_ALIGN to 64 KB so that all allocations done by the stub are naturally compatible with a 64 KB granule kernel. Signed-off-by: Ard Biesheuvel Acked-by: Leif Lindholm --- arch/arm64/include/asm/efi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/efi.h b/arch/arm64/include/asm/efi.h index a34fd3b12e2b..71291253114f 100644 --- a/arch/arm64/include/asm/efi.h +++ b/arch/arm64/include/asm/efi.h @@ -44,4 +44,6 @@ extern void efi_idmap_init(void); #define efi_call_early(f, ...) sys_table_arg->boottime->f(__VA_ARGS__) +#define EFI_ALLOC_ALIGN SZ_64K + #endif /* _ASM_EFI_H */