Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp631988qtq; Thu, 10 Aug 2023 11:05:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IED5KnWjsdibJ2klbWOYo7h6fXcI2BFjEDV0xxZf8ynVkTxHGf/yT4yqyxX0xQ1CPa7V4IJ X-Received: by 2002:a05:6402:1e96:b0:522:ddeb:cdcb with SMTP id f22-20020a0564021e9600b00522ddebcdcbmr4193160edf.18.1691690729639; Thu, 10 Aug 2023 11:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691690729; cv=none; d=google.com; s=arc-20160816; b=pmktFTU0VyU6ZZCm79sy4RpPNRFHN9W8So+ECvY3Wn0qhvF76+NMEeoanCmBiJf0qL ilDKW47MEPh4kG7jS5p4/SIBtrjkscr0Qj8f+Evlhh+I5lcQU6/J7/NyEPgtptXn+XK1 sA3WqjGUajV3UrmBaZjWcb1Z1iRD7p0J3c+yDHOl4m26MCKCwU5s2aBdFwEFrOYru5x9 3u7nplO1GGGKhJiUqfZC/gi11k1RoZaYRhGo6CVLQiTp6+YkSBDiivFLHXPDAibWL6nD 8obVIfUOMzgPYmnlQvdKNAeZAPzE40963/nHghMy0kgiJE48eQybLfRnV8UQYs1tlE3q CUlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=+v0TmtxI1xt4+jcn0HDbj15ec+ZdXLiHI6yqDAYsKF4=; fh=JRa1J1NzmCMAgft7GWngDwVpQa2f6FbVisRoV1VX1tc=; b=HdP/4VHZ8MkE3KL2ens88dh2e4gShIlSlOWAyRVBX1Z8HzO15upgbbtGuN7G4oQ8OQ p1FLdNRbrTpixkEsG9eqPldN4hzybNJ6zE7DOKhXx+pRmhhnaRgX7LmFMow9bxsDfsRZ OP/sc5PUmWLhDXbSEPm9jDfDA6jDjOQdUoWNICGJdAAoT2TVxpMk4uc+TdzCCG9SzWjo yrFV4+3IFN1qJElyFRgc4VfDdD/6HFNUjzhaGtwQGcAXJ6F0QumHwbTJq45iiDv1VeSw 7G4Kr4lhhHOhsGv7ak14xe3eM2kqrFtS/zFlyGRAVWYrOrKkzdMhBz0iCNALK8R088ds d9/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d3uIy2jV; 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 v12-20020aa7d64c000000b005233349fb6esi1913852edr.259.2023.08.10.11.04.51; Thu, 10 Aug 2023 11:05:29 -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=d3uIy2jV; 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 S233973AbjHJRfY (ORCPT + 99 others); Thu, 10 Aug 2023 13:35:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbjHJRfX (ORCPT ); Thu, 10 Aug 2023 13:35:23 -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 A1EFAC1; Thu, 10 Aug 2023 10:35:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 37F2163C56; Thu, 10 Aug 2023 17:35:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B60FFC433C8; Thu, 10 Aug 2023 17:35:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691688921; bh=YwX3wVOuwREy+Nchdv0hP99Kg3aAymCQeLk99JQyD7M=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=d3uIy2jVnlFrhKjZMVIRwOSMbeA4D8RdLuCXnqOr05lrYmR3AyrGNzwdIk+FDq/rA CxQwF4QFTugsbXMh8fcSwsavyde78w2UiTxZmyfTvYh9otBJ23D7wdY9MgTH5sqWSO eFhqLorQbk42hnJTKtOCGcn8teGYup5C+Jpf9+ee+/ce0ZswAKQMtZIMShgabKUmIz d6KitcahmYmxhze1TEnzS6OUg08JVYA2NzS9tsndm+++WclFz9OeDRSsECRzuANlZw jIeWsGmIZkPh+izjl64awbMaC7gZ20lweusJK1YieC3OjPbZTJ67K2aD9mE4R8oFtQ bsag5YVvRT18w== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 10 Aug 2023 20:35:16 +0300 Message-Id: Cc: "Peter Huewe" , "Jason Gunthorpe" , , Subject: Re: [PATCH] tpm/tpm_tis: Disable interrupts for Lenovo Thinkpad E14 Gen 2 and 13s-IML From: "Jarkko Sakkinen" To: "Takashi Iwai" X-Mailer: aerc 0.14.0 References: <20230807140125.18486-1-tiwai@suse.de> <87il9qhxjq.wl-tiwai@suse.de> <87ttt7rkpq.wl-tiwai@suse.de> In-Reply-To: <87ttt7rkpq.wl-tiwai@suse.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Aug 10, 2023 at 6:16 PM EEST, Takashi Iwai wrote: > On Thu, 10 Aug 2023 17:08:04 +0200, > Jarkko Sakkinen wrote: > >=20 > > On Tue Aug 8, 2023 at 9:12 AM EEST, Takashi Iwai wrote: > > > On Mon, 07 Aug 2023 21:14:20 +0200, > > > Jarkko Sakkinen wrote: > > > >=20 > > > > On Mon Aug 7, 2023 at 2:01 PM UTC, Takashi Iwai wrote: > > > > > Like other Lenovo laptops, Thinkpad E14 Gen 2 and Thinkpad 13s-IM= L > > > > > also require to disable the tpm_tis interrupts for avoiding a boo= t > > > > > hang. > > > > > > > > > > Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test") > > > > > Cc: # v6.4+ > > > > > Link: https://bugzilla.suse.com/show_bug.cgi?id=3D1213779 > > > > > Signed-off-by: Takashi Iwai > > > > > > > > > > --- > > > > > drivers/char/tpm/tpm_tis.c | 16 ++++++++++++++++ > > > > > 1 file changed, 16 insertions(+) > > > > > > > > > > diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_ti= s.c > > > > > index a98773ac2e55..0633823dc515 100644 > > > > > --- a/drivers/char/tpm/tpm_tis.c > > > > > +++ b/drivers/char/tpm/tpm_tis.c > > > > > @@ -130,6 +130,22 @@ static const struct dmi_system_id tpm_tis_dm= i_table[] =3D { > > > > > DMI_MATCH(DMI_PRODUCT_NAME, "Laptop (13th Gen Intel Core)"), > > > > > }, > > > > > }, > > > > > + { > > > > > + .callback =3D tpm_tis_disable_irq, > > > > > + .ident =3D "ThinkPad E14 Gen 2", > > > > > + .matches =3D { > > > > > + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), > > > > > + DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad E14 Gen 2"), > > > > > + }, > > > > > + }, > > > > > + { > > > > > + .callback =3D tpm_tis_disable_irq, > > > > > + .ident =3D "ThinkBook 13s-IML", > > > > > + .matches =3D { > > > > > + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), > > > > > + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ThinkBook 13s-IML"), > > > > > + }, > > > > > + }, > > > > > { > > > > > .callback =3D tpm_tis_disable_irq, > > > > > .ident =3D "ThinkPad T490s", > > > > > --=20 > > > > > 2.35.3 > > > >=20 > > > > As almost all issues are with Lenovo, I would instead just put: > > > >=20 > > > > { > > > > .callback =3D tpm_tis_disable_irq, > > > > .matches =3D { > > > > DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), > > > > }, > > > > }, > > > >=20 > > > > And delete the existing entries with vendor as "LENOVO". > > > > > > Yeah, that will relieve pains better, too. > >=20 > > Please do it if possible then :-) > > Do you mean that I should resubmit a new patch? > Honestly speaking, it'd be easier if you can do it directly. > I'm merely a sort of messenger, I don't own / test the device by > myself... > > But if inevitably required, I can resubmit a patch, of course. I'll submit a patch asap, and cc you. I put the conclusions to the description. BR, Jarkko