From patchwork Thu Apr 14 03:20:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhangjian X-Patchwork-Id: 8831131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CF2B09FE3C for ; Thu, 14 Apr 2016 03:26:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E9B382034C for ; Thu, 14 Apr 2016 03:26:55 +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 11ACF202DD for ; Thu, 14 Apr 2016 03:26:55 +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 1aqXu0-0005eK-Fw; Thu, 14 Apr 2016 03:25:08 +0000 Received: from [119.145.14.199] (helo=szxga05-in.huawei.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aqXtw-0004Sh-64 for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2016 03:25:06 +0000 Received: from 172.24.1.138 (EHLO lggeml429-hub.china.huawei.com) ([172.24.1.138]) by szxrg05-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id ATW75546; Thu, 14 Apr 2016 11:14:01 +0800 (CST) Received: from [127.0.0.1] (10.111.72.170) by lggeml429-hub.china.huawei.com (10.72.61.81) with Microsoft SMTP Server id 14.3.235.1; Thu, 14 Apr 2016 11:20:38 +0800 Subject: Re: [PATCH 10/25] arm64: rename COMPAT to AARCH32_EL0 in Kconfig To: Yury Norov , , , , References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> <1459894127-17698-11-git-send-email-ynorov@caviumnetworks.com> From: "Zhangjian (Bamvor)" Message-ID: <570F0C7D.8000004@huawei.com> Date: Thu, 14 Apr 2016 11:20:29 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1459894127-17698-11-git-send-email-ynorov@caviumnetworks.com> X-Originating-IP: [10.111.72.170] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090205.570F0C97.0097, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 756a277a6183ab74ca581e3d53829dc3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160413_202504_851811_DF89981F X-CRM114-Status: GOOD ( 13.01 ) X-Spam-Score: -1.1 (-) 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: linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Hanjun Guo , pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, heiko.carstens@de.ibm.com, linux-doc@vger.kernel.org, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, Andrew Pinski , broonie@kernel.org, "Zhangjian \(Bamvor\)" , Andrew Pinski , schwab@suse.de, schwidefsky@de.ibm.com, Philipp Tomsich , joseph@codesourcery.com, christoph.muellner@theobroma-systems.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Hi, yury I suggest we enable AARCH32_EL0 by default explicitly. I am not sure if it should be a dedicated commit. I am ok if you merge my commit, add Reviewed-by: Bamvor Jian Zhang commit 926ad48847c9fbc665285c49ff823666e145a083 Author: Bamvor Jian Zhang Date: Wed Apr 6 17:59:03 2016 +0800 arm64: enable aarch32 application by default After introduce the AARCH32_EL0. The aarch32 application is disabled by default which was enabled by default. And the aarch32 application could not run on these kernels consequently. This commit enable it in Kconfig explicitly. Signed-off-by: Bamvor Jian Zhang On 2016/4/6 6:08, Yury Norov wrote: > From: Andrew Pinski > > In this patchset ILP32 ABI support is added. Additionally to AARCH32, > which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. > > From now, AARCH32_EL0 (former COMPAT) config option means the support of > AARCH32 userspace, ARM64_ILP32 - support of ILP32 ABI (see next patches), > and COMPAT indicates that one of them, or both, is enabled. > > Signed-off-by: Andrew Pinski > Signed-off-by: Philipp Tomsich > Signed-off-by: Christoph Muellner > Signed-off-by: Yury Norov > Reviewed-by: David Daney > --- > arch/arm64/Kconfig | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 4f43622..f923687 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -925,6 +925,10 @@ menu "Userspace binary formats" > source "fs/Kconfig.binfmt" > > config COMPAT > + def_bool y > + depends on AARCH32_EL0 > + > +config AARCH32_EL0 > bool "Kernel support for 32-bit EL0" > depends on ARM64_4K_PAGES || EXPERT > select COMPAT_BINFMT_ELF > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 19d8e31..3b543c7 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -934,6 +934,7 @@ config AARCH32_EL0 select HAVE_UID16 select OLD_SIGSUSPEND3 select COMPAT_OLD_SIGACTION + default y help This option enables support for a 32-bit EL0 running under a 64-bit kernel at EL1. AArch32-specific components such as system calls,