From patchwork Tue Mar 3 11:03:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 45353 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 54DE421429 for ; Tue, 3 Mar 2015 11:14:42 +0000 (UTC) Received: by wghl18 with SMTP id l18sf28193642wgh.3 for ; Tue, 03 Mar 2015 03:14:41 -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=1ateQ0DtTEiqoPdzJ9jhXD2AYEAmUiC6zOlJdsfx0iE=; b=XYcMvZHPvFyi0Z6FbMdu3WRb3O3H9p415pLI8bTx51Mx24bYLdQ3+o4oeN8Dxg6qdu Fmz4xI3EU0PyuX8OghZHxRgHkEh2BDz3T/E0QNgS8faqz5fUPZRpTyz+IyWxYpuTJk8q LJN6uYprnWqGhhpAE8t7DwlQqXFIpVkS8AD0NPIl59c1c6U/8UAcphDlNzTbG8a6PbZe X95m3cyPYPrM8HZHdSheCQeSSuoA5nhxHuY1rrgPFvZQhUERwahJ2SL2TGaweaxFhP67 K16hI78pNUPhXhzH4jeHZ7Z6SPApmNHeLid5WZTPAkIP48pMm4mrAwfHYybcAYXIoBzI EFkg== X-Gm-Message-State: ALoCoQkICiL7MPGYV6j2QdBbm8zBlPu5/iVlh2Y5LZ2doFtaccPGWpNE2SfoI+cjDfFliLVvSbx/ X-Received: by 10.152.6.41 with SMTP id x9mr4470648lax.10.1425381281627; Tue, 03 Mar 2015 03:14:41 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.164.193 with SMTP id ys1ls25533lab.39.gmail; Tue, 03 Mar 2015 03:14:41 -0800 (PST) X-Received: by 10.152.243.4 with SMTP id wu4mr28629806lac.33.1425381281482; Tue, 03 Mar 2015 03:14:41 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id e2si311183laf.54.2015.03.03.03.14.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 03:14:41 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lamq1 with SMTP id q1so13459364lam.0 for ; Tue, 03 Mar 2015 03:14:41 -0800 (PST) X-Received: by 10.112.211.200 with SMTP id ne8mr28083262lbc.73.1425381281388; Tue, 03 Mar 2015 03:14:41 -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.35.133 with SMTP id h5csp492590lbj; Tue, 3 Mar 2015 03:14:40 -0800 (PST) X-Received: by 10.66.101.35 with SMTP id fd3mr55740022pab.50.1425381279548; Tue, 03 Mar 2015 03:14:39 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id ju2si720770pbc.27.2015.03.03.03.14.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 03:14: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 1YSkkH-0001Sv-7m; Tue, 03 Mar 2015 11:12:13 +0000 Received: from mail-wg0-f54.google.com ([74.125.82.54]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YSkd5-0002Qs-Q3 for linux-arm-kernel@lists.infradead.org; Tue, 03 Mar 2015 11:04:49 +0000 Received: by wggy19 with SMTP id y19so39112954wgg.13 for ; Tue, 03 Mar 2015 03:04:25 -0800 (PST) X-Received: by 10.194.216.34 with SMTP id on2mr32063535wjc.24.1425380665100; Tue, 03 Mar 2015 03:04:25 -0800 (PST) Received: from ards-macbook-pro.local ([213.143.61.132]) by mx.google.com with ESMTPSA id k6sm20058411wia.6.2015.03.03.03.04.17 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Mar 2015 03:04:24 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, roy.franz@linaro.org, leif.lindholm@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, grant.likely@linaro.org, robh@kernel.org, msalter@redhat.com Subject: [PATCH 3/5] arm64: Documentation: clarify Image placement in physical RAM Date: Tue, 3 Mar 2015 12:03:48 +0100 Message-Id: <1425380630-3684-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1425380630-3684-1-git-send-email-ard.biesheuvel@linaro.org> References: <1425380630-3684-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150303_030448_008423_E94A60DB X-CRM114-Status: GOOD ( 12.60 ) 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 [74.125.82.54 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.54 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: matt.fleming@intel.com, 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.47 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 The early init code maps the kernel image using statically allocated page tables. This means that we can only allow Image to be placed such that we can map its entire static footprint using a single table entry at all but the lowest level. So update the documentation to reflect that the Image should not cross a 512 MB boundary, which ensures the above on both 4k and 64k pages kernels. Signed-off-by: Ard Biesheuvel --- Documentation/arm64/booting.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/arm64/booting.txt b/Documentation/arm64/booting.txt index bdc35fc97ac8..49f17b1632f1 100644 --- a/Documentation/arm64/booting.txt +++ b/Documentation/arm64/booting.txt @@ -112,8 +112,9 @@ The Image must be placed text_offset bytes from a 2MB aligned base address near the start of usable system RAM and called there. Memory below that base address is currently unusable by Linux, and therefore it is strongly recommended that this location is the start of system RAM. -At least image_size bytes from the start of the image must be free for -use by the kernel. +The physical memory region consisting of image_size bytes counting from +the start of the image must be free for use by the kernel, and must not +cross a 512 MB physical alignment boundary. Any memory described to the kernel (even that below the 2MB aligned base address) which is not marked as reserved from the kernel e.g. with a