Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5164516rwd; Tue, 23 May 2023 19:50:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ48PGjHDtvYd/e6QtSYuwKv4s28dRfbWvMArcWg0MNAFGWelVlaIo2dNrm8dkhM5MdEAvvQ X-Received: by 2002:a17:90b:4397:b0:255:5b1a:be04 with SMTP id in23-20020a17090b439700b002555b1abe04mr9073241pjb.4.1684896634011; Tue, 23 May 2023 19:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684896633; cv=none; d=google.com; s=arc-20160816; b=FcxKgYatDij/5J9u1p2kYqOAl19khjQA9r1i7BlK0bvlRSHFMNaUgGfJYRLjY9HYRI kR/ax5SSBoCG1kzHK1wJ6c56IbB2kmMa8kgvtrlbFslL8Ec88jYS3BrKOCHVhzNsq4Lm WV89uZHzMMcLMRQIfy1cvxLnZ8rGVY4pN3+FeJ+h2FpgC5oLLVgmqnS6WJqX3T7eUTpt rvjybagIBc2cufzfJqaSsFev3aw2wPOgikMK4jhYaOx5kLp33H0EMSBVO+GjiKA/4S7u bngEVoKJTSnVMIg3uTFs+ahMWrxL7L/+cVPNxMB40zdDHDuAYj47vOviV8s7QQeJl0Ig HqZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=yoPJE2F2RtU5xQH6awEMNkFB8N7AY8+rzgJBCCTWtwU=; b=myNNrSz1uhQHTSzJ0H6gS/8AnnmQdoYZK9GL41mxlvjXk+rWiJ5nD0qJBO8qhRoVJO 3ZiPNQM+l0GY/4EwPzrAjCsz7ChJ/qYl4sAz/69nMXzFUegtVJdjsJnMCrYUg2rBm5Ow MB/qnHGPnPrvnZ0i/Or4YHU+RlkxgacLAN3NdU0zwx0Seu7FLpQaGcQnCbbGBDE9MGBr ufyTkJHQ/yK7KOSEKgyR3PcGDAzyn/lHGsDzxbtMU1M1lXZsYmUNBUorzHxM4lseDjTq 8nAocqYgcz7M5V5bREWk0o2huYqaHAvVsKERAH1IMc37o4v+ShCSsmeEo8J+lrxwIPIe aTvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C1zYj5ES; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bb18-20020a17090b009200b0024e43558fbdsi432187pjb.129.2023.05.23.19.50.19; Tue, 23 May 2023 19:50: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=@kernel.org header.s=k20201202 header.b=C1zYj5ES; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238905AbjEXCZE (ORCPT + 99 others); Tue, 23 May 2023 22:25:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbjEXCZC (ORCPT ); Tue, 23 May 2023 22:25:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57619C2; Tue, 23 May 2023 19:25: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 DE9D06327B; Wed, 24 May 2023 02:25:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC511C433EF; Wed, 24 May 2023 02:24:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684895100; bh=BcDIiC2FzTaDGJ/pX1DSj10DEtcdQm/AsWrIB+h169U=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=C1zYj5ESv7YSFW2uv/Cs/jrF7Ix48tTaLCjUTRc1vs6N54BKD/pphUmLN62xxZBV9 HFRTdfAFChJqYUnq1SiQ09dQm5817S9xk92t2czBd6ztE2Imcfb/L5uLsnjYkH3Yxm KwxMjm0gjY9muBNRnbyAZENOGwCQWavk1DFORh9LXyySZFpbpnL1YCPiPMKO4b6Ou/ LF6HDlO2b68jHFM86N6Hv/Zm/gvwCcocYZhbGp9xcoDKabR7oSqxqC7VCv/H+q/aAo 5xgnrLrKafEz6RES9DXAYET2eXQOwf3NbMLY4bp4nx2uis00J6VLqgDkbre3tsEcPy PuxNv/R96VLrA== Message-ID: <4c27b79aee9ed9578fb7f00b7a99dc5ff819ca02.camel@kernel.org> Subject: Re: [PATCH - for 6.4] tpm: tpm_tis: Disable interrupts for AEON UPX-i11 From: Jarkko Sakkinen To: =?ISO-8859-1?Q?P=E9ter?= Ujfalusi , Jerry Snitselaar Cc: peterhuewe@gmx.de, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, l.sanfilippo@kunbus.com Date: Wed, 24 May 2023 05:24:57 +0300 In-Reply-To: <432df3cf-da16-1f2a-02dc-e2c371c1f29c@linux.intel.com> References: <20230517122931.22385-1-peter.ujfalusi@linux.intel.com> <432df3cf-da16-1f2a-02dc-e2c371c1f29c@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2023-05-18 at 23:24 +0300, P=C3=A9ter Ujfalusi wrote: >=20 > On 18/05/2023 21:53, Jarkko Sakkinen wrote: > > On Thu May 18, 2023 at 9:50 PM EEST, Jerry Snitselaar wrote: > > > On Wed, May 17, 2023 at 03:29:31PM +0300, Peter Ujfalusi wrote: > > > > The interrupts initially works on the device but they will stop arr= iving > > > > after about 200 interrupts. > > > >=20 > > > > On system reboot/shutdown this will cause a long wait (120000 jiffi= es). > > > >=20 > > > > The interrupts on this device got enabled by commit > > > > e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test") > > > >=20 > > > > Prior to this point the interrupts were not enabled on this machine= . > > > >=20 > > > > Complements: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test") > > > > Signed-off-by: Peter Ujfalusi > > > > --- > > > > Hi, > > > >=20 > > > > This patch applies on top of mainline since 6.4-rc1 takes about 2 m= inutes to > > > > reboot on this machine, linux-next have > > > > e7d3e5c4b1dd tpm/tpm_tis: Disable interrupts for more Lenovo device= s > > > >=20 > > > > I'm not sure if I shouold send this on top of next or mainline is f= ine, please > > > > let me know the preferred way to get this to 6.4. > > > >=20 > > > > Regards, > > > > Peter > > > >=20 > > > > drivers/char/tpm/tpm_tis.c | 7 +++++++ > > > > 1 file changed, 7 insertions(+) > > > >=20 > > > > 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", > > >=20 > > > Is this the product version returned by dmidecode? If yes, > > > then the entry could be made more specific by adding a > > > DMI_MATCH(DMI_PRODUCT_VERSION, "UPX-TGL"), and only disable > > > for this device instead of any system that matches the vendor > > > AAEON. >=20 > The version is used to differentiate the revisions of the UPX-i11 > boards, and this issue present in all revisions. >=20 > > I can squash this to the commit I pushed (it is not yet mirrored > > to linux-next), if I get the dmidecode info. >=20 > System Information > Manufacturer: AAEON > Product Name: UPX-TGL01 > Version: V1.0 > Serial Number: Default string > UUID: a300091d-fb1c-ce1c-1d30-0007328efc11 > Wake-up Type: Power Switch > SKU Number: Default string > Family: Default string >=20 > I have used this description as it it is used for SOF, probably > DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01") > should be added? >=20 > Oh, yes, the product name match should be there, we have TigerLake > specific matching, so SOF is looking for AAEON device with TGL. >=20 > Sorry for missing this. I sent a PR with the original patch because I know that you've tested it and it has worked for you. BR, Jarkko