Skip to contentSkip to conversation

tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only

PATCH Superseded Peter Ujfalusi 3 participants 4 messages May 24, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only

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")

---
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(+)
drivers/char/tpm/tpm_tis.c +1 -0
index 7db3593941ea..4357d4ba8f9e 100644
@@ -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"),
 		},
 	},
 	{}
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw

Dear Peter,

Thank you for your patch.

Am 24.05.23 um 07:58 schrieb Peter Ujfalusi:

Quoted 6 lines

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/

Quoted 1 line

and confirmed by dmidecode).

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

Quoted 22 lines

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")

---
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(+)
drivers/char/tpm/tpm_tis.c +0 -0
index 7db3593941ea..4357d4ba8f9e 100644

drivers/char/tpm/tpm_tis.c static const struct dmi_system_id tpm_tis_dmi_table[] = { · line 149

Quoted 7 lines
drivers/char/tpm/tpm_tis.c +1 -0
@@ -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"),
  		},
  	},
  	{}

Kind regards,

Paul

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

#2 lore raw

Hi Paul,

Quoted 10 lines · Paul Menzel

Dear Peter,

Thank you for your patch.

Am 24.05.23 um 07:58 schrieb Peter Ujfalusi:

Quoted 4 lines

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

Quoted 5 lines
Quoted 3 lines

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.

Quoted 5 lines
Quoted 2 lines

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.

Quoted 19 lines
Quoted 19 lines

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")

---
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(+)
Quoted 15 lines
Quoted 12 lines
drivers/char/tpm/tpm_tis.c +1 -0
index 7db3593941ea..4357d4ba8f9e 100644
@@ -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"),
           },
       },
Quoted 1 line

      {}

And I will pick your tag as well to v2,

Thank you for the review and comments!

Signature · 1 line
Péter
maintainer Reviewed-by on v1 1/1
#3 lore raw
In reply to Peter Ujfalusi
Quoted 39 lines · 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 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")

---
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(+)
drivers/char/tpm/tpm_tis.c +1 -0
index 7db3593941ea..4357d4ba8f9e 100644
@@ -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"),
 		},
 	},
 	{}
Signature · 1 line
2.40.1

Thanks Peter. I will apply this.

BR, Jarkko