From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06297C433F5 for ; Thu, 24 Feb 2022 10:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AWjSpA1Pmb5HxTMM8lSpCGt0BCsegUWl/WFZfUvOL9k=; b=3DUCiysPytyKrk fbKytknOb7irWSc5C0I9bx4dwW1/yKP0tCY2/ZZTF+ayiYqH7jBgeH9SfgYZMc9cXh7HSrz7/9PIe Sxj+FHYHj2big/lpvPe0Lti8x/fJEbOSNfvSdV1Wx+oLS+F+Mou/H3PUD9acpgTcYanFiey5n3Ip6 EF5UcpgZPFqJ1MluYxusKfmhg7REXTOvnRSN9UNkM0Qy0gzdWRvA8w0GBld3TeVa0CHaGTWovw402 mgMpC1e0gYy4X3xuU3zbs3JQtXZBfB7/VQWTIy1UtYYiJd6NbG51ftW2BeYWbAH3UXvqNU+H98ftW oRrsIBG1y46TEGhy94TA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNB6t-000FlL-8u; Thu, 24 Feb 2022 10:12:31 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNB6n-000FjN-5f; Thu, 24 Feb 2022 10:12:26 +0000 Received: from mail-ej1-f47.google.com ([209.85.218.47]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N6bo8-1oJ0My2dYs-0187RG; Thu, 24 Feb 2022 11:12:22 +0100 Received: by mail-ej1-f47.google.com with SMTP id hw13so3179732ejc.9; Thu, 24 Feb 2022 02:12:22 -0800 (PST) X-Gm-Message-State: AOAM53100DmJzrUYpTMIu/dQZYnBbgFKrrro2BEn1BNjkCgjVyBmFTMU hBMUzjsuBkuZwJ/cLXcQrdOsrK70KwOBJXTd7QU= X-Google-Smtp-Source: ABdhPJzPVQaW1f3Bbzw+kTDiMg4Tajz+c6SJ2JtQUsJaSw6D1lJ8eGh3OG9MaDTzij1odC2MMgMswcl0VWfIMCexGbY= X-Received: by 2002:a5d:59aa:0:b0:1ed:9f45:c2ff with SMTP id p10-20020a5d59aa000000b001ed9f45c2ffmr1412807wrr.192.1645694019453; Thu, 24 Feb 2022 01:13:39 -0800 (PST) MIME-Version: 1.0 References: <20220224085410.399351-1-guoren@kernel.org> <20220224085410.399351-17-guoren@kernel.org> In-Reply-To: <20220224085410.399351-17-guoren@kernel.org> From: Arnd Bergmann Date: Thu, 24 Feb 2022 10:13:23 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V6 16/20] riscv: compat: vdso: Add rv32 VDSO base code implementation To: Guo Ren Cc: Palmer Dabbelt , Arnd Bergmann , Anup Patel , gregkh , liush , Wei Fu , Drew Fustini , Wang Junqiang , Christoph Hellwig , linux-arch , Linux Kernel Mailing List , linux-riscv , linux-csky@vger.kernel.org, linux-s390 , sparclinux , linuxppc-dev , Parisc List , "open list:BROADCOM NVRAM DRIVER" , Linux ARM , "the arch/x86 maintainers" , Guo Ren X-Provags-ID: V03:K1:67KnLieDZRNziBJPteu3Au9DfZEfEmQYZ+Adp4Js4iDJaBYxREb HagAFx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B+g2KSUUHiIoXTNWs0R1u74mTopo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220224_021225_538765_926AF084 X-CRM114-Status: GOOD ( 15.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Feb 24, 2022 at 9:54 AM wrote: > > From: Guo Ren > > There is no vgettimeofday supported in rv32 that makes simple to > generate rv32 vdso code which only needs riscv64 compiler. Other > architectures need change compiler or -m (machine parameter) to > support vdso32 compiling. If rv32 support vgettimeofday (which > cause C compile) in future, we would add CROSS_COMPILE to support > that makes more requirement on compiler enviornment. I think it's just a bug that rv32 doesn't have the vdso version of the time syscalls. Fixing that is of course independent of the compat support, but I think you need that anyway, and it would be better to start out by building the compat vdso with the correct architecture level. At least this should be a lot easier than on arch/arm64 because you can assume that an rv64 compiler is able to also build rv32 output. Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel