Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752133AbbKOPTJ (ORCPT ); Sun, 15 Nov 2015 10:19:09 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:63133 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751817AbbKOPTF (ORCPT ); Sun, 15 Nov 2015 10:19:05 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: bamvor.zhangjian@huawei.com, Andrew Pinski , "Kapoor, Prasun" , Andreas Schwab , Nathan Lynch , LKML , Alexander Graf , Alexey Klimov , broonie@kernel.org, Yury Norov , Andrew Pinski , David Daney , Catalin Marinas , Jan Dakinevich , Philipp Tomsich , Andrey Konovalov , christoph.muellner@theobroma-systems.com, Chris Metcalf Subject: Re: [PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it Date: Sun, 15 Nov 2015 16:18 +0100 Message-ID: <4020288.s2KSidZP6C@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <6987238.kVeqDX1hGc@wuerfel> References: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> <6987238.kVeqDX1hGc@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:wB1JbKPymzTewmE8PYhvR5/A/z0MPRbBboEVA3oLEpMHQJfOBxt 7hbyrzOn2eN1zav9f5jA3ZSOi3T8EeZBetNYrRVXU0eeeBEadUAKi7l0Yam1mjlxq07rEEO dw2Y5954oKlofHXQsFuZ1ymI85MfgQWVyXfKC87fWAZOEe0dowb7sqrLGi4LoMl8sWTZs9F ttGn2XXrG5ArAU0GUwpEg== X-UI-Out-Filterresults: notjunk:1;V01:K0:mGGk0nb9KM4=:t01oPBOHZGs99jmZRNfiFD qQGbCWgiy04X5q+/SX4LJDV5C9aGhv93JsJJiMIVmUStEGy5i8DKrhoGR/vTHuUGp2JUYNZhL DOy7TKAjl6qAIETX1cwG/glpdJexv2EH8kfuKckokGBG43tRfi8wRwciebyzXfMesFrPpwwXX SGCkqen+2//r3JAT0A8a9Dr0zQ9jmDGivEqIfBhlfAU4y0EzvnFWM0LpCx3nhuq4RH/gAOp6i Xpy4KsllnX7KMY99sbMmZbrR/8Vv+e14rXiRG1M9QfPdCf1JGtaHdTgcb8wEG8lHU7e9KYv8w OAF1uJeuV7Ylh5RWCZv/ePH6AgcyQcM2VqZPiLYtlXZ0kekzTC+pKQDxsgB9wKW0Jp6s33aAP UBhE6E3KLe7xRJmMZW4frEbkRCFCUTuWxTT+4GMG3Ke4d6Bu0hgQQJqTh3IebsQLpkkX1HSeE X6M0c7VwLubwkCY7zoqs35rob1rT8O+4KPPuu9iQiAclgT7XA1TVTCii4netPIUBEbG0gS9eU QU0E5UGiyNSPZnVv25MmSzLUomKKr/NxYqf2amGUf9zzEfASMloz9MItrTECc9H5gw7IT290E ex2iEzR9L4PlR0Tnzs9Ythc1DAhdrHa9uRSmeLcw/y4e/nMG7LgXFMglMph8j3iNYJL7sJ5jc CXePtNAC9r0cJLBrxgQsJdn9ld5YLqcXqnQ2wZRzkJfKWnnfMDEQhXESjgaB5r+P5sWL3nYvh ANRXeINGcfm0iuOx Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2464 Lines: 58 On Friday 13 November 2015 17:10:44 Arnd Bergmann wrote: > On Friday 13 November 2015 07:38:49 Andrew Pinski wrote: > > On Fri, Nov 13, 2015 at 7:34 AM, Arnd Bergmann wrote: > > > On Thursday 12 November 2015 14:47:18 Andreas Schwab wrote: > > >> Arnd Bergmann writes: > > >> > > >> > On Thursday 12 November 2015 10:44:55 Andreas Schwab wrote: > > >> >> Arnd Bergmann writes: > > >> >> > > >> >> > What do you mean with 32-bit off_t? > > >> >> > > >> >> An ABI with 32-bit off_t, ie. all currently implemented 32-bit ABIs. > > >> >> > > >> >> > Do you mean that glibc emulates a 32-bit off_t on top of the 64-bit > > >> >> > __kernel_loff_t? > > >> >> > > >> >> Glibc is bridging the user-space ABI to the kernel ABI. > > >> > > > >> > Ok, but why? > > >> > > >> That's how the ABI is defined right now. I didn't make that up. > > > > > > Ok, I guess it will remain a mystery then. > > > > The biggest question is here is how much compatibility do we want with > > other 32bit ABIs? > > Do we want off_t to be 32bit or 64bit? > > I would much prefer off_t to be defined as __kernel_loff_t unconditionally, > with no support for _FILE_OFFSET_BITS == 32. This is at least what I had > in mind when I wrote the asm-generic/unistd.h header. > > We should probably find out what happened for the other glibc ports that > were implemented for the architectures using this. It's possible that > there was a good reason for supporting _FILE_OFFSET_BITS == 32 at the > time, but I can't think of one and maybe it is one that is no longer > valid. > > Do you know what x86/x32 does for off_t? Do they also implement both > _FILE_OFFSET_BITS == 32 and _FILE_OFFSET_BITS == 64 on top of the > 64-bit __kernel_off_t? I just did a little bit of digging through glibc history and found that Chris Metcalf added the files that are now in sysdeps/unix/sysv/linux/generic/wordsize-32/ and that provide the implementation for 32-bit off_t in glibc on top of the 64-bit __kernel_off_t. Chris, do you remember what led to that? Do you think we still need to have 32-bit off_t on all new architectures, or could we move on to making 64-bit off_t the default when adding a port? Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/