Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp869698lqd; Wed, 24 Apr 2024 21:50:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsHaRa69iuqN8OJaFbdz5a6PWhE+ZUkn2fGB9uQ3fvpd5dxVJmHQ+TxQbtSMPvzyDOL2fkYwTIaylKujgnRQUGsPXvzHUiH2qbilvwIg== X-Google-Smtp-Source: AGHT+IHax1V51iC3CkEnFOKv4tuaqBnodx55nlEsJUhgYD5xoF7IOjBR/XE3JqiBheFaRCErMW02 X-Received: by 2002:a05:6a21:2709:b0:1ac:48a9:8a42 with SMTP id rm9-20020a056a21270900b001ac48a98a42mr4974705pzb.14.1714020623340; Wed, 24 Apr 2024 21:50:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714020623; cv=pass; d=google.com; s=arc-20160816; b=xp47A9h2hg4yvSZjhfsDWXOp+5I5nGxOienZ+A7VnK8dfT/EojwZIDga79TcbC0xMo HOHPSwuyTCZJjsm5cdEWjtgCF+mb9UxnxnemDt5/BCKlB72gpyb8RgBKKgBbVU4UzOdl V6fWi3oVvif45Hh3WzFltsE0zEUAsQsGWlpcEczGRB/TtIZlmierWTydj7V8OeoHoHH1 1Cw5G8Zm4PvjXzTLx33BS/C1Y71A6TFtrIOOB9t8TR9cCX+2dRMCzdvFqIyia/rAIWH1 0epw0KiHwOoxJrYwAix3DkjEN7AWQhnCLWuYtPJR6T7lYsF86jVdcG/4ZiAHiNl8LM/O GPSQ== 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=Fxf7EmNb0NzHID0PnIMcoXtEb6qTtiDixgjegmRk4lM=; fh=PZ0oZLstUWbn3bzw2RixJL8s+R5cGKuvmKeHn1zKEEw=; b=LBMd8S2POgjCrajR7WUrDXTHq3N7AAjmh0EyeF0gsKqqc/KkiT7mG+eGhQ0AbVfii3 M7uHleRPKs4CZwpD1/fhuYaFS92g6nIflht4C2LpzNel1fq1bn29nJ1k5483F+8axFGe pyKh5WjpLxWKDW/+OyQuwMvyKd5DgpSn3bA5g94T8CW/NaWT0NZrFfprFlCCN6jJuS7Z L7qNKPJE7H+ar7xIY9Yhll64vyQHibDCPZGwOep2j4NkC40lzowlnbnEc6VS9xEe8L8z VkWaP4/KD/v0n9o2vF3//DO36cPPPl8q8ZGhR9ER5lbQ+TLhLvirVneWqasyR/0COxS5 Dhig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hUFvEoHA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158006-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y23-20020a17090264d700b001e8c155b9f6si10565422pli.160.2024.04.24.21.50.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 21:50:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hUFvEoHA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158006-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9EE5CB22FEA for ; Thu, 25 Apr 2024 04:50:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CEEB39AE7; Thu, 25 Apr 2024 04:50:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hUFvEoHA" 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 48D5335F0C; Thu, 25 Apr 2024 04:50:09 +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=1714020610; cv=none; b=gJMbXSmnyjFko6O/dPlL4EnhBP4EJpsOHmunwpjKgr4Op5qlMOpDi05Jtv289RH/2fm+PflsBPaEgS2KHPwQh9ggBup44soOj8Q28WmE3WeO33VHT35znEUF3iY7R/AYEiaibi7wj1ynsHcdoHiTNM8C2thaRH32DOGSWmexcC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714020610; c=relaxed/simple; bh=vi1NdzYR3K7bIhRidGu6Jw31GKlJa67y6775qr/tFeY=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=llSR7SVgOHiw57EJuE1QhZlfaPm+AZH0Pjn7m8k2fTNGqfIERPw8i/M099ra3CApJ5EZLsF2QCKJH8q5hixOpG15XtSi3p5U9iPKCoHuwb0xRd7MROEE5dlvZcE7dRABCIlAMWBBlBEaR6jiwZkD6jnx/5Zi6AY26NgJIrZsVwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hUFvEoHA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A83F9C113CC; Thu, 25 Apr 2024 04:50:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714020609; bh=vi1NdzYR3K7bIhRidGu6Jw31GKlJa67y6775qr/tFeY=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=hUFvEoHAAnvHmwO5hhpYt6YnDOT1AzDcYkoNypUB/ZCKvPqXSJo5klNoEI7D61kwG Y6Uo87dHMg60h5ptPzW2pTmU1+smuxeF2ZpU/Lw6d6chBUeszm7hkdXOQ0Wwiu/xQl HZCcXjivMharCTttbDUNiGPSxsufuhg+0bd+wxgdy6C/UidJDXfdYHNpxHqoma2HnU jZdhr3JQVwazfZ1ULmTbujzaU7b+C1+FneXegjIhGGb/EUrmx/hs1k4erLkZZW3/E2 ckgiOWWtxyEAfZJQdaK220BOygj0CrHZty/t7mLTbjHc8UmEwoCj2t+zin65A1fKbs UM7pFaivXZckQ== 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:50:05 +0300 Message-Id: Cc: "Jason Gunthorpe" , , , Subject: Re: [PATCH v4 01/71] tpm: Switch to new Intel CPU model defines From: "Jarkko Sakkinen" To: "Jarkko Sakkinen" , "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: On Thu Apr 25, 2024 at 7:48 AM EEST, Jarkko Sakkinen wrote: > 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= _core.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= _data *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); Umh I guess one could complain about extra parentheses ;-) Not sure if I care, if no other updates needed, probably don't. > > #else > > return false; > > #endif > > +1 > > BR, Jarkko BR, Jarkko