Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1857533rwd; Sun, 28 May 2023 03:56:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7o0uEpBW2lnopeTp46Rtyc0PbcdTWWJezTUegOSnNw/l64x3EouRfg9+wPJ+43KpQuTITA X-Received: by 2002:a17:903:22cf:b0:1ad:fcdc:bcb9 with SMTP id y15-20020a17090322cf00b001adfcdcbcb9mr10263906plg.23.1685271395051; Sun, 28 May 2023 03:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685271395; cv=none; d=google.com; s=arc-20160816; b=icImu8nX/HR5/cUL2faofHihDzuQeX2cjSrnqg94aHwrxC9pffe/lH6QQrHElfzHTk +HlBj89tuRE6p6ulaTMdkC5Bsda2sNjXTrEdf/sBnRrXJ8XiS9KZeTvuJsyPJHYyKKW3 Dc9gsZmWKcV2Ev9kg67jrchReaMsRMNBlPzhjqhvJWVYoT16vxOKMliCYBEMkkobOtOC 18E+zAIrcZFT0C0NSoir4XcFXnwHIn0BUcz195UNohr/YM92pkTEsJ7E6TyBTFtwXBKy 4kKhspAEzh0bDC8mDugh0SwoUh+Ilrc8JHVJbRWstc0TCJYwg1paRcESPer7BEj3Gf4c lRGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/HX0+tH+1zUErud7wQsMdH7eIaQ5TeG0yZkwc7PDtMw=; b=fkDgAUU6TTcihjfR/hrThv5S7yTKo1uM8VeAa3+TX1cBEQmoaaNexrnPPAVX/wgt6K ZTL3krqNd8i8AB1xKY+OG7cW1ReGHBWlBZ3K6zk38QKfQ5rFXEDI5V/T49p1gWSYXhIr moA50HGBU/IHtz1/VuTkOkNtKWr+lxPeWOz6J45S6q1/4wgw2LVTf1qtBLzrplbbRWLM 5vwOMBz50oDMGClcU8RTzm5GZPKXr+ak7EDVby3KJX4pVUNZ08SMrwkuma43mQ2Tjw2m N22OGpj1toa6bd4FclfM1zjSQ5H80DNPEMhqHINhCRMIYZCjxKJGnOzbNsDBCC/99L3d yy9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a17090301c400b001ac815f653asi963511plh.348.2023.05.28.03.56.13; Sun, 28 May 2023 03:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229491AbjE1KaI (ORCPT + 99 others); Sun, 28 May 2023 06:30:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjE1KaH (ORCPT ); Sun, 28 May 2023 06:30:07 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 522BDBD; Sun, 28 May 2023 03:30:04 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 34SATllc002024; Sun, 28 May 2023 12:29:47 +0200 Date: Sun, 28 May 2023 12:29:47 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: arnd@arndb.de, thomas@t-8ch.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com Subject: Re: [PATCH 09/13] tools/nolibc: sys_poll: riscv: use __NR_ppoll_time64 for rv32 Message-ID: <20230528102947.GH1956@1wt.eu> References: <83ab9f47-e1ed-463c-a717-26aad6bf2b71@app.fastmail.com> <20230528082509.293250-1-falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230528082509.293250-1-falcon@tinylab.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Zhangjin, On Sun, May 28, 2023 at 04:25:09PM +0800, Zhangjin Wu wrote: > Just a status update ... > > I'm working on the pure time64 and 64bit off_t syscalls support, it almost > worked (tested on rv32/64, arm32/64), thanks very much for your suggestions. > > It includes: > > * Based on linux/types.h and > * Use 64bit off_t > * Use 64bit time_t > * the new std.h looks like this > > typedef uint32_t __kernel_dev_t; > > typedef __kernel_dev_t dev_t; > typedef __kernel_ulong_t ino_t; > typedef __kernel_mode_t mode_t; > typedef __kernel_pid_t pid_t; > typedef __kernel_uid32_t uid_t; > typedef __kernel_gid32_t gid_t; > typedef __kernel_loff_t off_t; > typedef __kernel_time64_t time_t; > typedef uint32_t nlink_t; > typedef uint64_t blksize_t; > typedef uint64_t blkcnt_t; > > * Use __kernel_timespec as timespec > * Use 64bit time_t based struct timeval > * Disable gettimeofday syscall completely for 32bit platforms > * And disable the gettimeofday_bad1/2 test case too When you say "disable", you mean "remap", right ? Or do you mean "break in 2023 code that was expected to break only in 2038 after the hardware supporting it no longer exists" ? Thanks, Willy