From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-2.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5CB661F466 for ; Tue, 14 Jan 2020 07:28:35 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-type; q=dns; s=default; b=LDnY 0eOH4yqJoULW0WVz/HukcQ+xOs10qPQ43EVlNtUmGbn1oQ4LqIzyBDcDu6WGnw2+ DK4BjPoyWitj/jKmNCc/mxdJC0ytAm6DSw1hiEQ70jjJj+yTsScqc5LzncllZwMn mDBmCyeyHwzTH+lZeHGXPiYIkqDiXCYJa9t90aM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-type; s=default; bh=LXZFIS/iTW 4+p2MRJG+sUnQBeoA=; b=jcenXAlyDIS6EU6sam7J4Siz/ia6M4+nVHQJ9j7PzA b+4U8bCls7PuIlOtWYF+AofIx9LP+Y7zzSsRf2pMqWHhO8nTen+CQliR7d0ie7Rc hEMq2Dn4q6Nvtui/RZLVsVH2u6yvOFKtYahW+hA5RxyZFCUnmg5u2s6WHHfydAQY I= Received: (qmail 83107 invoked by alias); 14 Jan 2020 07:28:33 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 83098 invoked by uid 89); 14 Jan 2020 07:28:33 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-lj1-f176.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CglNRwtA1DEoqyrHtcmPvR9yzVddBQUCcifyOoOcdm8=; b=Uqhx7xHraCH+ePOQLH+I68fnH2OJQWvInDzzSV4jdiDkca9kasoOIL+n1mM6q6VUvc kTSXNUhSxx8LFr+6QFpFICAwExgO1cXO42ehq9kHaXnC9832dGqOld6qV5FPP8xYsruH M/KJD16kcKRHvjizmhoi2I/h0WitKrTK5yYNEssEXpTEFPIyANOFuc82zNrFNw12szL0 KLj0FfSalUptl+ngOMcoFwNrxXrPnr1Dg7+RWQCLrgp+ttCJD1zba20zf69I5/WOX5/j TnoOfVGm9Mf3AGmzeDnBzL7eL+wIBMsLrgxUkWsb89IsmsFHojUgCe0sMEO13sx3/W9b IWuQ== MIME-Version: 1.0 References: <20200114022856.GA24302@google.com> In-Reply-To: From: Alistair Francis Date: Tue, 14 Jan 2020 17:28:02 +1000 Message-ID: Subject: Re: Math errors To: Jonathan Nieder Cc: Jim Wilson , Joseph Myers , GNU C Library Content-Type: text/plain; charset="UTF-8" On Tue, Jan 14, 2020 at 2:57 PM Alistair Francis wrote: > > On Tue, Jan 14, 2020 at 12:28 PM Jonathan Nieder wrote: > > > > Hi, > > > > Alistair Francis wrote: > > > On Wed, Jan 8, 2020 at 4:29 AM Jim Wilson wrote: > > >> On Mon, Jan 6, 2020 at 5:33 PM Alistair Francis wrote: > > > > >>> I have the latest 5.4.x kernel, I'm not sure if that has it or not. > > >> > > >> I don't know. I don't follow linux kernel development that closely. > > >> But the failures I sometimes see are test-fenv and test-fpucw which I > > >> don't see in your list. > > >> > > >> I only run glibc testsuite on hardware though, and I've only been > > >> testing rv64gc support. I haven't tried qemu. In the RISC-V software > > >> meeting this morning, Palmer mentioned that there are some known > > >> RISC-V qemu FP bugs, for instance fcmp doesn't set the FP reg dirty > > >> bit when an exception flag is set, which could cause a testcase > > >> failure if a context switch happens at the wrong time. This could > > > > > > I have noticed that running the tests not in parallel gives much better results > > > > Interesting. Can you provide full "uname -r" output? What Linux > > distribution do you use? > > I don't have it in front of me right now, but it's 5.4.x and built > from OpenEmbedded. # uname -r 5.4.7 Alistair > > > > > I suspect the issue Jim mentioned is fixed by v5.3-rc5~12^2~1 ("riscv: > > Correct the initialized flow of FP register", 2019-08-14), which you > > would already have. That said, the 5.5-rc series has some more fp reg > > handling fixes. > > It could be a QEMU issue: > https://lists.gnu.org/archive/html/qemu-devel/2020-01/msg02455.html > > Alistair > > > > > [...] > > >> Someone will have to look at the rv32gc math failures, and keep an > > >> open mind that they could be glibc, qemu, gcc, linux kernel, etc > > > > > > Yeah, that's what I was thinking. There are only a few math tests left > > > failing, so it's not too bad. Thanks for the information Jim. > > > > That it appears more often with threading does suggest some kind of FP > > register leakage. > > > > Thanks and happy hunting, > > Jonathan