Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp967438imm; Fri, 14 Sep 2018 09:03:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYGR9PqkVJNq2UdvxOL7S4trG2xOWVFbyCJ29ZTEA8H4gKUyJLPzp3wqWNW2zVB9P0Tlz9w X-Received: by 2002:a63:f80a:: with SMTP id n10-v6mr12366640pgh.82.1536941006678; Fri, 14 Sep 2018 09:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536941006; cv=none; d=google.com; s=arc-20160816; b=s9wsJE/xZpnULq61Nc0MTGyh/S9wAx7/22vEEvG4QfTOmjGH90WIh1trCI8hpEszJ1 tDV+S3bIeokvLC2nweqdLHnWQbqXC5hcCb4qlrOHwoJEmYAymywZcZFr+ijfueH+Qi7x OZwoN7dJrnMMOim4AITuzDUhvYPNWYpRjZ9nNFzHsrcmk+IXSdzQ7hJ2xBvTOZYvXlA3 6R4gwywNUGSO7//Nph/tyyMlbICIi/yXb2kj67qiMX5EbxD/XKn41p0PkfBik5o+WHcw /yKreokIzlmtez3EqFNY8scYMXJNl/psWigRfSCA/yW4h30J6LXKb2Qx1U0dU5gjsjNE M8FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MtT6Fk7c16p1KLiC/NQ1p1Kw28FaBy1VIGJeyohan/w=; b=hSPfSzH892HcJdrD1ndLRxQ80uy+0SpREGtfICc1N+wAjInu7RTGHdLqnu1vIE65IH SsgwL70RPljlrw1b1Ks8oaDZwKKXDddYfJpVSs0/Q+DlMchfQ6Tvf6suHxwjptayXNcK okelZYBkPcNA9m5DMdiHja9TDopYBs3MY9El1sF3vBYtj/t7XkYPlq6CCFTUxOS6IlZb GLnKkq0IpVksdSmNme/wbwjdSUs6LWMfs5vfAnuqYb7d1V2P3a3DIEU4bTHLm7zIgvAV ULuh6VQT5IJPcYVqEH2Lg3rfdy3lo39YXu4g4YN8nlIRfy5F2ZdJbwor/kumo6rdCZgO L6ig== ARC-Authentication-Results: i=1; mx.google.com; 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 144-v6si7294447pge.259.2018.09.14.09.03.02; Fri, 14 Sep 2018 09:03:26 -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; 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 S1728102AbeINVRz (ORCPT + 99 others); Fri, 14 Sep 2018 17:17:55 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:60483 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726845AbeINVRz (ORCPT ); Fri, 14 Sep 2018 17:17:55 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07501926|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01l01425;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=15;RT=15;SR=0;TI=SMTPD_---.CquBs8l_1536940953; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CquBs8l_1536940953) by smtp.aliyun-inc.com(10.147.41.199); Sat, 15 Sep 2018 00:02:33 +0800 Date: Sat, 15 Sep 2018 00:02:32 +0800 From: Guo Ren To: Arnd Bergmann Cc: linux-arch , Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , DTML , andrea.parri@amarulasolutions.com, Peter Zijlstra , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, Thomas Petazzoni , wbx@uclibc-ng.org, Greentime Hu , Stephen Rothwell Subject: Re: [PATCH V4 00/27] C-SKY(csky) Linux Kernel Port Message-ID: <20180914160231.GA32161@guoren-Inspiron-7460> References: <20180914143719.GA27689@guoren-Inspiron-7460> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 14, 2018 at 04:46:56PM +0200, Arnd Bergmann wrote: > On Fri, Sep 14, 2018 at 4:37 PM Guo Ren wrote: > > On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: > > > On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > > > > > One big question for me is what to do about time_t. Deepa and I are > > > in the process of finalizing the system call ABI for 32-bit architectures > > > with 64-bit time_t, but we are not done yet and it won't be complete > > > for 4.20. If you target 4.21, that could be a chance to make csky the > > > first architecture to only need the 64-bit time_t interface, with the > > > corresponding user space changes. > > y2038 is very important and csky32 has the issue. But 4.21 is too late for > > us, we really want to get into kernel.org as soon as possible. > > We could remove 32-bit time_t in future. > > Not really: the way we deal with user-visible APIs in the kernel, it's > practically impossible to remove something that was working before, > since there may always be users relying on it. This is why it is so > important that we get the ABI right at the first try. > > We can always add new ABIs later, and that's what we're doing with > all the other 32-bit architectures as well: each system call that takes a > 32-bit time_t argument also needs to get the corresponding 64-bit > replacement, and then we have to keep them both around. > > However, once the 64-bit syscalls are there, you don't need to > use them, so if you merge the glibc port after both csky and > the time64 syscalls are merged upstream, you can choose > to only support the time64 syscalls rather than making it a compile > time decision in each application. If you merge the glibc port > before migrating to 64-bit syscalls, glibc will also have to support > both indefinitely for compatibility with existing binaries. > > One level below that, you can of course choose to build > a distro with only 64-bit time_t regardless of whether there > is still support for 32-bit time_t in kernel and glibc or not. Do you mean I could merge kernel port into linux-4.19 or linux-4.20. But let glibc merged after linux-4.21 and csky glibc only support time64 syscalls ? Best Regards Guo Ren