From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 27DAE3857C63; Tue, 18 Jan 2022 14:25:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27DAE3857C63 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/27398] x86: Improve testing false positive for tst-cpu-features-cpuinfo with bad hardware. Date: Tue, 18 Jan 2022 14:24:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: hjl.tools at gmail dot com X-Bugzilla-Target-Milestone: 2.35 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2022 14:25:00 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27398 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #14 from H.J. Lu --- (In reply to Carlos O'Donell from comment #12) > (In reply to H.J. Lu from comment #11) > > Created attachment 13910 [details] > > The v2 patch > >=20 > > Please try this. >=20 > Thanks HJ. >=20 > My apologies, I made a mistake during testing, this still fails: >=20 > [carlos@fedora ~]$ taskset --cpu-list 0,1 ~/build/glibc-review/testrun.sh > /home/carlos/build/glibc-review/elf/tst-cpu-features-cpuinfo-static; echo= $? >=20 > Checking HAS_CPU_FEATURE (HLE): > HAS_CPU_FEATURE (HLE): 1 > cpuinfo (hle): 0 > *** failure *** >=20 > Checking HAS_CPU_FEATURE (RTM): > HAS_CPU_FEATURE (RTM): 1 > cpuinfo (rtm): 0 > *** failure *** These should be fixed by the v3 patch. > Likewise: >=20 > [carlos@fedora ~]$ taskset --cpu-list 0,1 ~/build/glibc-review/testrun.sh > /home/carlos/build/glibc-review/string/tst-memchr-rtm; echo $? > error: ../sysdeps/x86/tst-string-rtm.h:63: TSX abort rate: 100.00% (3000 = out > of 3000) > error: 1 test failures > 1 > [carlos@fedora ~]$ taskset --cpu-list 0,1 ~/build/glibc-review/testrun.sh > /home/carlos/build/glibc-review/string/tst-memchr-rtm; echo $? > 77 >=20 > [carlos@fedora ~]$ taskset --cpu-list 0,1 > ~/build/glibc-review-i686/testrun.sh > /home/carlos/build/glibc-review-i686/string/tst-memchr-rtm; echo $? > 77 > [carlos@fedora ~]$ taskset --cpu-list 0,1 > ~/build/glibc-review-i686/testrun.sh > /home/carlos/build/glibc-review-i686/string/tst-memchr-rtm; echo $? > error: ../sysdeps/x86/tst-string-rtm.h:63: TSX abort rate: 100.00% (3000 = out > of 3000) > error: 1 test failures > 1 This test is gated by static int do_test_1 (const char *name, unsigned int loop, int (*prepare) (void), int (*function) (void)) { if (!CPU_FEATURE_ACTIVE (RTM)) return EXIT_UNSUPPORTED; Can you find put why your processor isn't on the black list? --=20 You are receiving this mail because: You are on the CC list for the bug.=