Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2746055lqo; Mon, 20 May 2024 15:46:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViITpubCRyyBPWQ+8gt6Mj5MvzSBW3tRcD+ynHEijMfjwpEYzSRsjX/y1K+ZoWJ9uXejeJpMbgXJ/tIx+/BrcPYRp/HOD+1AmhQmNINg== X-Google-Smtp-Source: AGHT+IEK5qh1e5wO/+hpmnBm8WqvpdJyDNyY3ZdGNPU4LR0dzl+0jIKBFZFFplPPMFd9YkGavnuP X-Received: by 2002:a05:622a:353:b0:43e:404a:890c with SMTP id d75a77b69052e-43e404a8c18mr125355531cf.19.1716245219252; Mon, 20 May 2024 15:46:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716245219; cv=pass; d=google.com; s=arc-20160816; b=xQaDFEzzkyHr1xBsVEcgnscrgKikWBlb/ZCKKJyt7lkbhtOxp/Gz9EGKj9li9x8RoS TsJXIejc6HeFoEG1KS4Wj2cerdT3xPz+zEKVIVLonzBLpAFSlblFMk+bhRd5obFd2irc MixV6FC4f45BdF0TillECrLldJVsRaXmGbeNC1fMup6j0yufJUE0pjAo2nSL+Shc9/8q 08kisuLbuDeNQWEONkGUxgfoYlHe9NImw+8q3+jBOD4atNo7QRLFDiZ+yW8oPHyV8SrF zSc1SGeK3tNmEVz6eWKJmLfSe4SfCdJJpp/baDQ7tXVQhhyxnp7WkkZdGih+I+Z3op56 N5aA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3jhUAnHJI4jvPLJRfF9KcZS95UVJjcHVz++V5b/ok+I=; fh=SQikNo7+Is0B5/UNduYIY0+b/zoF+dTn1ExA5+ET/hw=; b=d1KvNHPJ9SDhTpV7x+UDNmOCp2tNG1dAhGTTC1XRrvHqW70G/lJTgZ8Ha5w0swiKme jv86RLOWae9el20JI4un1OWWedXko5QuwJ1OwhocCl6arSZMzmN1pGMHmwNknRT195bI pLejK2gwlsPuFrZRF2TXd2Bzzc12fne6r9Es7xDZLYK0CidVVmj54Jj+utzTDFWB0v/7 E90AuJ+HAPd8+TZWo4vNRl31SSR8j9jtQ6A2Wpb16MUqgzCueOSgXVaqrYPaFYHZjCHx o8l/tKqAHC0Qtn6/as4PqS5Y8o76c3l98YeqaoTTlqM7JJcQknW6b3WPxNlNWrpOM45P dI9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X5PLBLSt; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-184230-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56cc02fsi264089221cf.644.2024.05.20.15.46.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:46:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184230-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X5PLBLSt; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-184230-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184230-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EA2BF1C210A0 for ; Mon, 20 May 2024 22:46:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04B8C13957D; Mon, 20 May 2024 22:46:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="X5PLBLSt" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 AA6901CD32 for ; Mon, 20 May 2024 22:46:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245199; cv=none; b=cGMR/srut/87DllwwSs0B+qoUYdBF57CaZuV0I3HhlPMcuSPYtiJZ98kDu0HpIJUZZZNb82pnCMeg6jh4F5+SCKYiuRJ0jHssrQNrwnlw/rIozOEb2oXUr6aG24eWy3Hmn/S22dtSWTET75y2Ng77MTwQBXP+VxWLdSDqVyXZBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716245199; c=relaxed/simple; bh=v93/ual/g32vB/MEMraEt8b9ts3LdceCjM3EwpB5y20=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kLP3sHlk1rpb7iD/iDLBzgN0AJzpYC5sHZN3jnpGfMIE0GthE0RIBu+6gqg9lPw16H/NWd+WImdnkPoLBhg9oyZZOabg3fHWJm3PKZrj91VH/z6oPhbZFJ/wi9rN182EssGw7O1Lt3e7C8NAXlgrLeM6+ME3RgJ5yMutnWkwRxQ= 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=X5PLBLSt; arc=none smtp.client-ip=192.198.163.18 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716245198; x=1747781198; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=v93/ual/g32vB/MEMraEt8b9ts3LdceCjM3EwpB5y20=; b=X5PLBLSt6bj52vVFsHTH6qm5+95UU3cMqa2Imhbg6mdmNUyfEymoJ/mK NyYl0MsqTRsdWbJkae131ySB6Xmua0k/W43uF3J+Ew5mlOw/xDnsCsY0L thWyIwb/zDaRQkfvg9QtudnAv5h2azGmRzz8BDNB1eJwyEbz5TtwFSopo 1hQrnWP4ZL3J6b9LUvM1UbiomXPLExtk6lDAXwZeG8yIGd6khpshDCMlY NVyf1iEYwN5cZmAqXMlRTsDoDmUL5aUD+ZX/mlJbZxlq1Y54lWHXzv6bm WRi0MelsqRRHoaXggYzxuAtVFimTRRWBMgdSrc9t1Pe4sU0cmCa8q3/Db A==; X-CSE-ConnectionGUID: ejzUp/NKT42jj1ryMCs45Q== X-CSE-MsgGUID: U/9F5LWzQGiZQymKEEMeuw== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12199529" X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="12199529" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:35 -0700 X-CSE-ConnectionGUID: 8wuCngyrRqutNflgnQSAEA== X-CSE-MsgGUID: /viPDrVoQp+zeZMF0zFKDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,176,1712646000"; d="scan'208";a="32593389" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 15:46:35 -0700 From: Tony Luck To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Uros Bizjak , Rick Edgecombe , Arnd Bergmann , Tony Luck , Mateusz Guzik , Thomas Renninger , Andi Kleen , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen Subject: [PATCH v6 03/49] tpm: Switch to new Intel CPU model defines Date: Mon, 20 May 2024 15:45:34 -0700 Message-ID: <20240520224620.9480-4-tony.luck@intel.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240520224620.9480-1-tony.luck@intel.com> References: <20240520224620.9480-1-tony.luck@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 New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck Reviewed-by: Jarkko Sakkinen --- drivers/char/tpm/tpm.h | 2 +- drivers/char/tpm/tpm_tis_core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h index 6b8b9956ba69..7bb87fa5f7a1 100644 --- a/drivers/char/tpm/tpm.h +++ b/drivers/char/tpm/tpm.h @@ -28,7 +28,7 @@ #include #ifdef CONFIG_X86 -#include +#include #endif #define TPM_MINOR 224 /* officially assigned */ diff --git a/drivers/char/tpm/tpm_tis_core.h b/drivers/char/tpm/tpm_tis_core.h index 13e99cf65efe..690ad8e9b731 100644 --- a/drivers/char/tpm/tpm_tis_core.h +++ b/drivers/char/tpm/tpm_tis_core.h @@ -210,7 +210,7 @@ static inline int tpm_tis_verify_crc(struct tpm_tis_data *data, size_t len, static inline bool is_bsw(void) { #ifdef CONFIG_X86 - return ((boot_cpu_data.x86_model == INTEL_FAM6_ATOM_AIRMONT) ? 1 : 0); + return (boot_cpu_data.x86_vfm == INTEL_ATOM_AIRMONT) ? 1 : 0; #else return false; #endif -- 2.45.0