Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3751013imm; Mon, 11 Jun 2018 00:50:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL8/rk14F8vGGzgl2hrknMCy58koKZJeyJg/mKXE4fzZxwtNcH8V3vmCbaMRVTuo+ra1x6B X-Received: by 2002:a17:902:3a5:: with SMTP id d34-v6mr17560603pld.103.1528703402746; Mon, 11 Jun 2018 00:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528703402; cv=none; d=google.com; s=arc-20160816; b=s6KsR9LqMzei/qM1eUxXArstz6eTs3h1v/0Nl2VuW4CJ/mbsHwMBMyrTfPczqGMOAK +ZV2ybUjVQSTMN3+5JYFNJq7z+bZElXkKQMpoF/Jq3DUakerT6hr01QJv6qUnSE2RcZ+ vUI/bRWC5nf1MBL7VoTgrpiX4M//xucjvbq6qY7AWN/EXE87ezmdchkT80TvAJZ6XGuO SLMgXmxKwyKxhnCRH/kThEGvIUbVymxMTRwKahZZgztJEHNdPREtj1MQhmCgcKlXQlNR ZDUGCG2ZXV0mZfuwm3axrmn2F9/V5Ad5aVyA+gBWaHYZ8y+CGes2VMxZGLczzn3Ph35Q RmLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Rzp1dSYL8ni2PE4y20+h5RWuQuksPR8PB20WytsYboE=; b=wH853awKrpkAjJ44vyi2QJs9rnwXkBvY3dX+8KZ+PBEi3HaCWoFNhty6qElgdij0XP vR39oDgJQRdfdWBLAw/qvvzcpvJvduKDsUqtNrG7c6/Rfby/6a2DcLUTFkAHExGP3zb+ VY7e0PW6J+lYq753kpYQV6hygAHlqd/XnS2IjaJ0y+H8zdUd+a2mLjeN0w6K1KrOlh8F MIYQqxQpv3IXGl/QR5ilFmUuruQ/du5JfHwTGsEFIHvzw4nzpKBvmgyfiDE+I2aw9FxY edxZHYnkJoyuj9I3GVOLCds/BWX0+ff/WX4T8QjCOafRcPPdYQBHAgicfhr/NVoyS8cs B9Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JhU8qF4O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6-v6si851703pgq.241.2018.06.11.00.49.48; Mon, 11 Jun 2018 00:50:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JhU8qF4O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932479AbeFKHsJ (ORCPT + 99 others); Mon, 11 Jun 2018 03:48:09 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:43595 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754006AbeFKHsG (ORCPT ); Mon, 11 Jun 2018 03:48:06 -0400 Received: by mail-lf0-f65.google.com with SMTP id n15-v6so29020263lfn.10; Mon, 11 Jun 2018 00:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Rzp1dSYL8ni2PE4y20+h5RWuQuksPR8PB20WytsYboE=; b=JhU8qF4OEnrQpV08f3OGPvZ0VAMiDgcLkLvSLzkfl1HIMFJ+0Hm9STO4bMvPTvGX76 kB2neGoCTFPIb/ecaSFCkCZwN0CFLu2kq9CfOrZAvhviy4Ot0YSpZkv0E39rz65ZWj2t YHWOgHZwswQYQZbhCchplaFjrVXHGdFgsPZz8gkCSCK9GiMm1fVmFBe5xfZ7okNNkGmg y1imjZwYixaB9SoyZQ9bQ/LgvghB9wwtGUvHZj9VqJBDNcPXP2cFxnCCfhllcdqt4OHG DHeYdNm9o+AOI0Eoeu6ZeeA35jEPQvbECWAcu75jkaMHEWMo/G7R3gvQX1Rpeh5hTtPQ 5dlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Rzp1dSYL8ni2PE4y20+h5RWuQuksPR8PB20WytsYboE=; b=GMWB3PRrVQgSWjeK86UcNGH3KhInMXZhh0QBFhEH4mzylDLe0uV+TCz21StTulyMOy M9iulv8IGdSw7a6FicAOXurGq1tA7N9vS80++k7u7MNcEz+MFWE4DPeu+yTkE43SuvRu kLZ0TRJLuelmMYjVc7I78WVG6qllb00XrKhvp85PVAkQ6ry8HWx6IgRLYN43uexAUqNp nQJNqMeE8XQnQ2F18GF4Q8VBziv6QVDqUXayf4HewqCuq+e9UehtQDw8+m5EDuwfjJvH 6qfqYRRSdixX/y5tTa2yGJE6dSSteU8Q8LGE/WvbNMC+/kcIPCCVnQuAVK7UWd63bhoC UUFA== X-Gm-Message-State: APt69E2RNjHEYJlo6bV65lbXOIHYXqwkGKfna+n8GGie2Mvo0EnhKb8H 1LHGPSwfnAOxHGmuYy+wgZMXQb9JyBcJpNzKl0w= X-Received: by 2002:a2e:5453:: with SMTP id y19-v6mr10302309ljd.11.1528703283779; Mon, 11 Jun 2018 00:48:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:56c8:0:0:0:0:0 with HTTP; Mon, 11 Jun 2018 00:48:02 -0700 (PDT) In-Reply-To: <20180609074227.GA6810@yury-thinkpad> References: <20180516081910.10067-1-ynorov@caviumnetworks.com> <20180516081910.10067-5-ynorov@caviumnetworks.com> <20180608173207.nwoi25jee52gpdwy@armageddon.cambridge.arm.com> <20180609074227.GA6810@yury-thinkpad> From: Arnd Bergmann Date: Mon, 11 Jun 2018 09:48:02 +0200 X-Google-Sender-Auth: xuQjuSuRPXF2lPaqecQszCuPNVA Message-ID: Subject: Re: [PATCH 04/24] 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option To: Yury Norov Cc: Catalin Marinas , Linux ARM , Linux Kernel Mailing List , "open list:DOCUMENTATION" , linux-arch , Linux API , Szabolcs Nagy , Heiko Carstens , Philipp Tomsich , Joseph Myers , Steve Ellcey , Prasun Kapoor , Andreas Schwab , Alexander Graf , 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 , Ramana Radhakrishnan , Martin Schwidefsky , "David S . Miller" , Christoph Muellner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 9, 2018 at 9:42 AM, Yury Norov wrote: > On Fri, Jun 08, 2018 at 06:32:07PM +0100, Catalin Marinas wrote: >> On Wed, May 16, 2018 at 11:18:49AM +0300, Yury Norov wrote: >> > diff --git a/arch/Kconfig b/arch/Kconfig >> > index 76c0b54443b1..ee079244dc3c 100644 >> > --- a/arch/Kconfig >> > +++ b/arch/Kconfig >> > @@ -264,6 +264,21 @@ config ARCH_THREAD_STACK_ALLOCATOR >> > config ARCH_WANTS_DYNAMIC_TASK_STRUCT >> > bool >> > >> > +config ARCH_32BIT_OFF_T >> > + bool >> > + depends on !64BIT >> > + help >> > + All new 32-bit architectures should have 64-bit off_t type on >> > + userspace side which corresponds to the loff_t kernel type. This >> > + is the requirement for modern ABIs. Some existing architectures >> > + already have 32-bit off_t. This option is enabled for all such >> > + architectures explicitly. Namely: arc, arm, blackfin, cris, frv, >> > + h8300, hexagon, m32r, m68k, metag, microblaze, mips32, mn10300, >> > + nios2, openrisc, parisc32, powerpc32, score, sh, sparc, tile32, >> > + unicore32, x86_32 and xtensa. This is the complete list. Any >> > + new 32-bit architecture should declare 64-bit off_t type on user >> > + side and so should not enable this option. >> >> Do you know if this is the case for riscv and nds32, merged in the >> meantime? If not, I suggest you drop this patch altogether and just >> define force_o_largefile() for arm64/ilp32 as we don't seem to stick to >> "all new 32-bit architectures should have 64-bit off_t". > > I wrote this patch at request of Arnd Bergmann. This is actually his > words that all new 32-bit architectures should have 64-bit off_t. So > I was surprized when riscv was merged with 32-bit off_t (and I didn't > follow nds32). > > If this rule is still in force, we'd better add new exceptions to this > patch. Otherwise, we can drop it. > > Arnd, could you please comment it? I completely forgot about it and had assumed that it was merged long ago, sorry about that. Arnd