From patchwork Thu Aug 31 09:56:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 9931709 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 10613602F0 for ; Thu, 31 Aug 2017 09:57:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEBA4285A9 for ; Thu, 31 Aug 2017 09:57:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3115288DE; Thu, 31 Aug 2017 09:57:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E29C0285A9 for ; Thu, 31 Aug 2017 09:57:39 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=Q9Pq67kXw/g6cphusAa0qaF6g3iVp5GBUdTqhlBrm0w=; b=Ybv iyF1PmzF9gFSkpCowAmMj1qK6oDaVByGSckcgwdoqnO3dGcv8ciEaCclm1rYX1f/UF1KSQW04fYpR P51HnJlLGv/yaitbZtzg2DIuY2u8TOWf3IqZ00DO5i4IRHNsziPRWyPrQEv32ackJH54fc+Etvoru NzrO07Ve1016RhgIlKxjECu3z8lJ0bmbFjOdFU5nr9JeBaTVeqtlg8GA14Q5Ql8IbVDIdCEk64Tbw sk6CruijrfXCc27cYb7bXSuYqP72tGlk39fq7qs8fpFj0tTvCG3hdDJBpRXMbJPolJymQqMN0z/K5 AZKZmR85/aLzx8SCYu1h53Wi+6POT/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dnMEC-0000G0-R4; Thu, 31 Aug 2017 09:57:36 +0000 Received: from conuserg-07.nifty.com ([210.131.2.74]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dnME9-0000EQ-3Y for linux-arm-kernel@lists.infradead.org; Thu, 31 Aug 2017 09:57:35 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id v7V9uaqW001078; Thu, 31 Aug 2017 18:56:37 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v7V9uaqW001078 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1504173398; bh=GcqbPrSsh1FS9h6M2FlW1e/+aBe1jXkK4N6SGPOEQSE=; h=From:To:Cc:Subject:Date:From; b=2tu+HWimBVcii/63Lt0i+blOC4mxZP96BJZ5eNYycTv7b33qtugEyyD4ELmTGRY02 MebfZK2pCuqSXCuZP77jXTX34vTQ/glgMwFwnYDCMqaYg5t6PUUWJ9Oi0O3bbH6eqo aEPFf1Q7Bj8seFYzZwSRUSQiFcvHxJo3SmTENxoi9y/CjUsgtRUfAFTahjBROe3ZDM GB9DoRQ2SKK78yPQr0ZnMM8ftLucD6kazuXP+ziMceH04zmTDNaA5e7A/Kg+9FkS9I xUjtaux+P1smw86ks+iCJqCo3ywZ22CUvFxYRYMOLU5yog3+x8Fr/E/FyRJTl/2c/9 ws/daXHPBScSA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-arm-kernel@lists.infradead.org, Will Deacon , Catalin Marinas Subject: [PATCH] arm64: relax assembly code alignment from 16 byte to 4 byte Date: Thu, 31 Aug 2017 18:56:23 +0900 Message-Id: <1504173383-8367-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170831_025733_529341_E71E7A9F X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Arnd Bergmann , Marc Zyngier , Russell King , linux-kernel@vger.kernel.org, Masahiro Yamada , Olof Johansson MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Aarch64 instructions must be word aligned. The current 16 byte alignment is more than enough. Relax it into 4 byte alignment. Signed-off-by: Masahiro Yamada --- I do not know why arm64 Linux requires 16 byte alignment. I dug git-history of arch/arm64/include/asm/linkage.h and the only commit I see is: commit aeed41a9371ee02257b608eb06a9058507a7d0f4 Author: Marc Zyngier Date: Fri Oct 19 17:33:27 2012 +0100 arm64: fix alignment padding in assembly code It just opt out of the asm-generic variant to remove 0x90. So, the amount of alignment might not be not optimized yet. Please correct me if I am missing something. arch/arm64/include/asm/linkage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/linkage.h b/arch/arm64/include/asm/linkage.h index 636c1bc..1b26629 100644 --- a/arch/arm64/include/asm/linkage.h +++ b/arch/arm64/include/asm/linkage.h @@ -1,7 +1,7 @@ #ifndef __ASM_LINKAGE_H #define __ASM_LINKAGE_H -#define __ALIGN .align 4 -#define __ALIGN_STR ".align 4" +#define __ALIGN .align 2 +#define __ALIGN_STR ".align 2" #endif