From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id ED539385841F for ; Mon, 11 Sep 2023 14:14:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ED539385841F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-68fb98745c1so850090b3a.1 for ; Mon, 11 Sep 2023 07:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1694441682; x=1695046482; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=A0+cg42PjGkK0a2XGKV8Dr6ibhdLAFXTFemtlYEdE/U=; b=pov6rTpKVP1jYU8OisiehIXUAuoxKX8R9OHWNiIpzRmOXVwWxJZVFxQeErI5c/Gbnb ipRDSjX4a2OS+amiCauDicB2XSQIB7dhf68uTfbi6ElIbtEs3FPMERgWZ90H5d6cfuAs dVWconN/DSMS50ry9FUa5xk5TsmbfHrCrkJXNSySt+diD9/dOcbh8nEEnKBw8MgAYoT9 IkCZikOoNstHFsnXJTGvt0ht4MNMVDIn6jS08eC0tw+fwf/jFXx+xEXm6CaHNaOkWrzS zytDzumbVJcP8TiVxcRfYAS2hPJPebz9Rj2TIyCBHusBedYq51RBf5S0Z4uF4UKRVcOV aC8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694441682; x=1695046482; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=A0+cg42PjGkK0a2XGKV8Dr6ibhdLAFXTFemtlYEdE/U=; b=eoXa8VXLl0teDhq38EC1AxWg+38hPgHURF3RORK35RXwNcelTClIzd/oN1IPirnFjB J+GH3Nlf3/6x1GSW20opIvuIuI5PScFQJN8n/fnjxl8TrYjz0hIck4cY0SD9FEtVMefF HwnDp2omwq9G7T2TRD1cRYmXZtervEGuUAvU2HxX4GS1jhbFhgy+QA/gTqxcRzymK6sz mxZtCDAu2MejWjJWgQu7DgtXuU/o5n8Sd+l8otuf7+TbW+bjJOMQ1hZ8/esOkDTil13+ 7WBONH31GkwHDpFXTlYz0hsSbWm+YN8pKJa6udboM4XFip6vr9hIq51BnfpMz+DrU3gS weXA== X-Gm-Message-State: AOJu0YxZxMP28hFcaTQGlvdNBIGsJQ47y/w8yAsZkFzP+ZmjJAt9EETH R20zoIFt5Q4Z7ebf61fCMfp8Mw== X-Google-Smtp-Source: AGHT+IEgUArsRB3PV+4Id5BcB908B+wiVWFb17Q8039ig2oOnhKxnLWdanelWrTiFi4Kjt0u2adrEw== X-Received: by 2002:a05:6a00:2396:b0:68e:4605:a8d3 with SMTP id f22-20020a056a00239600b0068e4605a8d3mr8677304pfc.29.1694441681730; Mon, 11 Sep 2023 07:14:41 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id bk17-20020aa78311000000b0068fc9025a08sm1713390pfb.151.2023.09.11.07.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 07:14:41 -0700 (PDT) Date: Mon, 11 Sep 2023 07:14:41 -0700 (PDT) X-Google-Original-Date: Mon, 11 Sep 2023 07:14:03 PDT (-0700) Subject: RE: [PATCH] RISC-V: Enable static-pie. In-Reply-To: CC: DJ Delorie , Darius Rad , adhemerval.zanella@linaro.org, libc-alpha@sourceware.org From: Palmer Dabbelt To: yanzhang.wang@intel.com, ewlu@rivosinc.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 08 Sep 2023 23:54:49 PDT (-0700), yanzhang.wang@intel.com wrote: > Thanks Palmer. > >> You can set TIMEOUTFACTOR, qemu-system is a lot slower than hardware. >> > > I'll try to set a high value. It's really too slow. > >> Which board are you running on? > > I use the board licheepi 4a with Debian 12 to do the testing. Those T-Head cores have a bit of a reputation for ignoring the ISA, so it wouldn't be super surprising if something odd is going on with floating point. If the tests are clean on QEMU and fail on the C910 then we should get to the bottom of it, though. Last time I had to chase down an FPU bug I used TestFloat . I'm not sure if there's something better? +Edwin, as I think he's got Lichee Pi 4a up to benchmark misaligned accesses for that GCC patch. > >> -----Original Message----- >> From: Palmer Dabbelt >> Sent: Saturday, September 9, 2023 11:31 AM >> To: Wang, Yanzhang ; DJ Delorie ; >> Darius Rad >> Cc: adhemerval.zanella@linaro.org; libc-alpha@sourceware.org >> Subject: RE: [PATCH] RISC-V: Enable static-pie. >> >> On Fri, 08 Sep 2023 20:17:16 PDT (-0700), yanzhang.wang@intel.com wrote: >> > I took some time to test the master with binfmt_misc and qemu system >> mode. >> > Both of them can't match the requirements (<= 6 failures). >> > >> > - most of cases with binfmt_misc fail with abort. >> >> QEMU user mode isn't a valid test suite target for glibc, there's lots of >> failures due to the emulation. I know it's confusing that riscv-gnu- >> toolchain uses it, that come up when support was added. >> >> > - most of cases with qemu system fail with timed out. >> >> You can set TIMEOUTFACTOR, qemu-system is a lot slower than hardware. >> >> > And also tested with my risc-v board and still fails 70+ cases and >> > most of them are math accuracy issue. >> >> Which board are you running on? >> >> > So Adhemerval, do you know how to setup the environment to reproduce >> > the <= 6 failures ? Maybe I lost some important steps. Thanks very >> much :). >> >> +DJ and Darius, who usually report test results. They've probably got >> the best idea of how to set things up, but I don't remember this >> requiring anything fancy. >> >> > >> > Thanks, >> > Yanzhang >> > >> >> -----Original Message----- >> >> From: Adhemerval Zanella Netto >> >> Sent: Tuesday, August 15, 2023 7:46 PM >> >> To: Wang, Yanzhang ; Palmer Dabbelt >> >> ; libc-alpha@sourceware.org >> >> Subject: Re: [PATCH] RISC-V: Enable static-pie. >> >> >> >> >> >> >> >> On 13/08/23 09:20, Wang, Yanzhang via Libc-alpha wrote: >> >> > Hi Palmer, >> >> > >> >> > I have tested the commit(542b110585) with this patch. The results >> >> > like below, >> >> > >> >> > Summary of test results: >> >> > 189 FAIL >> >> > 4328 PASS >> >> > 101 UNSUPPORTED >> >> > 16 XFAIL >> >> > 2 XPASS >> >> > >> >> > And the commit(542b110585)'s results like below, >> >> > >> >> > Summary of test results: >> >> > 189 FAIL >> >> > 4326 PASS >> >> > 101 UNSUPPORTED >> >> > 16 XFAIL >> >> > 2 XPASS >> >> > >> >> > The binutils's commit is 2db20b97f1d and gcc's commit is bf36656a14a. >> >> > >> >> > I use the command make check-glibc-linux in riscv-gnu-toolchain. >> >> > Not sure is that acceptable. >> >> >> >> The riscv reports for 2.38 release [1] list at maximum of 6 FAIL for >> >> all the ABI variants. The 189 failures you are reporting means that >> >> your environment is either missing some setup (for instance, copying >> >> the libgcc_s.so and libstd++.so on the build folder so C++ and tests >> >> that require pthread_cancel or backtrace works correctly) or it is >> >> not properly configured. >> >> >> >> Please sort this out first, since with that amount of failures is not >> >> straightforward to check whether static-pie is really working as >> intended. >> >