From nobody Mon Feb 9 13:58:12 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 2A03031327D for ; Fri, 6 Feb 2026 23:14:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770419683; cv=none; b=Bw3SxEw3SBOhc/0cL1NabPHJZ34WArrddAQ+kgW1vcVLY1YJWP/RXXuvi8rWU7JQY41ZLs+kT2fswjdP3R3076xs7MgmaluXVek+RGvWClR9knZs8E9Rfuu8yj+A6+fjufXlYyRKjgfE9ZlmK6f9+PW0SnY1YAVEgORfcYXgI4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770419683; c=relaxed/simple; bh=x0xIWZRJLBcc9/ptrzIGxIcxuS1gtUFFRoiQFSuhvvo=; h=Subject:To:Cc:From:Date:References:In-Reply-To:Message-Id; b=IeRLIaxhhMAHgVdnqRT4zNl3ojboZ4QF+5JcX+N65ErpHSgIpbWg207+bMZg61ONQxJObQl11RNw7ycHV0Edk91XskVyibz8aOdPKBTUjWr+i8sEEVmKERN1sgMDwZRb5rXaft5T30DXGqhokxQ0m1kkHJ8narR3faiZwaS9aGE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ibSbyyG9; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ibSbyyG9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770419683; x=1801955683; h=subject:to:cc:from:date:references:in-reply-to: message-id; bh=x0xIWZRJLBcc9/ptrzIGxIcxuS1gtUFFRoiQFSuhvvo=; b=ibSbyyG9fCDHHvYIDixnRJ+kq3xvJVy48776M/auTWfr56tq/TX24TWC n82aYDvD8wDx2iycQA0jLrO/Qb9A24yupnW9/8GMGW7Rrk2oHbsN7slJV JCG4rt7leHocvGW0G5LTf9+GsNGyQQDHDA+UXjNLkFQuRoF1x53qGh3og tG8dezybTM79wvc84QZzv1rbQ5JEpNAlRsceic4OfzOy60XMfGmzbu+yu EXtxaU1iOS3kcLd4nIswjIoaklVz1857kjGZd2o/Ehmo2isSzehLPyU7K 3tn2cNYHNG5u5s75gPcayK5MCrEf4yKuu/hz4US7fQfE9XGy6JOvP/GyI g==; X-CSE-ConnectionGUID: JlNER1n2S9OFVAxRud89iw== X-CSE-MsgGUID: 0asp/vLFSM+Dj/7NjXvFqQ== X-IronPort-AV: E=McAfee;i="6800,10657,11693"; a="74232691" X-IronPort-AV: E=Sophos;i="6.21,277,1763452800"; d="scan'208";a="74232691" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2026 15:14:43 -0800 X-CSE-ConnectionGUID: pU+fNr62Te26vCCX6+LscQ== X-CSE-MsgGUID: nxcTTr+DTY+tZ/SXEACWVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,277,1763452800"; d="scan'208";a="210851516" Received: from davehans-spike.ostc.intel.com (HELO localhost.localdomain) ([10.165.164.11]) by fmviesa008.fm.intel.com with ESMTP; 06 Feb 2026 15:14:42 -0800 Subject: [PATCH 2/6] x86/cpu: Add missing #include To: linux-kernel@vger.kernel.org Cc: sohil.mehta@intel.com, zhao1.liu@intel.com, Dave Hansen , Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Jon Kohler , Pawan Gupta , "Peter Zijlstra (Intel)" , Thomas Gleixner , Tony Luck , x86@kernel.org From: Dave Hansen Date: Fri, 06 Feb 2026 15:14:42 -0800 References: <20260206231438.720FF4E3@davehans-spike.ostc.intel.com> In-Reply-To: <20260206231438.720FF4E3@davehans-spike.ostc.intel.com> Message-Id: <20260206231442.89987471@davehans-spike.ostc.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Dave Hansen The intel-family.h header uses Vendor/Family/Model macros but it does not #include the header where they are defined. It must be depending on implicit includes. Include the required header explicitly. Note that having this code in an explicitly #include'd header, non-x86 header means that the PECI code can zap its copy. Do that as well. Signed-off-by: Dave Hansen Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: Tony Luck Cc: Pawan Gupta Cc: "Peter Zijlstra (Intel)" Cc: x86@kernel.org Cc: Jon Kohler --- b/arch/x86/include/asm/intel-family.h | 7 +++++++ b/include/linux/peci-cpu.h | 20 -------------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff -puN arch/x86/include/asm/intel-family.h~fam-missing-include arch/x86/= include/asm/intel-family.h --- a/arch/x86/include/asm/intel-family.h~fam-missing-include 2026-02-06 15= :14:22.380749864 -0800 +++ b/arch/x86/include/asm/intel-family.h 2026-02-06 15:14:22.387750111 -08= 00 @@ -3,6 +3,13 @@ #define _ASM_X86_INTEL_FAMILY_H =20 /* + * Note: despite being in arch/x86, the PECI driver(s) use + * this header in arch-independent drivers. Do not use + * any x86-specific headers here: + */ +#include + +/* * "Big Core" Processors (Branded as Core, Xeon, etc...) * * While adding a new CPUID for a new microarchitecture, add a new diff -puN include/linux/peci-cpu.h~fam-missing-include include/linux/peci-c= pu.h --- a/include/linux/peci-cpu.h~fam-missing-include 2026-02-06 15:14:22.3837= 49970 -0800 +++ b/include/linux/peci-cpu.h 2026-02-06 15:14:22.387750111 -0800 @@ -8,26 +8,6 @@ =20 /* Copied from x86 */ #define X86_VENDOR_INTEL 0 - -/* Copied from x86 */ -#define VFM_MODEL_BIT 0 -#define VFM_FAMILY_BIT 8 -#define VFM_VENDOR_BIT 16 -#define VFM_RSVD_BIT 24 - -#define VFM_MODEL_MASK GENMASK(VFM_FAMILY_BIT - 1, VFM_MODEL_BIT) -#define VFM_FAMILY_MASK GENMASK(VFM_VENDOR_BIT - 1, VFM_FAMILY_BIT) -#define VFM_VENDOR_MASK GENMASK(VFM_RSVD_BIT - 1, VFM_VENDOR_BIT) - -#define VFM_MODEL(vfm) (((vfm) & VFM_MODEL_MASK) >> VFM_MODEL_BIT) -#define VFM_FAMILY(vfm) (((vfm) & VFM_FAMILY_MASK) >> VFM_FAMILY_BIT) -#define VFM_VENDOR(vfm) (((vfm) & VFM_VENDOR_MASK) >> VFM_VENDOR_BIT) - -#define VFM_MAKE(_vendor, _family, _model) ( \ - ((_model) << VFM_MODEL_BIT) | \ - ((_family) << VFM_FAMILY_BIT) | \ - ((_vendor) << VFM_VENDOR_BIT) \ -) /* End of copied code */ =20 #include "../../arch/x86/include/asm/intel-family.h" _