From patchwork Tue Feb 27 19:43:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1905400 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=N4ZTAhLW; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tknx03V24z1yX0 for ; Wed, 28 Feb 2024 06:44:04 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5A07A3858C36 for ; Tue, 27 Feb 2024 19:44:02 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id 36DC73858C5E for ; Tue, 27 Feb 2024 19:43:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36DC73858C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 36DC73858C5E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709063025; cv=none; b=oC7KNHPtUgzxThgipOl2KCgk7GSLKNUPCpkFEEe99tj5CBr26XF7HQS5EEfeNS11q+WOceDq8EfoxP7NXmJeeJfaP3MXm0VkecFVI+iYjU0Va7aAkG0BmflRNJH+Gl1hCtmsiB+FE5zyIlK9lPtsuS6xAUVSuvLfEfQLf2Nd+Sw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709063025; c=relaxed/simple; bh=Qrz7t6fQY5TXo8i15P6PR5qvYh2uJI2WxRMXn3o1Zoo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Urg/ZL9w9qYjRc5IFd3OVua2XUYEqNNvOVdx+vD9YKGrTPHzp3I9OB9x99453L2FgmGK1WEKnSWLMWsUeJ7Cc3hRiZ20k6+2jEMo32GXVsxDEoom3DA9RpU/s1lsFw8jx5CNgGepe969Db9PqHRqAJRmjTYP9YlLtg6gmM3f4VA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1dc91d2384cso24751185ad.1 for ; Tue, 27 Feb 2024 11:43:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709063021; x=1709667821; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=pb7iUpcdEn3QAE10HcRrYpbdQs9ZuxrxvedTsDoZv1c=; b=N4ZTAhLW+lVxYSKG6Hd0dsehZTwAQvC7gCrb+uhgFBT083uOLY7QjqPcwCmxuQeuf7 QHGXwSReKTof5/xjxVl0FA/TbdvTTZSVRIlrPNCaaCuqH1vSPugXJW0Lq+6Cq6nXvBYx EpT0lL2jkrp7UuBUJe/3NdadHRHq0q3os7Jzvj5Ut1bYGAbp/cZEpCfAPMS4IpAmfMJj acHNY0Y0KVPa/6orVLfXN2E+nGuoDvvRwbMSXjjX+NOawdrY5kpRI5f0w/Fcj1m4dA2y 2KKSyEMVs5BOZJDV5KKjT3VXKUDsT5/nQTHyk1GoYoOVA7nLs+lCUTINbClJE/7kVweG ZKNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709063021; x=1709667821; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pb7iUpcdEn3QAE10HcRrYpbdQs9ZuxrxvedTsDoZv1c=; b=OdMxWNQvSBDXiA+EqvDBrzBdxkPqLqd5KF3eO1rtmLreR16JfSEajJ/OhkWS4lwyqJ aps8ODoxLicbyUEfRB2miZsVLABWqoX1lToXU99SUV/lm3kP0Pr3DP77qwpaEY3MOLf8 /Iv/Mvdaf0qSuLDfOzN2fzx/kHq/vhNGsnDlIx8k0IVE5WCn9cECGLNCmz8XuWND6mS/ zhQ4R6rT4++o9rhHssGUhF1O110ODMyiYiOZXCPiRAjZZ3f2h23J/IzcIMko1RD6quPp LYsx8fZoX5HxIsZdtKteX3Azk0XfzVrKuxUrZnBgDIYnIF8/kLIph2gv25uZYi63Pr3b 9tKA== X-Gm-Message-State: AOJu0Yx1QJEGRqQKk/O+YFxTZI03rODa1N/la8xQoMeiNRrfcUGk50ed sbA7Ycsz6coODcne+wEuVbNrNhVbdDuyyQN/tsLQXN7yDDWuUj6S8MMFH/O5 X-Google-Smtp-Source: AGHT+IFqdUnW6aBlO9lr/H1srOopq1rVW+pUNvaCK+in6rJ4cJ3AT5dc1xiKAwZuqCwqnH6Q9xWY8Q== X-Received: by 2002:a17:902:eb89:b0:1dc:a5fd:6de9 with SMTP id q9-20020a170902eb8900b001dca5fd6de9mr6298996plg.12.1709063021274; Tue, 27 Feb 2024 11:43:41 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.58.89.72]) by smtp.gmail.com with ESMTPSA id kj14-20020a17090306ce00b001da1ecb05f9sm1881279plb.240.2024.02.27.11.43.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:43:40 -0800 (PST) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 02E7B7402C5 for ; Tue, 27 Feb 2024 11:43:40 -0800 (PST) From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH] x86: Don't check XFD against /proc/cpuinfo Date: Tue, 27 Feb 2024 11:43:39 -0800 Message-ID: <20240227194339.2023058-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 X-Spam-Status: No, score=-3021.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Since /proc/cpuinfo doesn't report XFD, don't check it against /proc/cpuinfo. --- sysdeps/x86/tst-cpu-features-cpuinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/x86/tst-cpu-features-cpuinfo.c b/sysdeps/x86/tst-cpu-features-cpuinfo.c index c11c6951c3..0251fb5460 100644 --- a/sysdeps/x86/tst-cpu-features-cpuinfo.c +++ b/sysdeps/x86/tst-cpu-features-cpuinfo.c @@ -294,7 +294,10 @@ do_test (int argc, char **argv) fails += CHECK_PROC (waitpkg, WAITPKG); fails += CHECK_PROC (wbnoinvd, WBNOINVD); fails += CHECK_PROC (x2apic, X2APIC); +#if 0 + /* NB: /proc/cpuinfo doesn't report this feature. */ fails += CHECK_PROC (xfd, XFD); +#endif fails += CHECK_PROC (xgetbv1, XGETBV_ECX_1); fails += CHECK_PROC (xop, XOP); fails += CHECK_PROC (xsave, XSAVE);