From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 4146D2222C5 for ; Fri, 15 May 2026 00:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778804831; cv=none; b=cFPxzyd+lIlYUa5IX7I8zGWL6kEyF6scSvx4j1vFqRGg0x86ebPW83/tOA2Ef0IAi12qRdC5ePSq4KDJ36esiAqDP/GpKoBOGXiCpPiKMUUq/SJkwr8tB6LoSclpq9dux4/moVWFaiXeMh3DmF4bymZyKlrDUkqC7XZgnS3xmSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778804831; c=relaxed/simple; bh=daMdODWfPrbmw3etySP1c4z70x4yqCWF3J78M8sY+a0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T2/C41/XZNFlFLNga+k7+N7M1qSEf7l+j5vXzwq0Jm8TKdVB8YLg7G77bp19qN41qk7IfZoCveE3i+dhNc2IH7H6qVjyvkGNABZ/hkuQlGxJTouggPISvoay9sykMpizj7umz0+4lIPBCORoCVxdSFzF3OpPDL9nu+XlBj0PF6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MOp4S1JM; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MOp4S1JM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778804829; x=1810340829; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=daMdODWfPrbmw3etySP1c4z70x4yqCWF3J78M8sY+a0=; b=MOp4S1JMFIqjh0eMKNB/iLOhT3911JLyZqyw94C3EcalZ+aGr3dQ0+3D XYnvFtP3/iBM3GQhxDldlII4s90ChMUn4+eQ9aox72zP0W0g13DJozVwy SmoARoiVMCciDRfNYga5rNcqFU+Y/i/oijmjOFsriAA+rqPNsyCX3X05b KMwRWadp8Aj6zr1q3AUKDtSKxi/NzKGafYAZcRm7pVjKP/PGxVOpzsYjg cExZHmhN5y0qwn8h97Q7lWbl5z2RsHzo3wYpRSA3eIcyGkyfrrfrPZSZB Vh0IXMeEsX8bESZSPauy68gUNoALG2vWlbxILLYuIgtD9HFhymItITrAs A==; X-CSE-ConnectionGUID: DUmR6u6mQyOZxYLotMrdrg== X-CSE-MsgGUID: OF6ejhOdRQW0/lODywD9Dw== X-IronPort-AV: E=McAfee;i="6800,10657,11786"; a="83613082" X-IronPort-AV: E=Sophos;i="6.23,235,1770624000"; d="scan'208";a="83613082" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2026 17:27:03 -0700 X-CSE-ConnectionGUID: Ssfbp7E9R/+7ASebj2qliQ== X-CSE-MsgGUID: V+yMyemLRtSk7SlyAUvepg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,235,1770624000"; d="scan'208";a="238418086" Received: from sohilmeh.sc.intel.com ([172.25.103.65]) by orviesa008.jf.intel.com with ESMTP; 14 May 2026 17:27:01 -0700 From: Sohil Mehta To: Dave Hansen , Borislav Petkov , x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Josh Poimboeuf , Richard Weinberger , Andrew Cooper , Tony Luck , Sohil Mehta , "Ahmed S . Darwish" , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] x86/cpu/intel: Simplify F00F bug notice using pr_notice_once() Date: Thu, 14 May 2026 17:24:59 -0700 Message-ID: <20260515002500.2463393-3-sohil.mehta@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260515002500.2463393-1-sohil.mehta@intel.com> References: <20260515002500.2463393-1-sohil.mehta@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The F00F bug workaround goes through a lot of effort to print the kernel notice exactly once. Replace it with pr_notice_once(), which precisely does that. Signed-off-by: Sohil Mehta --- v2: - New patch --- arch/x86/kernel/cpu/intel.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index e957c5a1501c..84a652a7dd41 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c @@ -396,13 +396,8 @@ static void intel_workarounds(struct cpuinfo_x86 *c) * The Quark is also family 5, but does not have the same bug. */ if (c->x86_vfm >= INTEL_FAM5_START && c->x86_vfm < INTEL_QUARK_X1000) { - static int f00f_workaround_enabled; - set_cpu_bug(c, X86_BUG_F00F); - if (!f00f_workaround_enabled) { - pr_notice("Intel Pentium with F0 0F bug - workaround enabled.\n"); - f00f_workaround_enabled = 1; - } + pr_notice_once("Intel Pentium with F0 0F bug - workaround enabled.\n"); } #endif -- 2.43.0