Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp885633imm; Fri, 14 Sep 2018 07:48:57 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb9yONdy8xTO3Tmcmr+G3Ts0Vjm2NJcr4FjITmZzDa9Scj0ysrbuIXh9MJzc7CrsJ/rJF0x X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr13049344pfk.173.1536936536899; Fri, 14 Sep 2018 07:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536936536; cv=none; d=google.com; s=arc-20160816; b=gVnbsw5p83/tRCBbKeXs0v2bThfEfXodzZp45Nekc606t74ZpiTOsUOM0Y2tcHKCdF heFl/8hHs8CSd4WiDAyhgymgOW1IJfJ7JouhUPlLptdb6E6kPbdEkQDA4hGTg1FNC+6Q DV/BQ7Bag4az/eSItpIiET4f4d2rvyE4VryCmzHTH7zzkO1HaJLnwMrjiUwYBAbkRwsP 6JiMjmSUsItONw2HKzuv8wrKjq2+aAKDkWtZC9++Ok+9GcErVfeMdLOZ2dZLMN/lCx5C i9NgG13mgXiG7LYqA/ky1pJ8Jfo+DgtgP6ebJcgH1hAYtuigxER6wezSNEAZWc6+Ibdd TPlg== 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 :in-reply-to:references:mime-version; bh=W9LTvDgdz+2tFx2LW9erCwQ5SwqzE+BUV4EHIMksBgg=; b=HSGAFfOBWtR1gvrj1MkkFFJuMysAwkKEaptDMAuUJ1tlNlmnnrK2tglm8iH/mwi+hH wxcBdted6GuJ0SBppemXa5Nu/5XcA5M23jYaKDGYpOsjHybgJcdtKGcQAF18ItNVyDQq sAV3MF74zaHWLM8EAd4lVFaZZRI6tzASPI/KFV6hAuuLfDXYAb7/LLc6KLQqYXZZXdgo ckvUasFp72k8M8FXXGIOnB/gwGga4nTevnnLD2OqT4qAap7K28jex0FDhgQ6f7xzQQzC ig7f/KWKAZwY6GBk0zYBjt0upDpiiUTHLo/ZUqCk7MGcAZgTb1XDX+j/A49XHFJ7iIx+ Cnnw== 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 y141-v6si7487470pfb.331.2018.09.14.07.48.32; Fri, 14 Sep 2018 07:48:56 -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 S1728211AbeINUCE (ORCPT + 99 others); Fri, 14 Sep 2018 16:02:04 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:39630 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728065AbeINUCE (ORCPT ); Fri, 14 Sep 2018 16:02:04 -0400 Received: by mail-qt0-f193.google.com with SMTP id o15-v6so8942014qtk.6; Fri, 14 Sep 2018 07:47:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W9LTvDgdz+2tFx2LW9erCwQ5SwqzE+BUV4EHIMksBgg=; b=edSm+7rzJjPqiAoMiVuk5aokPypuFA5VxpmRFVnp/p0gyDKvSpZQ+FqEi3h+XbrqPj mNDCP6r2nIn0kuEmAfDCZ9EZy5/W8XY80f8+s5DmiivJA6YRcE208Jrx0RbJcC5T0QEb 80swzowj1stYDpIYi/vmd15s+pSGL2Pc0zsI/K7kB9rogdfDAms/Nn/5u44n3TS1hlLD gGJ305MqMDu8aOILiCbQifCObP0X1k1+/+tJEFofSIun6qU3epUjP4FQh/RGW7wYhKBw G6Jq+IpvexjwjI7/KTWVYkFan3neyi4MjzFJJS0D0X4zFlQ0JXjfZGjDV/7hn3697kDn 7gPg== X-Gm-Message-State: APzg51BWiQTOY+gAMpS6pKfKANHGCBz1X5lGM+Y/R8OnE6HVZlZEIq+O mTU5ST8q1ZoV9667wK/R5zil8ISVl8NeeK2FpQE= X-Received: by 2002:a0c:8b67:: with SMTP id d39-v6mr8883464qvc.180.1536936432340; Fri, 14 Sep 2018 07:47:12 -0700 (PDT) MIME-Version: 1.0 References: <20180914143719.GA27689@guoren-Inspiron-7460> In-Reply-To: <20180914143719.GA27689@guoren-Inspiron-7460> From: Arnd Bergmann Date: Fri, 14 Sep 2018 16:46:56 +0200 Message-ID: Subject: Re: [PATCH V4 00/27] C-SKY(csky) Linux Kernel Port To: Guo Ren 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 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 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. Arnd