Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2087834rwd; Wed, 17 May 2023 05:44:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Ega35FwsQCdR0mtOy4cVXmsUouRD/nqc4TI0l0qmQLo4gL3WzuD0pXddSQNRA1Smp1XDV X-Received: by 2002:a05:6a20:1605:b0:101:3c60:6794 with SMTP id l5-20020a056a20160500b001013c606794mr2626014pzj.2.1684327449807; Wed, 17 May 2023 05:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684327449; cv=none; d=google.com; s=arc-20160816; b=CZ55Ker0fzEWjpPg6maEsRnhX+ICo2v68RkvruPZ57HKuHG2MPXDxrroBfKmRFi+u7 xf8+Fy31BPoA0cBeuB8IzU8AxwDHXjL/ZlHEwSAwR0kfi6M3wWQRR/gjzdk4dc3epnIF zKqMJPDKuLnfrXofGzvyQ0VRJnDApvLlBABiV/D/sQNnxisv1MX8p7Jsa3TXEo5qH/oR jKBN1NdKbhyy7T0DZe2sUZgW2froD7B7Ryp9sw7hzobtlcPnNbwzKX2rAzIuffDmnIKo 1MKSxpYGF3R81JxQTmYj0YLN24FxNyOBLcYEozqOeVPKcrkdi/f+XIBIKaXcRyIc7Y7Y Fq0w== 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=uB5AYYYIHjj3RwoqQoVIliW/dsrJOc7LWuraVY1Hy8w=; b=EHEUV5UUJQcDsipfnorOTyvFNqCvduYelEmfKRSvcSfP7YFw/nVHBQV5whC1YxF3Yg /5S5FZHKkJnjt2fcIB/gMhSx/wZxWOVmt2Z6qgHzY0AjSqQaDn3qvs1djvYwdXZBxN3W XACHvYcuQJHeSsEukpgh2os/F5D2jz4m13dEtYpe1TroRfRtfORuVMwmS9LYyUoe5LSv bvR5jMtyPm27Raoft6mLbG6VvMuF8JW0dj2KrGdSYmw3m6LE5s7XpglAsgj0wL3kEgKM rGbls2vDkOHtYPtjcZipkBFvtfk4L+sqTY57BFArW9K1cjuR/0Uuk3V2T+wVVWH0OPht m0/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hx7hLmch; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a636d07000000b0050f636b4d40si21111682pgc.373.2023.05.17.05.43.55; Wed, 17 May 2023 05:44:09 -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=hx7hLmch; 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 S231499AbjEQM2m (ORCPT + 99 others); Wed, 17 May 2023 08:28:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbjEQM2k (ORCPT ); Wed, 17 May 2023 08:28:40 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBF6B10DA; Wed, 17 May 2023 05:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684326519; x=1715862519; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=X2f39L4vZwZUOK/jkj4uPaCR2SriTj538cYcK+gs4jo=; b=hx7hLmchS1rMD/O8DpfUT2UC+A91YI09d3x15i618uekizG3On7Sn2L1 ydJhINEr0oZi/QfLm4qn7M3jsIIvT/G2jdcyXNToIC04qEXTEGFTgpO/y HsD59ijFc8f+iBFRyP3vagbVxphUxb5ebOtCaLI7mxDoyxRYzTIlBA+IM UhYxeiBqAB9Yx20gw+kw551WsMTe8qYkNBhfXtKr2L69rXVV2Elv8ctGx BrEwQOUFxQBHJIWDOth7PuyV0QDDdrkGcAG8D0Tmu6BhaGcm27DnzhUqO vvorbJI327KHVImdHIlFk6QggqPVtzc9wvGU4AqMlr4IRGDzoa3trSw1s g==; X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="415156753" X-IronPort-AV: E=Sophos;i="5.99,282,1677571200"; d="scan'208";a="415156753" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2023 05:28:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="652213946" X-IronPort-AV: E=Sophos;i="5.99,282,1677571200"; d="scan'208";a="652213946" Received: from fabiobar-mobl.ger.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.251.219.163]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2023 05:28:35 -0700 From: Peter Ujfalusi 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 - for 6.4] tpm: tpm_tis: Disable interrupts for AEON UPX-i11 Date: Wed, 17 May 2023 15:29:31 +0300 Message-Id: <20230517122931.22385-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,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org The interrupts initially works on the device but they will stop arriving after about 200 interrupts. On system reboot/shutdown this will cause a long wait (120000 jiffies). The interrupts on this device got enabled by commit e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test") Prior to this point the interrupts were not enabled on this machine. Complements: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test") Signed-off-by: Peter Ujfalusi --- Hi, This patch applies on top of mainline since 6.4-rc1 takes about 2 minutes to reboot on this machine, linux-next have e7d3e5c4b1dd tpm/tpm_tis: Disable interrupts for more Lenovo devices I'm not sure if I shouold send this on top of next or mainline is fine, please let me know the preferred way to get this to 6.4. Regards, Peter drivers/char/tpm/tpm_tis.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index 7af389806643..aad682c2ab21 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -122,6 +122,13 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T490s"), }, }, + { + .callback = tpm_tis_disable_irq, + .ident = "UPX-TGL", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "AAEON"), + }, + }, {} }; -- 2.40.1