From patchwork Mon Feb 12 11:19:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vladimir Murzin X-Patchwork-Id: 872077 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="SoQ0G1E/"; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IWtUvkBF"; dkim-atps=neutral Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zg6M02Fbmz9s0Z for ; Tue, 13 Feb 2018 00:43:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fkn18g6WRlhLSnDbm60BRSIFcM6oVDLTJ3VMG8B8RMc=; b=SoQ0G1E/+pbOiK4UeyCm4pVL+ g7HjA6awLIUlSlD00iFby3nUEQ/ixvBnFRfCSRmSjiHwi4yuNxnDViiOX+bUL1Pcj9UQbIHCdbTNa luwKSR4VXLUurazS7D4iVQEEc5dM9IuQ11JOG/DmVSih6JpuM8o5fCie84OAAltO6UtHju6AfZr3x hEgL8LvSleWZjRecXk7m2Ez5c46Tpyh3OL9SNqtWW0449+0uiOZtvTuaob2Q423LqMWRFIiYZmtym 6BuInXRHyfpJCqwbKUUv5Nu4m4fhd0pRN2tdtp6BTBfxGFI7+0DKNT+hE7JunhQGG3tQlOBiQC0mA IH77TbCvQ==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elENz-0000iG-Tc for incoming-imx@patchwork.ozlabs.org; Mon, 12 Feb 2018 13:43:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fkn18g6WRlhLSnDbm60BRSIFcM6oVDLTJ3VMG8B8RMc=; b=IWtUvkBFvrGhkM x8woylakpn38Zgmq0qoZUEVAOB6V6PNLua5CqGkPLZIwfwVWeHexJjTmz2ByazbyeDfLjiMr/MEZk Gsx7VVCQ7TjTaXeuRJb1mAN8KE5trJoTjSXSTCcSOWpCJF/wk6vIeS7rjjG2aBqvyVaa79VXlHAnA 02dEmDUiI4uTE7wScBdacqvrXzeBJeqTGk27WlPxB0Oz8EnWHARQBsopR3GIJEADnm8Mf/lFMpddW uno871U1S4635ybNUZD4Xu5QL9HNLOO81b07HbCW1E0r7/3xu+IwZXwIqo8cS3seIes19WC9DpIEK Zvvs9weBjuSOMcaaDI/g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elC9j-0006HR-7V; Mon, 12 Feb 2018 11:20:19 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elC9f-0005Cy-Lf for linux-arm-kernel@lists.infradead.org; Mon, 12 Feb 2018 11:20:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D28A9165C; Mon, 12 Feb 2018 03:20:05 -0800 (PST) Received: from bc-e10-1-11.euhpc.arm.com. (bc-e10-1-11.euhpc.arm.com [10.6.12.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 97C6C3F487; Mon, 12 Feb 2018 03:20:04 -0800 (PST) From: Vladimir Murzin To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] ARM: NOMMU: Make _stext and _end meet PMSAv8 alignment restrictions Date: Mon, 12 Feb 2018 11:19:32 +0000 Message-Id: <1518434373-27907-4-git-send-email-vladimir.murzin@arm.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1518434373-27907-1-git-send-email-vladimir.murzin@arm.com> References: <1518434373-27907-1-git-send-email-vladimir.murzin@arm.com> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [217.140.101.70 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kbuild-all@01.org, alexandre.torgue@st.com, linux@armlinux.org.uk, arnd@arndb.de, sza@esh.hu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org PMSAv8 require addresses to be either 32 (for M-class) or 64 bytes (for R-class) aligned. To keep it simple align to 64 bytes always. For XIP we already have alignment restrictions in place from PMSAv7, but they can be potentially relaxed for PMSAv8. Tested-by: Szemző András Signed-off-by: Vladimir Murzin --- arch/arm/kernel/vmlinux.lds.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 84a1ae3..edcf07b 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -8,6 +8,8 @@ #include "vmlinux-xip.lds.S" #else +#include + #include #include #include @@ -102,6 +104,9 @@ SECTIONS . = ALIGN(1<