From patchwork Wed May 16 08:19:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 10403073 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 49755601F9 for ; Wed, 16 May 2018 08:40:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3312228815 for ; Wed, 16 May 2018 08:40:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27A772881B; Wed, 16 May 2018 08:40:41 +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.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 7FDED28815 for ; Wed, 16 May 2018 08:40:40 +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: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=txKiby2Zxt72NSuerprK9P+9VoFthX7o6XUIqQC+aEY=; b=Hxo8eEY1VXbBPp xLFaCRKvuaJ3mwQiLMHNLwOVWJPHFlvEN5jXVaGzl6hakGdWtCwd4odmr8U58FHy5bO0iKCI0jFml HwgnbDwgwIwbcFn/9LaPO3vIMoBM32nxQO6kC8lq+JlfdWdTd5/a3x8Avf8RuXRl9KzWsYRbnKCK+ eueV2PqIk1+tdg1eAMF4kVwYJ9p63Mn8wu2fLqoy/njnBoTOx3Q3fA4CeRpTbtiJwK3PEt7BYlFwq 7EMDsAxZ5fzN+9kzX7abLdNfyM3XNpakRIxy5iwq5e1agwvH7GlXUIgC3OyfHrqQoWZcyE2Kx1llt ufg/pewqHud1LSP83CMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIrz4-0002KD-Nj; Wed, 16 May 2018 08:40:30 +0000 Received: from mail-sn1nam02on0062.outbound.protection.outlook.com ([104.47.36.62] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIrj0-0005WP-RZ for linux-arm-kernel@lists.infradead.org; Wed, 16 May 2018 08:24:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9z/xbcScPTdvjZ9VDquJhcE+PIXGFhhKP8ekJ2uVLRg=; b=DF8Ra14CxgztU2RuMKtRUoxWbR/9R8ZeNWF3JmlfDxysbzpbHQgfr+x4D2EDiOW+5LjM4iMM9eBd1vJ7ViBaGZWq4HVxNoM3gNj3sCk0YltMn1b1y4vY0fbJJz6DdnXc3As3wLVBJPkwwz5Zi7If3rRZ3J5a4Ez95bvItbd120w= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (176.59.36.13) by SN6PR07MB4383.namprd07.prod.outlook.com (2603:10b6:805:58::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Wed, 16 May 2018 08:23:40 +0000 From: Yury Norov To: Catalin Marinas , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org Subject: [PATCH 23/24] arm64:ilp32: add ARM64_ILP32 to Kconfig Date: Wed, 16 May 2018 11:19:08 +0300 Message-Id: <20180516081910.10067-24-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516081910.10067-1-ynorov@caviumnetworks.com> References: <20180516081910.10067-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [176.59.36.13] X-ClientProxiedBy: VI1PR08CA0126.eurprd08.prod.outlook.com (2603:10a6:800:d4::28) To SN6PR07MB4383.namprd07.prod.outlook.com (2603:10b6:805:58::14) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4383; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4383; 3:vklxnesREWdhahI0VyEMGHPMFoNwrgFvuXNBvHodWclyN7yMPtkw0Hik7kGolfq/3XrjAR3NUUDrbxfEfcKo48fmtmFDmNx/q6i1IiV2YsmcMPJMr4ApqblrtEwYtFFlw7nlBREdfUdkFlK4Kzivd/A6Kmbx8U5i70irmB3MkFzZZTBTWuLrWKUWS/JEwY/3ac+NKDA4JoDx899gOmthtXEoV8/0UeZ3G1UN4zs41uuMi75R/njHdym8W6hcAVja; 25:eCGrSIIJhL59PqA5v7VrYOGDIzbNTNe3e5CEjkaxbDabPZUH22e3W+rd1o8+sbiHRSuO2Q6I/lP7iwSqJ9BGWaRDj9z7zKMuMOH8Ifbbrir1VO5bCUcQAoiiuaW/5ycB8g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wWunKtTIeP6Gtv3Oqb1kyu6NqeqDeXZYaxrlb57ncfvJOq6CHT4atExqDd1Q=; 4:dPGTfed35g8qtLgcsweat7z2E/zi+UQUZSCzcnjXxk+aeFjn0YP/dGDXKpkhD3QqhHdH1rwkQ/ykP3Y7WDufMrLdGB4dKQ3w3B6dV/uG3A9zYnd0yLvn3fR0bHH03jOWy6wqaeNyLSeoLsAYDb8abJ/fSOgspOrwPzTSGviqlpAINUo8hJ3+zYdTnubWI1EmpNJTQVYJHxSK4Vc0zS97KBzc97ztVojARBTRhfQggiJEsuAeq+AV6hxM/pfssD+Pd1X+BGkNPoZBmF6qKOzrnWnKkZbwOT17/HpWuYJO4r2zjB7fK+r9H65tgddrkS// X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:SN6PR07MB4383; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4383; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(376002)(39860400002)(366004)(396003)(39380400002)(189003)(199004)(6496006)(72206003)(478600001)(446003)(39060400002)(2906002)(11346002)(486006)(3846002)(4326008)(956004)(2616005)(25786009)(6116002)(1076002)(42882007)(53936002)(50466002)(476003)(107886003)(48376002)(50226002)(66066001)(6666003)(47776003)(16586007)(36756003)(68736007)(110136005)(54906003)(8676002)(76506005)(81156014)(81166006)(106356001)(386003)(7416002)(8936002)(76176011)(305945005)(59450400001)(7736002)(5660300001)(97736004)(7406005)(26005)(16526019)(186003)(316002)(105586002)(6486002)(51416003)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4383; H:localhost; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN6PR07MB4383; 23:KQwuG6L7oLAfKuwShUyCd6/graU3odcPifqhVqbW4?= =?us-ascii?Q?vBmwmP0ePCFe/B3yjMFCh+p7ibKUIiAqOkZZONbsQBZNkn3qqu8SRR7QhPd7?= =?us-ascii?Q?j55uQT1HkQZbNBYtxLBY3WpG+GBE09uNFG6n8Ihi72S97xiHr+2gwwZSy4rf?= =?us-ascii?Q?2wLfXKzQTGNRrijLJHvKZ3/bdu5e2HszvjHdjsX69rCwMWg4jux+LCtYsU/o?= =?us-ascii?Q?kB7ugPARSYn+cDnpEYodaZddpHnFLLBUBvogvSGJL9SuSeKDjjMrZNVox9BE?= =?us-ascii?Q?DltHDzL7os5JKYINU/qIN/tya0NPaGAC6EZAihJsiVDn4DedKB18Z9PcZm79?= =?us-ascii?Q?noLKB6+NbtXxxbmFI5/Be9ylBbocl1invshsQC796r+bIC3iuNskxYDb37Ny?= =?us-ascii?Q?ADuSrR1Qo1/mWW1jtc9BWSlhVyiqwx5fNb9PQzOBdTBrW4NOftsOTImW0n1M?= =?us-ascii?Q?JlfzhvpSUV9E0Uyptrx6PnrHgcILn6E2yrRXtMAOw4NusiZP1DtPoGHGkKr4?= =?us-ascii?Q?ofISmk0mXT7JW/xl1x+x9xEOWR5/YM0QvIx2nY92ond9Lf8tZPbWhmGRX1Gd?= =?us-ascii?Q?m9mQkGjAdFkP07Gp9imI6dJm8gvehkz4oYBjfPnCF+CBarc+iy6zTr5CtSnr?= =?us-ascii?Q?VXYVdUz5E5Fa0tRh020uik44pJbWUilh2V/WDXZlC4lxS8vblcmuDjNV+sEN?= =?us-ascii?Q?0RoZEf8edqW3m9lfx642YpG+SalmPYRXe/ke0zdXv9TelSz+A4sDNALjjeDC?= =?us-ascii?Q?Jd4dfcry9y4p47k/yht3aR7UhuDzTzPZJgjs0qbrgHaYwW3U2Muol01ePxYt?= =?us-ascii?Q?prd7T+j+FsllazB7F1yyi/sO8Dump2rI+g7HQPvC4h9zDjpFUjt+b24gGcIZ?= =?us-ascii?Q?rB8qTK4nI0D5qiGSwenX15SSB4FYPpLeREAe21c4MctI0k3nKpwYHYVJARHJ?= =?us-ascii?Q?bZwn7nNhs5F2/BwNpyyBvvZy/lx4RuZ0NoiVLvMgJ/qAAJVJcCry1t8UsZaz?= =?us-ascii?Q?Zooqm044BADxeZaSsh3jXRk10qQbfSrhNxF71Cz9V9OUen6Myilv5k1QeXIe?= =?us-ascii?Q?2Ao4nInYi6jTRLmypWJgT68hr1UFPRs++4wU6X/9jc2U6J55Op8D4aWOmlGs?= =?us-ascii?Q?+m8gwJwgnILo+bhcoXEkqTjcyoAjONHko/5p42QKSFZ61cD/WOpAJ2yBri4P?= =?us-ascii?Q?uZp2Nb36VsKEMbBrrtMxRf6twGlc7lF7EXEmf7raURN7H7GOUXLC0tNF6vhC?= =?us-ascii?Q?WHzwJPXS2RU+FSZi4+8bf20hCCp+1kCwSFVi/iGWThY1J3jwSqhg5SKC6b3E?= =?us-ascii?Q?rgl4Y8r+5EzLOE1g0pYgYiClspIAZzo8eLM7Ffbfok6ePGf/xWzfsDUPGy5v?= =?us-ascii?Q?emV739MCskHLMFxLYKiR0oc650=3D?= X-Microsoft-Antispam-Message-Info: g3ZE4DUaU8oxXVbomyijTm0s0UwiUhhrIrA0QxZshDvJf/afYHpvn4NoxVDuQoO86y0MNi5LxVk1T9lzIZDtcFwCCmKZAJLocDygRWsPXcI+N+3QCAw4BnkjcA8m2jNQqfpKY4KQQwoiEaXTEVCcottsvuelLiy1WUr7V2iFbvn9vS6kPZ2C8Rr41F0vV67F X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4383; 6:jhvQq/r1W6xq8YhhiVN7bSou6uX1ffbxiEs9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-MS-Office365-Filtering-Correlation-Id: 68da309a-4acf-4bfc-777b-08d5bb0654b3 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 08:23:40.2882 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 68da309a-4acf-4bfc-777b-08d5bb0654b3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4383 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180516_012355_015834_FB9862E4 X-CRM114-Status: GOOD ( 10.64 ) 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: Szabolcs Nagy , Heiko Carstens , Yury Norov , Philipp Tomsich , Joseph Myers , Steve Ellcey , Prasun Kapoor , Andreas Schwab , Alexander Graf , Andrew Pinski , Bamvor Zhangjian , Geert Uytterhoeven , Dave Martin , Adam Borowski , Manuel Montezelo , James Hogan , Chris Metcalf , Andrew Pinski , Lin Yongting , Alexey Klimov , Mark Brown , Maxim Kuvyrkov , Florian Weimer , Nathan_Lynch , James Morse , Andrew Pinski , Ramana Radhakrishnan , Martin Schwidefsky , "David S . Miller" , Christoph Muellner 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 From: Andrew Pinski This patch adds the config option for ILP32. 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0685754a9f7b..a3134b8e3123 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1226,7 +1226,7 @@ source "fs/Kconfig.binfmt" config COMPAT def_bool y - depends on AARCH32_EL0 + depends on AARCH32_EL0 || ARM64_ILP32 config AARCH32_EL0 bool "Kernel support for 32-bit EL0" @@ -1247,6 +1247,13 @@ config AARCH32_EL0 If you want to execute 32-bit userspace applications, say Y. +config ARM64_ILP32 + bool "Kernel support for ILP32" + help + This option enables support for AArch64 ILP32 user space. ILP32 + is an ABI where long and pointers are 32bits but it uses the AARCH64 + instruction set. + config SYSVIPC_COMPAT def_bool y depends on COMPAT && SYSVIPC