Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752620AbbKPLBx (ORCPT ); Mon, 16 Nov 2015 06:01:53 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:56559 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751732AbbKPLBt (ORCPT ); Mon, 16 Nov 2015 06:01:49 -0500 From: Arnd Bergmann To: Joseph Myers Cc: Chris Metcalf , linux-arm-kernel@lists.infradead.org, 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, Mike Frysinger , Paul Eggert , Rich Felker Subject: Re: [PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it Date: Mon, 16 Nov 2015 12:00:17 +0100 Message-ID: <4814795.z9jdqoW8IP@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> <5648B5E3.3060700@ezchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:ED6NcvPGnxRGE8KTk73/6I96+qD8sm2cI30rXxd2JDBQaE78+x3 XsX1K5cqE1om7lObBqApkVlEXpmhEHe+FAay5wsMvleJKuv6yFxjRzZLomiSiIebfyGJnAm R2w1cdCmsgzHWAiwMS5LBLd1qU18Rk4WVQLyHWUPIh9TpH9eeKDb86UL+ifyCspJVzFBIlD GHhoQoAzFTzXgAYmFrabw== X-UI-Out-Filterresults: notjunk:1;V01:K0:kP5zaWPhRxg=:NhPJSMS31DuueLiPpONHEr unMjRzWVWtKWvPzfGRc9Flzl7buqo4mwksoVooZGPisBcHIvoyH58juE74hVvVLzBJx0TgQrX bE5qrJYk2yvcD76nwL+n7QGmBNC8enyRnRzEN0Zq8HafpK0Dfbg6AYyvb5GQFBWjeWgET2ZD/ 9VqI/yXipS73yEKNYd4pg8VYbb6kaSxzdMzt7AHNOFejOAEUI6LpsdKp9puifs8h9QjTYzDMa bdCj5coDdaw6d+lkxK8QVKVLgvLOnSFMCN0ScC8P92uN92jPNgfZvBsHnxvdEctKDtPpa3ORF QKqLvNNfBR8x9WKYh58CUDl/AyLIFIIAhwYwWjWI7M0WCjP6nnx3CZSGIhAk/5lrUqIM9IJnY slAZlHtLelNKQb2ycnxSN1AvVakozwD1Sx2+XxnJamHNOiFahoeYU2SONKQRqURMnx8+UnBam hzhe0fRVf63zQWV1kigIlXTy9bWw9Enu1c4SiFLFP82IymD2eOfI9FFohUuaKVerFDz6VPs/C BAJgh3JVO2AsnsBoGMEJ6jM0oPA765Xu3f5Ap1d1AuFVPK5ZirU8H+yfk/DcVu6+RY5p3wXWA Pl7hF6PZXq3vh6bZuqopfpaa1EnwpbJ6cnN/H6nmLhxypBKSfmAZvF2Z7CnHNOk+IF55m7Mi5 BLLxLEQB71+KmFL4a8VTLHCVQaDzaEz5nW/9GwbanXI3HA1IspiU5UH8dFlXTyBafYt0QKrOB kWoseKTwuzeY6S18 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1940 Lines: 37 On Monday 16 November 2015 10:16:35 Joseph Myers wrote: > On Sun, 15 Nov 2015, Chris Metcalf wrote: > > > I've added Rich, Paul, Joseph, and Mike to the cc's as they are probably > > a good subset of libc-alpha to help comment on these issues. My sense > > is that right now, it wouldn't be possible to add a 32-bit architecture > > with a non-32-bit default for _FILE_OFFSET_BITS. And, obviously, this > > is why, when I added the tilegx32 APIs to glibc in 2011, I needed to > > provide _FILE_OFFSET_BITS=32 support. > > x32 uses 64-bit off_t only. That's not a problem; the problems are > tv_nsec not of type long, a bug we should avoid for all new ports (padding > on tv_nsec is fine; treating that padding as a significant high part of a > 64-bit value on input to glibc / kernel interfaces isn't), and maybe some > other types being 64-bit unnecessarily, although as far as I know the > suggested issues there > are all > theoretical. Let's not get into the tv_nsec discussion today, that is not thankfully not relevant for arm64 any more at this point. The system call ABI for arm64/ilp32 is now the same as for any other 32-bit architecture using the generic ABI, the question we're trying to solve here is only whether it is ok for new 32-bit glibc ports to only offer a 64-bit off_t as the kernel currently does (using __kernel_loff_t) or if we still need to support the _FILE_OFFSET_BITS=32 case. If I got you right, we can use 64-bit off_t now, so we just need someone to figure out how to make that the default in glibc for new architectures while keeping the existing 32-bit architectures unchanged. 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/