From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C89CC77B7A for ; Thu, 18 May 2023 18:38:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229988AbjERSiL (ORCPT ); Thu, 18 May 2023 14:38:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjERSiJ (ORCPT ); Thu, 18 May 2023 14:38:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBDE5E5A; Thu, 18 May 2023 11:38:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1F73C64477; Thu, 18 May 2023 18:38:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09B17C4339C; Thu, 18 May 2023 18:37:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684435080; bh=r+ClYm7GTru2kk362VSMk6GPkzRzYA5gxt+SrnLlS+8=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=rlRlzMWWHdRvAFU4VZW8wbNtz9nY2h3t+x3ZUS31ThHm3Qns04PWlvwupH8MPrAVa VP3kmZje7f0TbnusH1O8DtC+lKEDf55reX+IfUhH4vUbYD9/UhLkJwGpodQstbheEY MnmHYvG9i/i78904SKjNourhsFGx8gA793LTcxH0g9M9iLlYwbC8io9IShaq+ixrCc FZt+QRrwIKUkKagJr5yttJ6DV8jwffzqVSDoeETGFGgj6yKko49dYCDJsoLXHqZLbA wjQVmnEdrpLzob8jovr+tnjC/ZcgDfWy5QuCY8zgoE77MOSILLUfzhCISUyMK6j5dC sWdPrKhfIC0Zg== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 18 May 2023 21:37:56 +0300 Message-Id: Cc: , , , , Subject: Re: [PATCH - for 6.4] tpm: tpm_tis: Disable interrupts for AEON UPX-i11 From: "Jarkko Sakkinen" To: "Peter Ujfalusi" , X-Mailer: aerc 0.14.0 References: <20230517122931.22385-1-peter.ujfalusi@linux.intel.com> In-Reply-To: <20230517122931.22385-1-peter.ujfalusi@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed May 17, 2023 at 3:29 PM EEST, Peter Ujfalusi wrote: > 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") Complements -> Fixes > 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, p= lease > 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[= ] =3D { > DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T490s"), > }, > }, > + { > + .callback =3D tpm_tis_disable_irq, > + .ident =3D "UPX-TGL", > + .matches =3D { > + DMI_MATCH(DMI_SYS_VENDOR, "AAEON"), > + }, > + }, > {} > }; > =20 > --=20 > 2.40.1 Reviewed-by: Jarkko Sakkinen BR, Jarkko