linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only
@ 2023-05-24  5:58 Peter Ujfalusi
  2023-05-24  8:43 ` Paul Menzel
  2023-05-24 15:03 ` Jarkko Sakkinen
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Ujfalusi @ 2023-05-24  5:58 UTC (permalink / raw)
  To: peterhuewe, jarkko
  Cc: jgg, linux-integrity, linux-kernel, l.sanfilippo, peter.ujfalusi,
	jsnitsel

The original patch which added the quirk would apply to all AAEON machines,
which might or might not be valid.

The issue was discovered on UPX-i11 (TigerLake), it is not known if the
i12 (AlderLake) version is affected.
UP2 (ApolloLake) does not even have TMP module (no TPM drivers probing
and confirmed by dmidecode).

Let's make the quirk to be applicable for UPX-i11 (UPX-TGL01) only.

Fixes: 95a9359ee22f ("tpm: tpm_tis: Disable interrupts for AEON UPX-i11")
Suggested-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
Hi Jarkko,

the patch is generated on top of your
git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git : irq-storm

Regards,
Peter

 drivers/char/tpm/tpm_tis.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
index 7db3593941ea..4357d4ba8f9e 100644
--- a/drivers/char/tpm/tpm_tis.c
+++ b/drivers/char/tpm/tpm_tis.c
@@ -143,6 +143,7 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = {
 		.ident = "UPX-TGL",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "AAEON"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01"),
 		},
 	},
 	{}
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only
  2023-05-24  5:58 [PATCH] tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only Peter Ujfalusi
@ 2023-05-24  8:43 ` Paul Menzel
  2023-05-24  8:55   ` Péter Ujfalusi
  2023-05-24 15:03 ` Jarkko Sakkinen
  1 sibling, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2023-05-24  8:43 UTC (permalink / raw)
  To: Peter Ujfalusi
  Cc: peterhuewe, jarkko, jgg, linux-integrity, linux-kernel,
	l.sanfilippo, jsnitsel

Dear Peter,


Thank you for your patch.

Am 24.05.23 um 07:58 schrieb Peter Ujfalusi:
> The original patch which added the quirk would apply to all AAEON machines,
> which might or might not be valid.
> 
> The issue was discovered on UPX-i11 (TigerLake), it is not known if the
> i12 (AlderLake) version is affected.
> UP2 (ApolloLake) does not even have TMP module (no TPM drivers probing

s/TMP/TPM/

> and confirmed by dmidecode).

Another nit, the official spelling of the SOC names is with a space, for 
example, Tiger Lake [1].

> Let's make the quirk to be applicable for UPX-i11 (UPX-TGL01) only.
> 
> Fixes: 95a9359ee22f ("tpm: tpm_tis: Disable interrupts for AEON UPX-i11")
> Suggested-by: Jerry Snitselaar <jsnitsel@redhat.com>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
> ---
> Hi Jarkko,
> 
> the patch is generated on top of your
> git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git : irq-storm
> 
> Regards,
> Peter
> 
>   drivers/char/tpm/tpm_tis.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
> index 7db3593941ea..4357d4ba8f9e 100644
> --- a/drivers/char/tpm/tpm_tis.c
> +++ b/drivers/char/tpm/tpm_tis.c
> @@ -143,6 +143,7 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = {
>   		.ident = "UPX-TGL",
>   		.matches = {
>   			DMI_MATCH(DMI_SYS_VENDOR, "AAEON"),
> +			DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01"),
>   		},
>   	},
>   	{}

Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>


Kind regards,

Paul


[1]: https://en.wikipedia.org/wiki/Tiger_Lake

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only
  2023-05-24  8:43 ` Paul Menzel
@ 2023-05-24  8:55   ` Péter Ujfalusi
  0 siblings, 0 replies; 4+ messages in thread
From: Péter Ujfalusi @ 2023-05-24  8:55 UTC (permalink / raw)
  To: Paul Menzel
  Cc: peterhuewe, jarkko, jgg, linux-integrity, linux-kernel,
	l.sanfilippo, jsnitsel

Hi Paul,

On 24/05/2023 11:43, Paul Menzel wrote:
> Dear Peter,
> 
> 
> Thank you for your patch.
> 
> Am 24.05.23 um 07:58 schrieb Peter Ujfalusi:
>> The original patch which added the quirk would apply to all AAEON
>> machines,
>> which might or might not be valid.
>>
>> The issue was discovered on UPX-i11 (TigerLake), it is not known if the
>> i12 (AlderLake) version is affected.
>> UP2 (ApolloLake) does not even have TMP module (no TPM drivers probing
> 
> s/TMP/TPM/

I will fix it in v2.

> 
>> and confirmed by dmidecode).
> 
> Another nit, the official spelling of the SOC names is with a space, for
> example, Tiger Lake [1].

I will correct this and the ADL, APL spelling also.

> 
>> Let's make the quirk to be applicable for UPX-i11 (UPX-TGL01) only.
>>
>> Fixes: 95a9359ee22f ("tpm: tpm_tis: Disable interrupts for AEON UPX-i11")
>> Suggested-by: Jerry Snitselaar <jsnitsel@redhat.com>
>> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
>> ---
>> Hi Jarkko,
>>
>> the patch is generated on top of your
>> git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git :
>> irq-storm
>>
>> Regards,
>> Peter
>>
>>   drivers/char/tpm/tpm_tis.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
>> index 7db3593941ea..4357d4ba8f9e 100644
>> --- a/drivers/char/tpm/tpm_tis.c
>> +++ b/drivers/char/tpm/tpm_tis.c
>> @@ -143,6 +143,7 @@ static const struct dmi_system_id
>> tpm_tis_dmi_table[] = {
>>           .ident = "UPX-TGL",
>>           .matches = {
>>               DMI_MATCH(DMI_SYS_VENDOR, "AAEON"),
>> +            DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01"),
>>           },
>>       },
>>       {}
> 
> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>

And I will pick your tag as well to v2,

Thank you for the review and comments!

-- 
Péter

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only
  2023-05-24  5:58 [PATCH] tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only Peter Ujfalusi
  2023-05-24  8:43 ` Paul Menzel
@ 2023-05-24 15:03 ` Jarkko Sakkinen
  1 sibling, 0 replies; 4+ messages in thread
From: Jarkko Sakkinen @ 2023-05-24 15:03 UTC (permalink / raw)
  To: Peter Ujfalusi, peterhuewe
  Cc: jgg, linux-integrity, linux-kernel, l.sanfilippo, jsnitsel

On Wed May 24, 2023 at 8:58 AM EEST, Peter Ujfalusi wrote:
> The original patch which added the quirk would apply to all AAEON machines,
> which might or might not be valid.
>
> The issue was discovered on UPX-i11 (TigerLake), it is not known if the
> i12 (AlderLake) version is affected.
> UP2 (ApolloLake) does not even have TMP module (no TPM drivers probing
> and confirmed by dmidecode).
>
> Let's make the quirk to be applicable for UPX-i11 (UPX-TGL01) only.
>
> Fixes: 95a9359ee22f ("tpm: tpm_tis: Disable interrupts for AEON UPX-i11")
> Suggested-by: Jerry Snitselaar <jsnitsel@redhat.com>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
> ---
> Hi Jarkko,
>
> the patch is generated on top of your
> git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git : irq-storm
>
> Regards,
> Peter
>
>  drivers/char/tpm/tpm_tis.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
> index 7db3593941ea..4357d4ba8f9e 100644
> --- a/drivers/char/tpm/tpm_tis.c
> +++ b/drivers/char/tpm/tpm_tis.c
> @@ -143,6 +143,7 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = {
>  		.ident = "UPX-TGL",
>  		.matches = {
>  			DMI_MATCH(DMI_SYS_VENDOR, "AAEON"),
> +			DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01"),
>  		},
>  	},
>  	{}
> -- 
> 2.40.1

Thanks Peter. I will apply this.

Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>

BR, Jarkko

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-24 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-24  5:58 [PATCH] tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only Peter Ujfalusi
2023-05-24  8:43 ` Paul Menzel
2023-05-24  8:55   ` Péter Ujfalusi
2023-05-24 15:03 ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).