Message ID | 20230524055815.10165-1-peter.ujfalusi@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2628488vqo; Tue, 23 May 2023 23:15:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gyHrCXi+0qbAgtTgJFBFPmDBEke6cKVmZjCURwKgIjgAe/Zc06J23haiI1tNCAiWh0QFy X-Received: by 2002:a05:6a00:b50:b0:640:defd:a6d5 with SMTP id p16-20020a056a000b5000b00640defda6d5mr2042736pfo.12.1684908933864; Tue, 23 May 2023 23:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684908933; cv=none; d=google.com; s=arc-20160816; b=jHVtiNRmEK8sMGsqiH92ihLfht2qNyeANXP58OEwy1VquKenIqikLekXkMrWzOmbB8 RWwJqcgjZjlKyWffquaLRDXz4wJ+5ocIZMxIIJqPJyKV5rTacDmcTF1kkNA2kXGxsSOp nmKXddSXuRvaxTzx42xrK8jUyJzIzodNY4nFVrkchErm2t3i06sQWXkhYWNEx/Ib0POd etUIxIrZtGbzWwaNoO9v9pYCG4ytsKy4R1f1x3op1RJlp9xfEp1A7HndoKG6gyUmAbV4 zbGDUG4TVvFeMLhF6pOn7rUtOtkuIiow9M9Gm+NuLZpbSi59RIhNufI0eSnPvCxZwzre B39g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Py3k51GBNAIiSuiTQckGtXuMfse0xGlKZ46lBLbpB5A=; b=BFnZbyJ74uIMouK6UNlCkRtAkyGNO1MfyUp/kDRhZScx2FUGSnwKjjBfESuqFt2qMu uVySSj+bqhuhJ8rAbUBws5VPQPjnzJd+HRbhlRDLRwy8UO+ofQFWvtNVCzlSD9NAbpRb OPuKFBMLRmIL7PQSAsrXsEU44OTp95qzF2+YLmmCaycgFKTmmnEEhnlsPViAjrepragf spH9XfI3pUxX2B3siySzX0wLOcYmzIeuvqbZICyOdUXLYE3Fy1X0SD7fHxj2Ofq5+Zke Vz9gzpFxFxOayZp3n9F511FKYwAYVnsY+cHJQGAtriDLfR1X/HxDLmavnogyIHMf7NEa K2wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C4+lc4zy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k190-20020a6384c7000000b0052c3f0ae398si1368561pgd.158.2023.05.23.23.15.18; Tue, 23 May 2023 23:15:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C4+lc4zy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239531AbjEXF5U (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Wed, 24 May 2023 01:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233759AbjEXF5T (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 24 May 2023 01:57:19 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE831132; Tue, 23 May 2023 22:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684907838; x=1716443838; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=O2khWCZpYpaAuiJUEy1FdFjA3ykBxyXgTWC0NJSEmZA=; b=C4+lc4zy4Kb8ZH1xra/2GXw3sfN36YRL2mz/QgheTdgxiXocRPgzbJ2P eyrMAmVgUZ9IoAfGybOycAehTVMN3DwA7EbfptGEM5hWmORF+oViQlexS paVDzKCdjw87cf7p5cXe4blCVudyIpu/LzcTDXGFhnC8JQPkcnDj6IXP9 BTG5LtaVhbQQ7TtJlTiOilFA3zlhaemSlMgrYnHkt4OGndr+3Etji579S Mw8ga9vUaebarAH6iHTwZX4BqsqubNy/T9QkMJpI7jvBPH9P47VBTt1gA Ut2N3HS0BTiobjJPkRNbtu3OzafaCXACaXqIr7Mg50UA/3N6jRN3oq64e w==; X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="381711522" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="381711522" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2023 22:57:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="769310141" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="769310141" Received: from mhakkine-mobl4.ger.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.252.53.214]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2023 22:57:15 -0700 From: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> To: peterhuewe@gmx.de, jarkko@kernel.org Cc: jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, l.sanfilippo@kunbus.com, peter.ujfalusi@linux.intel.com, jsnitsel@redhat.com Subject: [PATCH] tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only Date: Wed, 24 May 2023 08:58:15 +0300 Message-Id: <20230524055815.10165-1-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766755070192401101?= X-GMAIL-MSGID: =?utf-8?q?1766755070192401101?= |
Series |
tpm: tpm_tis: Narrow the AAEON DMI quirk to UPX-i11 only
|
|
Commit Message
Péter Ujfalusi
May 24, 2023, 5:58 a.m. UTC
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(+)
Comments
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
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!
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
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"), }, }, {}