* [PATCH v3 42/74] x86/cpu/vfm: Update tpm files
[not found] <20240416211941.9369-1-tony.luck@intel.com>
@ 2024-04-16 21:22 ` Tony Luck
2024-04-17 15:41 ` Jarkko Sakkinen
2024-04-17 16:07 ` Paul Menzel
0 siblings, 2 replies; 7+ messages in thread
From: Tony Luck @ 2024-04-16 21:22 UTC (permalink / raw)
To: Peter Huewe, Jarkko Sakkinen
Cc: Jason Gunthorpe, linux-integrity, linux-kernel, patches,
Tony Luck
New CPU #defines encode vendor and family as well as model.
Signed-off-by: Tony Luck <tony.luck@intel.com>
---
drivers/char/tpm/tpm.h | 1 +
drivers/char/tpm/tpm_tis_core.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
index 61445f1dc46d..895f2dba266c 100644
--- a/drivers/char/tpm/tpm.h
+++ b/drivers/char/tpm/tpm.h
@@ -28,6 +28,7 @@
#include <linux/tpm_eventlog.h>
#ifdef CONFIG_X86
+#include <asm/cpu_device_id.h>
#include <asm/intel-family.h>
#endif
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 == INTEL_FAM6_ATOM_AIRMONT) ? 1 : 0);
+ return ((boot_cpu_data.x86_vfm == INTEL_ATOM_AIRMONT) ? 1 : 0);
#else
return false;
#endif
--
2.44.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 42/74] x86/cpu/vfm: Update tpm files
2024-04-16 21:22 ` [PATCH v3 42/74] x86/cpu/vfm: Update tpm files Tony Luck
@ 2024-04-17 15:41 ` Jarkko Sakkinen
2024-04-17 16:38 ` Luck, Tony
2024-04-17 16:07 ` Paul Menzel
1 sibling, 1 reply; 7+ messages in thread
From: Jarkko Sakkinen @ 2024-04-17 15:41 UTC (permalink / raw)
To: Tony Luck, Peter Huewe
Cc: Jason Gunthorpe, linux-integrity, linux-kernel, patches
On Wed Apr 17, 2024 at 12:22 AM EEST, Tony Luck wrote:
> New CPU #defines encode vendor and family as well as model.
>
> Signed-off-by: Tony Luck <tony.luck@intel.com>
> ---
> drivers/char/tpm/tpm.h | 1 +
> drivers/char/tpm/tpm_tis_core.h | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
> index 61445f1dc46d..895f2dba266c 100644
> --- a/drivers/char/tpm/tpm.h
> +++ b/drivers/char/tpm/tpm.h
> @@ -28,6 +28,7 @@
> #include <linux/tpm_eventlog.h>
>
> #ifdef CONFIG_X86
> +#include <asm/cpu_device_id.h>
> #include <asm/intel-family.h>
> #endif
>
> 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 == INTEL_FAM6_ATOM_AIRMONT) ? 1 : 0);
> + return ((boot_cpu_data.x86_vfm == INTEL_ATOM_AIRMONT) ? 1 : 0);
> #else
> return false;
> #endif
Thanks!
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
You want me to pick this?
BR, Jarkko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 42/74] x86/cpu/vfm: Update tpm files
2024-04-16 21:22 ` [PATCH v3 42/74] x86/cpu/vfm: Update tpm files Tony Luck
2024-04-17 15:41 ` Jarkko Sakkinen
@ 2024-04-17 16:07 ` Paul Menzel
2024-04-17 16:43 ` Luck, Tony
1 sibling, 1 reply; 7+ messages in thread
From: Paul Menzel @ 2024-04-17 16:07 UTC (permalink / raw)
To: Tony Luck, Peter Huewe, Jarkko Sakkinen
Cc: Jason Gunthorpe, linux-integrity, linux-kernel, patches
Dear Tony,
Thank you for your patch. It’d be great if you changed the commit
message summary/title to be more specific. Currently, the short log,
`git log --oneline`, is not very meaningful. Maybe:
tpm: Use new VFM macro INTEL_ATOM_AIRMONT
or
x86/cpu/vfm: Use macro INTEL_ATOM_AIRMONT in tpm
Kind regards,
Paul
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH v3 42/74] x86/cpu/vfm: Update tpm files
2024-04-17 15:41 ` Jarkko Sakkinen
@ 2024-04-17 16:38 ` Luck, Tony
2024-04-17 22:10 ` Jarkko Sakkinen
0 siblings, 1 reply; 7+ messages in thread
From: Luck, Tony @ 2024-04-17 16:38 UTC (permalink / raw)
To: Jarkko Sakkinen, Peter Huewe
Cc: Jason Gunthorpe, linux-integrity@vger.kernel.org,
linux-kernel@vger.kernel.org, patches@lists.linux.dev
> > #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
>
> Thanks!
>
> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
>
> You want me to pick this?
This depends on patches 1,2,3 in this series. Boris may be applying those to TIP soon.
Are you Ok with this patch also going into the TIP tree to keep all the parts in sync?
Otherwise it can wait until this moves from TIP to Linus. I'm not in a great rush.
-Tony
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH v3 42/74] x86/cpu/vfm: Update tpm files
2024-04-17 16:07 ` Paul Menzel
@ 2024-04-17 16:43 ` Luck, Tony
2024-04-17 22:48 ` Jarkko Sakkinen
0 siblings, 1 reply; 7+ messages in thread
From: Luck, Tony @ 2024-04-17 16:43 UTC (permalink / raw)
To: Paul Menzel, Peter Huewe, Jarkko Sakkinen
Cc: Jason Gunthorpe, linux-integrity@vger.kernel.org,
linux-kernel@vger.kernel.org, patches@lists.linux.dev
> Thank you for your patch. It’d be great if you changed the commit
> message summary/title to be more specific. Currently, the short log,
> `git log --oneline`, is not very meaningful. Maybe:
>
> tpm: Use new VFM macro INTEL_ATOM_AIRMONT
>
> or
>
> x86/cpu/vfm: Use macro INTEL_ATOM_AIRMONT in tpm
Paul,
With 74 patches in this series there was a lot of automation. I'll
see about updating "Subject:" lines to match subsystem conventions
before these are applied.
Apart from that, are you OK with the contents of this patch?
-Tony
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 42/74] x86/cpu/vfm: Update tpm files
2024-04-17 16:38 ` Luck, Tony
@ 2024-04-17 22:10 ` Jarkko Sakkinen
0 siblings, 0 replies; 7+ messages in thread
From: Jarkko Sakkinen @ 2024-04-17 22:10 UTC (permalink / raw)
To: Luck, Tony, Peter Huewe
Cc: Jason Gunthorpe, linux-integrity@vger.kernel.org,
linux-kernel@vger.kernel.org, patches@lists.linux.dev
On Wed Apr 17, 2024 at 7:38 PM EEST, Luck, Tony wrote:
> > > #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
> >
> > Thanks!
> >
> > Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
> >
> > You want me to pick this?
>
> This depends on patches 1,2,3 in this series. Boris may be applying those to TIP soon.
>
> Are you Ok with this patch also going into the TIP tree to keep all the parts in sync?
>
> Otherwise it can wait until this moves from TIP to Linus. I'm not in a great rush.
I don't mind Boris applying this. It is very unlikely to cause any
possible merge issues with other patches.
>
> -Tony
BR, Jarkko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 42/74] x86/cpu/vfm: Update tpm files
2024-04-17 16:43 ` Luck, Tony
@ 2024-04-17 22:48 ` Jarkko Sakkinen
0 siblings, 0 replies; 7+ messages in thread
From: Jarkko Sakkinen @ 2024-04-17 22:48 UTC (permalink / raw)
To: Luck, Tony, Paul Menzel, Peter Huewe
Cc: Jason Gunthorpe, linux-integrity@vger.kernel.org,
linux-kernel@vger.kernel.org, patches@lists.linux.dev
On Wed Apr 17, 2024 at 7:43 PM EEST, Luck, Tony wrote:
> > Thank you for your patch. It’d be great if you changed the commit
> > message summary/title to be more specific. Currently, the short log,
> > `git log --oneline`, is not very meaningful. Maybe:
> >
> > tpm: Use new VFM macro INTEL_ATOM_AIRMONT
> >
> > or
> >
> > x86/cpu/vfm: Use macro INTEL_ATOM_AIRMONT in tpm
>
> Paul,
>
> With 74 patches in this series there was a lot of automation. I'll
> see about updating "Subject:" lines to match subsystem conventions
> before these are applied.
>
> Apart from that, are you OK with the contents of this patch?
>
> -Tony
For the possible subject-line change: please *do not* remove my reviewed-by :-)
BR, Jarkko
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-04-17 22:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240416211941.9369-1-tony.luck@intel.com>
2024-04-16 21:22 ` [PATCH v3 42/74] x86/cpu/vfm: Update tpm files Tony Luck
2024-04-17 15:41 ` Jarkko Sakkinen
2024-04-17 16:38 ` Luck, Tony
2024-04-17 22:10 ` Jarkko Sakkinen
2024-04-17 16:07 ` Paul Menzel
2024-04-17 16:43 ` Luck, Tony
2024-04-17 22:48 ` Jarkko Sakkinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox