Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp869047lqd; Wed, 24 Apr 2024 21:48:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7K+H01EZxS02dc2K5gw3Sa9QXKA0GfCKDV9bD54zYkuYm+87lihBqnsM/fxSIcFsXSaoH9hcPy7UtmWAxIQfLGWvzgSUI4ff6I/OdDQ== X-Google-Smtp-Source: AGHT+IEoIMl0law2ShmgOm4DqinvfhwWVNP53np1n3eMNl3iIGmG4dTKNef4aXPnM9lxVEV4XiNu X-Received: by 2002:a17:90a:a405:b0:2ad:da34:4e with SMTP id y5-20020a17090aa40500b002adda34004emr2591247pjp.2.1714020508300; Wed, 24 Apr 2024 21:48:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714020508; cv=pass; d=google.com; s=arc-20160816; b=C4D8UbKC/irIF8HeASX5CM6D0uONiOUDG/tA6Ll5BwMcqULqvU5bP14U9w/YVGpefk /r3z0CD+whvlWGpm00dKSr40+lHeWA5WigtbNL79K0IBOo8EmAhgpDWyoXVUZe6t6ps+ qPATif2E8ZQU1KZDmq/whHMIDVqd/zI/pxD+untcVNKlXOz1rN9IXDaJHmwIdCOjpnUC 7YNWjTJ8UObjp54c2WUOM15je/g8kYtrHE1xnqia65zAORJef7U0LfpdB7mbwSGbuzSX LM4jR/9DOw1LHeFk+xan8lc6uWMUtyLvxc50O8s2UedM8w/R2XpEkOHqqj/xtzHFGXAy 7BEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=4iGQmeCux3Wx/QSn9+D5YzRs86qRQO+9giQo3NechS0=; fh=6coerQg66iZ8j1n8ejhbFGsmOHcpyIm1gYXLU/pk75E=; b=bfIZFUngY0xUby5jfpR/AFwkZlNzWbjnEoUdcQy4fNyVuW1WzD+BxP6cYjlk/3AxZp MNHPuHHJA+vdZpRHgYDQekrZtRtC1Pyb5BTDMgjHpbHcfbjUmJHUbfXX+y2lHJtwWTCM oaBcnb36Oieu2g4uwNduvWR6LX7Vm5iS/e3V4vHAH9I2ld9H147loYt3iDNe663sDcyc W2Bq9tcN0VArdne2FnsryeagbRo+MijVXcQ7P0vTp5UFvbDyDNbg3SoMY4lDH38hv3om WPIDXp3IGdMtgykYeBjYbABVv1XrCFfynCcdzeeUQ4Fyj986PJ7OBJC7HAC01CX8ZRWs ir/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZE7fWK8L; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id pg16-20020a17090b1e1000b002acbbcc335bsi9800009pjb.63.2024.04.24.21.48.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 21:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZE7fWK8L; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C6AFC283167 for ; Thu, 25 Apr 2024 04:48:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A840D39FEB; Thu, 25 Apr 2024 04:48:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZE7fWK8L" 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 C37E635F0C; Thu, 25 Apr 2024 04:48:21 +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=1714020501; cv=none; b=IJgkaJJmC/SGqapakHZB0m/Owygd2xXM5GJYO1TqPTLnIzrL2E3hNE3dt02l8fiIYtrIMjlyam3haUn+6DWPfd1CSgkjJ9HAH0wnTwgyUPOS3agSFYtMnXkp7HkEJLqiyi31u2Mef6Q7tpdF+DwlVxbbE5BCF9AXHpW5vf1c9vM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714020501; c=relaxed/simple; bh=N0fWpzpqQhKoXcrRNMKIEbA2taNqTuDY6Kw85Strf/8=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=qSiRNdS/lleJpAWd/Ol9rXrneYhgmqnGxUz8AS2M5fiHLk8KQZlDouSGJoW9uUzbaTga0aK0RiaNAohmigh2dqLElzTHwOXnHTND5Eju74W37kfzhKOaDsAHv/bCvI32oqtb9BW0SVlB24KNTl4n4n1sIf7eRGoLR5heuqvqrWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZE7fWK8L; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC12DC113CC; Thu, 25 Apr 2024 04:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714020501; bh=N0fWpzpqQhKoXcrRNMKIEbA2taNqTuDY6Kw85Strf/8=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=ZE7fWK8LiRoxobTQShGT2MHn3A92vGIt7B4BC4Q109IoiK1RWRu1BjpyATQbBHiTi EnrSZPZQlCc1I4SrouS/ymjYlmcJkErG6vpV2we5DN1RjfU5AJu00jR3w6afj4HJPI OZnrvxht4DMOwwf7frSkhhwJ6pbXJQVec6m0bNnDgs90DCn+h0PF6StaAf36HpT68L W/VwIw5MFIaL/Zo1SGwqY1ACUw3CRzGGWBPJveWsfAq5joW7ZETVZdeiGDI1YYJehH 2luc/rOwgxfCa8MnqRK+JPhJj/3UHoqxeuCOoyhv8gNB/xRN8Ng76vyKENNXN78IUq hMA7R0Q914x6A== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 25 Apr 2024 07:48:17 +0300 Message-Id: Cc: "Jason Gunthorpe" , , , Subject: Re: [PATCH v4 01/71] tpm: Switch to new Intel CPU model defines From: "Jarkko Sakkinen" To: "Tony Luck" , "Borislav Petkov" , "Peter Huewe" X-Mailer: aerc 0.17.0 References: <20240424181245.41141-1-tony.luck@intel.com> <20240424181444.41174-1-tony.luck@intel.com> In-Reply-To: <20240424181444.41174-1-tony.luck@intel.com> On Wed Apr 24, 2024 at 9:14 PM EEST, Tony Luck wrote: > 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 61445f1dc46d..7b38ce007bdc 100644 > --- a/drivers/char/tpm/tpm.h > +++ b/drivers/char/tpm/tpm.h > @@ -28,7 +28,7 @@ > #include > =20 > #ifdef CONFIG_X86 > -#include > +#include > #endif > =20 > #define TPM_MINOR 224 /* officially assigned */ > diff --git a/drivers/char/tpm/tpm_tis_core.h b/drivers/char/tpm/tpm_tis_c= ore.h > index 13e99cf65efe..c940fd18988e 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_d= ata *data, size_t len, > static inline bool is_bsw(void) > { > #ifdef CONFIG_X86 > - return ((boot_cpu_data.x86_model =3D=3D INTEL_FAM6_ATOM_AIRMONT) ? 1 : = 0); > + return ((boot_cpu_data.x86_vfm =3D=3D INTEL_ATOM_AIRMONT) ? 1 : 0); > #else > return false; > #endif +1 BR, Jarkko