Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755303AbcDFMaL (ORCPT ); Wed, 6 Apr 2016 08:30:11 -0400 Received: from mail-bn1bon0056.outbound.protection.outlook.com ([157.56.111.56]:34528 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754960AbcDFMaD (ORCPT ); Wed, 6 Apr 2016 08:30:03 -0400 Authentication-Results: linux-m68k.org; dkim=none (message not signed) header.d=none;linux-m68k.org; dmarc=none action=none header.from=caviumnetworks.com; Date: Wed, 6 Apr 2016 15:29:24 +0300 From: Yury Norov To: Geert Uytterhoeven CC: Arnd Bergmann , Catalin Marinas , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Martin Schwidefsky , Heiko Carstens , Andrew Pinski , Prasun Kapoor , Andreas Schwab , Nathan Lynch , Alexander Graf , Alexey Klimov , Mark Brown , "Joseph S. Myers" , , , "linux-doc@vger.kernel.org" , Linux-Arch , linux-s390 Subject: Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64 Message-ID: <20160406122924.GA21527@yury-N73SV> References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: HE1PR02CA0061.eurprd02.prod.outlook.com (10.163.170.29) To BY2PR07MB614.namprd07.prod.outlook.com (10.141.222.146) X-MS-Office365-Filtering-Correlation-Id: ca838522-61b5-4a16-2c91-08d35e172873 X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB614;2:8fSrcLcKej9owogHBkxyuJicKCu/MbF2y4DrjV1xL53gARfIvq+WZCUOvs8NJhO6ltwvp7NTdZg3UB5QF0KThQ7CDRejVJY8ZKtqN8iOXWtx0BNEzyUUm74NzWdPuxbYbYXFn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nmmscscakFjzhv8GBd9lVle6t8Z3/FT9V4/NTbsS4F/qRxGSzBIZLeJi/2s61NzjveJehopmpYXQSjlJd94q3/Dx1SRhM9/jtJzwJbgx14rp7dhVJFw1q1Ae6FIKIPWHU3kRDaEYiv9FQR64Hi/wEXLUUNCC0bddDxEPdePV0UeIFhw/VG3IKc5Pp9dncTcpASgLayKLJDgdvA5y3hkoWsZhYuM1yypYdCxYBjoT5Mw5iOnUo42MzhIGcH6ZIv+/JXJYhj8oE7qM+CgtXTbqBr7sm2lJ9B4NgbFoL0apDjPtklnbfIZi4qJs6EU0pKz8vDR9Ps7Rrazkbt42Ulj9Wh3uz0C8UdVyX7HDf1dz31JhUZEVIMrpK+IECeK47/e+SlxDjo74dJKm1Q6KNCAZX5/AA5cXyMucRS1jbWVO/UIXW6voJamehQw/mcBT/Qg5rU2q284tTwdVvLqpU+WtcS2aT4ATHDvX1JmVfjDG2qyJ7124PSJCMf133hlMI0hKbknmkiPgcD9udDJTWWkZ8yh2y4AVszGTii/G3ZJgE3LDr3MOjvnopte3uIn3PnP74R82vCnTlTZJeHUw1b2bTDg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:BY2PR07MB614;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB614; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB614;4:FjNchuHjA4XvuSQafoQ2+N80UG+uBKG5KIEWIfwT3xbGacbkqmNtwff+K8yFRAwVqYVnhem9rDaaN1A8lSXe//8rAWH93db7aclqjZ10Zc7vXc/d5s67N4ty930sKjEfClLqKa752+5HmgIAtauhAaUVAvQ7yQ3VUE3U9xuWL+TjN+02mSk7D25AVKhwBzUbkqh1M/vIQ7wjMFYD2yiK+mF4ps6lad4o0zYvP/RUuSOignDqFmgGw5bSShHhmCd/5TNX1cgivsMSDV00UZaNo0gRsgUGhKbntZeshuxBTNrMIfXkJ+eNnyjwRDTs+h1FZ1cSIPu0s0bkK9ew0XzkMeBJCsWILsufyjN3hDdZ7Yfc1drPcKGQqw1YgCzP0aG2 X-Forefront-PRVS: 0904004ECB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(24454002)(377454003)(5004730100002)(42186005)(2906002)(76506005)(19580405001)(77096005)(81166005)(66066001)(19580395003)(2870700001)(50986999)(189998001)(76176999)(4326007)(110136002)(23676002)(5008740100001)(92566002)(6116002)(54356999)(3846002)(4001350100001)(1096002)(33656002)(33716001)(47776003)(15975445007)(50466002)(83506001)(2950100001)(1076002)(586003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR07MB614;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJQUjA3TUI2MTQ7MjM6WlBrYU9URnBCRzhxdjZqZmkybkRNaDR5c3ZF?= =?utf-8?B?dk1pZytlYWR2MTUyNFBRWEpFYkNGNW1UalcvcGs1eVJmRHU3d08wdnhKWFNS?= =?utf-8?B?RDRGWGRhaWZrWjVIV1d5VkNFekVFc1REUlBpMFIyQUF3aFcrYTdZOURsMGR2?= =?utf-8?B?WkhnTFlZOFJXNUMzM0lYTUNOREFtRjRaQnh6WkNKNk5aTDNXcFdGRXlwaU5U?= =?utf-8?B?ejZXSTN3NHY4bnJGRFpxd3dHYVpIOTlyclBIdWE4RVprZ1o3OUZZQnVZS2JO?= =?utf-8?B?L2ViNlBDWllERUZiYTIyNTAzbWxYTGkyRE15UEhYSXA4WEVYNmRFN1NzSHpQ?= =?utf-8?B?SXVHUENQb3poTVFaRnVVU0YxSjdhZ3MwcXdoL29ydWdvTXFsMWNwRGw4Njdr?= =?utf-8?B?akVOaHg2eDJxQ2dlQ1Naczg4alNoWXRLemdUYUF2bEFZamdBUStKZW5DWHZV?= =?utf-8?B?K2s1cG8xUGRRUyt6ajdq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-8?Q?7LjT1A6?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB614;5:uOgojMhpteAQ0x03isq9MjoaXRAW4ixDLTWvAt9UUBeAsalOcGoa9Ronb5HXjLeJZ+DBzd6WKyG1PNJZizk020KmcOEro1hwk8GxwqBPIz6FVnKdUsmuOzUy0wOuqBcvsDNzW525i8ngwntZa5OdSw==;24:dvVQr7NUo/IBVUQBBEMpaXaPVrWCylL2jimgwoNxyxImn9D1C2Z96y/eiVGsQb3t2wueILOlMKsqPxo9T+ORdiGgqrBUYM+K+9U6RUYXHJA= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2016 12:29:53.8704 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB614 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3469 Lines: 91 Hi Geert, On Wed, Apr 06, 2016 at 08:51:50AM +0200, Geert Uytterhoeven wrote: > Hi Yuri, > > On Wed, Apr 6, 2016 at 12:08 AM, Yury Norov wrote: > > This version is rebased on kernel v4.6-rc2, and has fixes in signal subsystem. > > It works with updated glibc [1] (though very draft), and tested with LTP. > > > > It was tested on QEMU and ThunderX machines. No major difference found. > > This is RFC because ILP32 is not tested in big-endian mode. > > > > v3: https://lkml.org/lkml/2014/9/3/704 > > v4: https://lkml.org/lkml/2015/4/13/691 > > v5: https://lkml.org/lkml/2015/9/29/911 > > > > v6: > > - time_t, __kenel_off_t and other types turned to be 32-bit > > for compatibility reasons (after v5 discussion); > > Reading this sparked my interest, so I went to the links above... Great! I'll add you to CC than. > > What makes you think these "applications that can’t readily be migrated to LP64 > because they were written assuming an ILP32 data model, and that will never > become suitable for a LP64 data model and will remain locked into ILP32 > operating environments" are more likely to be fixed for y2038 later, than for > LP64 now? > It was written by Philipp, not me: http://lists.infradead.org/pipermail/linux-arm-kernel/2015-April/337350.html I'm not the author of this, and I don't think so. Maybe just because I didn't see all that legacy nightmare, as Philipp does... Chris Tyler shares relatively common point of view in his video from Linaro Connect: https://www.youtube.com/watch?v=QsVLsw_LrJ0 Briefly, we need it (mostly) for compatibility and (then) for performance. Maybe Prasun can share more details and examples. > We're already closer to the (future) y2038 than to the (past) introduction of > LP64... > This is not about Y2038 at all. In fact, current version doesn't fix Y2038 problem, as we decided finally. After v4 and v5, it was spread discussion about what ilp32 should do, and what not. Finally we decided to be not like aarch32, and not like lp64, and don't fix any issues specifically, but be standard compat format, as much as possible. So, any improvements and fixes applied to generic compat will be applied to ilp32 with minimal efforts. > These unfixable legacy applications have been spreading through x32 to > the shiny new arm64 server architecture (does ppc64el also have an ILP32 mode, > or is it planned)? I don't think this is the question you really don't know the answer. Almost everywhere shiny arm64 comes with old and ugly aarch32 IP core. If no, like ThunderX, people really worry about that. And for me, configurable option in kernel sources is better tradeoff than billions transistors in every chip on market. So Cavium here is more future-oriented than many others... The other example is ACPI. We have nice and cute device tree, don't we? Does it make sense to vendors? > Lots of resources are spent on maintaining the status quo, > instead of on fixing the real problems. > I think, compatibility is one of real problems. Aarch32 is hardware solution, and ilp32 is software one. Yury. > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds