From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 0F60C3858C5E for ; Fri, 10 Mar 2023 03:43:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0F60C3858C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678419790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type; bh=SJttuodekn+cZnIWvMqLW7pyI888TsM2f4HDl/F5O78=; b=OiQPHlTSI772gqN0gD0A1vc6jPD+92E2IZ2Ou+qSfcD542z6DjnUkZORTWLcLsBJP8Kc8e /v8wss3aklqzF+hPfOgbiGHCo09sCuJx0HUTbFshFQnzz0T7QXVOrIHxJQQRxJl0c1Cbjf 43+iln0IX7rwtiN+Hvy8RWq/N2j4P9U= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-322-F5YS-ftvPr-QzY8UkLOobA-1; Thu, 09 Mar 2023 22:43:07 -0500 X-MC-Unique: F5YS-ftvPr-QzY8UkLOobA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3E7D0857A84; Fri, 10 Mar 2023 03:43:07 +0000 (UTC) Received: from greed.delorie.com (unknown [10.22.9.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 24F7C40C1106; Fri, 10 Mar 2023 03:43:07 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.15.2/8.15.2) with ESMTP id 32A3h6WY3276952; Thu, 9 Mar 2023 22:43:06 -0500 Date: Thu, 09 Mar 2023 22:43:06 -0500 Message-Id: From: DJ Delorie To: libc-alpha@sourceware.org CC: hjl.tools@gmail.com Subject: x86: Don't check PREFETCHWT1 in tst-cpu-features-cpuinfo.c X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: As not noted in the kernel sources: > /* Intel-defined CPU features, CPUID level 0x00000007:0 (ECX), word 16 */ > #define X86_FEATURE_AVX512VBMI (16*32+ 1) /* AVX512 Vector Bit Manipulation instructions*/ > #define X86_FEATURE_UMIP (16*32+ 2) /* User Mode Instruction Protection */ vs glibc: > /* ECX. */ > #define bit_cpu_PREFETCHWT1 (1u << 0) > #define bit_cpu_AVX512_VBMI (1u << 1) > #define bit_cpu_UMIP (1u << 2) Tested on the one machine I could find in our inventory that set that flag: - FAIL: elf/tst-cpu-features-cpuinfo - FAIL: elf/tst-cpu-features-cpuinfo-static - 27 FAIL + 23 FAIL (there were two unrelated timeouts in the "before" results) >From c4a62abbeac4ced531ced3999a2cd2d4fab6bdc6 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 9 Mar 2023 22:32:54 -0500 Subject: x86: Don't check PREFETCHWT1 in tst-cpu-features-cpuinfo.c Don't check PREFETCHWT1 against /proc/cpuinfo since kernel doesn't report PREFETCHWT1 in /proc/cpuinfo. diff --git a/sysdeps/x86/tst-cpu-features-cpuinfo.c b/sysdeps/x86/tst-cpu-features-cpuinfo.c index c25240774e..e963592c4b 100644 --- a/sysdeps/x86/tst-cpu-features-cpuinfo.c +++ b/sysdeps/x86/tst-cpu-features-cpuinfo.c @@ -217,7 +217,10 @@ do_test (int argc, char **argv) fails += CHECK_PROC (pku, PKU); fails += CHECK_PROC (popcnt, POPCNT); fails += CHECK_PROC (3dnowprefetch, PREFETCHW); +#if 0 + /* NB: /proc/cpuinfo doesn't report this feature. */ fails += CHECK_PROC (prefetchwt1, PREFETCHWT1); +#endif #if 0 /* NB: /proc/cpuinfo doesn't report this feature. */ fails += CHECK_PROC (ptwrite, PTWRITE);