From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 941002DCF72 for ; Sun, 14 Dec 2025 08:48:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765702092; cv=none; b=nTiqV3JKpjlJnqE2TmasMXypbvMqwV7GjkLLUJs+bQrByZnO7FhfNH/6hvxHlrt9d9s2vEu6DsaQdUWwI9KpDriZ3IGlApE1Inv5TLsvXKT9kv2tp2YMCFMyihUZPOsTaoRmrzVXyDk0HTZG3/LBFm1lVU72AibmO4+AiQ9+hGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765702092; c=relaxed/simple; bh=MKmYyxzuqrQsARBwJJZYcCnNfWfD4PewhqhgOhYIUws=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pIAptpKuakEdAXtLRPH/YtUYXkTv2L1b1/rWYRtCMB1iV4Et+o2deGwH0HtiDTls+0uv/SXkRb+LF9Z8TN/SPIFORps9L14DCvYazuv7JZVyLsEupFkNY3e3Xx3Pig8ieDkODqUqadJpAPp7JeX+AD6UC3UXvN3smo/aV1a3xtw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sR8Y7MqD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sR8Y7MqD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05A94C16AAE; Sun, 14 Dec 2025 08:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765702091; bh=MKmYyxzuqrQsARBwJJZYcCnNfWfD4PewhqhgOhYIUws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sR8Y7MqDVCiDYbwaDLIu0ArqFaBGXAwIMquYiwbYtsUy7uuUrRe8jKxBR+MKVcoBK 47PNyGl4w+JiQs9/WRTsfikUkWpUty+VW8l5Ei0Bl3vfSkm3nHznhWDZeTJHzn2kEu 6dgKXJbPg8piHS9xOrsrPmTiZ1hx/mwjG5liviyh0MH0tzEWCmBpVbTn0H9LqvgcdU BPhZ/eKoYi/KL/Jx9uPCui0bsaYBXCawralQorFSh5Hg61Xo2VYBw0GQmS4OZalEe7 fIE17xRkwFlCqHx+CeW43KXxnaEn7K49ZuXcqyGGJeJOnFGCoaUhUXBP7jBnSHIQ8e Qao89HpHOf9ZA== From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , "Ahmed S . Darwish" , Andrew Cooper , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , John Ogness , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Arnd Bergmann Subject: [PATCH 13/15] x86/cpu: Make CONFIG_X86_CX8 unconditional Date: Sun, 14 Dec 2025 09:47:01 +0100 Message-ID: <20251214084710.3606385-14-mingo@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251214084710.3606385-1-mingo@kernel.org> References: <20251214084710.3606385-1-mingo@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit I.e. it's a boot time requirement for the CPU to support it. Signed-off-by: Ingo Molnar Reviewed-by: Arnd Bergmann Acked-by: Dave Hansen Cc: Ahmed S . Darwish Cc: Andrew Cooper Cc: Ard Biesheuvel Cc: H . Peter Anvin Cc: John Ogness Cc: Linus Torvalds Cc: Peter Zijlstra Link: https://lore.kernel.org/r/20250425084216.3913608-14-mingo@kernel.org --- arch/x86/Kconfig | 2 +- arch/x86/Kconfig.cpu | 3 +-- arch/x86/Kconfig.cpufeatures | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 2e31ca35de1a..7a28380a8d76 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -134,7 +134,7 @@ config X86 select ARCH_SUPPORTS_AUTOFDO_CLANG select ARCH_SUPPORTS_PROPELLER_CLANG if X86_64 select ARCH_USE_BUILTIN_BSWAP - select ARCH_USE_CMPXCHG_LOCKREF if X86_CX8 + select ARCH_USE_CMPXCHG_LOCKREF select ARCH_USE_MEMTEST select ARCH_USE_QUEUED_RWLOCKS select ARCH_USE_QUEUED_SPINLOCKS diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu index c855db6ff6a4..54545aa95286 100644 --- a/arch/x86/Kconfig.cpu +++ b/arch/x86/Kconfig.cpu @@ -269,7 +269,6 @@ config X86_HAVE_PAE config X86_CX8 def_bool y - depends on X86_HAVE_PAE || M586TSC || M586MMX || MK6 || MK7 || MGEODEGX1 || MGEODE_LX # this should be set for all -march=.. options where the compiler # generates cmov. @@ -281,7 +280,7 @@ config X86_MINIMUM_CPU_FAMILY int default "64" if X86_64 default "6" if X86_32 && (MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7 || MEFFICEON || MATOM || MK7) - default "5" if X86_32 && X86_CX8 + default "5" if X86_32 config X86_DEBUGCTLMSR def_bool y diff --git a/arch/x86/Kconfig.cpufeatures b/arch/x86/Kconfig.cpufeatures index 888487e109bf..1857f75a19d6 100644 --- a/arch/x86/Kconfig.cpufeatures +++ b/arch/x86/Kconfig.cpufeatures @@ -42,7 +42,6 @@ config X86_REQUIRED_FEATURE_NOPL config X86_REQUIRED_FEATURE_CX8 def_bool y - depends on X86_CX8 # this should be set for all -march=.. options where the compiler # generates cmov. -- 2.51.0