Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1282410rwl; Thu, 10 Aug 2023 08:57:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJzW/U2FPGXkkbZhgXtNuHh2UBN8qIQ9BValdwUAeyPpSE47k+YPwsN9wuFGnK0IWzgdVk X-Received: by 2002:a17:902:9890:b0:1a9:b8c3:c2c2 with SMTP id s16-20020a170902989000b001a9b8c3c2c2mr2574348plp.37.1691683050453; Thu, 10 Aug 2023 08:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691683050; cv=none; d=google.com; s=arc-20160816; b=SVeDUWvoLJIiTXlHlEjSmsh5LIEpzHzGoodjWwkFdiqJubrO9CtgbQCkltu37Y7/3X aWNaMIvEyYgnbZuZXyxvYMTrxtY1yzA85ssRYzZsKN/wBITQHeLtX8nKo80mI9JV1FNJ 07MUljyg8O7sg/H7v3mDYo0tgN1sFz4xZlRBTXU7/XLV/K9Y27GXoQUXLH+lmPdMUHvD Qlwu9ak0PLxkTTizMwxMSz3f1UJzh9ItUHb4SXVJzeuOUUHwyflypvM1h3ccgDSKJ/7e goS+9bktQX0f8Xd9xU5eNmvlG2HPSbU2u+ADtWZ124nuZTnbNs8o8+uBZCeZrO9IH83H H5Uw== 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:subject:cc:to:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=h74iLLXwiEYyzFFmxVN9fkQUVG3Ajc0CMc64HYQeHv8=; fh=Zu8GhmmIN4dcnlXXV/4+WKmJabE5mMeu/IljyCztja0=; b=Yn9EfleIGdP92X7jlZMT58xJrTDcfgG5Io5MdpU5SnoEQxAsuAGaGcMm4tSWGKJc7U 6bIkGd+ZL4vkgA4uhQPye59RNHjulce6hIx39OPc6855/BIXc6kzCKlXCmZOn4Pvl3nD 6ea+zdgd9/1xj61SvqI0Vz5GrKZ1V2bPgnHpQFpyL1G8go36fNzvWxDp6KRQUAroBrlU GMla0/62ctgZCRQ9/qRj+JVQdJ1GBjiT3Sc16O0kxY9Xsonpg9AsJVP3lG16rYTvIaCg wFAxmm31VN53MpD30EEzoJ10PDzx1nlJ33HiZ7973L8SSIAJARpXk+VzvhwkO+lXotWq jvVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iesVk1Bx; 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 n8-20020a170902e54800b001b87b716f87si1702777plf.329.2023.08.10.08.57.18; Thu, 10 Aug 2023 08:57:30 -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=iesVk1Bx; 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 S235779AbjHJPIL (ORCPT + 99 others); Thu, 10 Aug 2023 11:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234167AbjHJPIK (ORCPT ); Thu, 10 Aug 2023 11:08:10 -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 54B362686; Thu, 10 Aug 2023 08:08:10 -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 DE35765F37; Thu, 10 Aug 2023 15:08:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82363C433C8; Thu, 10 Aug 2023 15:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691680089; bh=PA7j74qL/UgGep611+zX3UVfAs2lsTR/6dXOwVVek+A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iesVk1Bxw3h6zERnfxs/qN70BPjAwMNYoUO7k8e4lFgdbDpXYAx5CbsgO/e4Yr2v3 XsaftaIKdfb1k5dS23ZHLU1/eFIC0h8wYo7KXQtzzg0yob/g6wIdLZkcpzMjoPbdtv 2+T0dmOLjWs4hZ20hPELAJx2sKQAhhnJ9L6CKJuK9g9ZFQ4AG/y6vO6c0lrpWiV2Yx U6+qPrBCgSVQWQLIkM1A9Nd2vocfO39JdqwgaBLBQyxI2BZ5SKnvQ/nP+0nVS56r7T WhYMwZglnhHXjfBZ87yyBv769vdh+OgcIJjEiboVlatqm3AuyGEi2P3efQ2qoCQqwQ 5+QZcoM7HsAdw== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 10 Aug 2023 18:08:04 +0300 Message-Id: From: "Jarkko Sakkinen" To: "Takashi Iwai" Cc: "Peter Huewe" , "Jason Gunthorpe" , , Subject: Re: [PATCH] tpm/tpm_tis: Disable interrupts for Lenovo Thinkpad E14 Gen 2 and 13s-IML X-Mailer: aerc 0.15.2 References: <20230807140125.18486-1-tiwai@suse.de> <87il9qhxjq.wl-tiwai@suse.de> In-Reply-To: <87il9qhxjq.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 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-IML > > > also require to disable the tpm_tis interrupts for avoiding a boot > > > 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_tis.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_dmi_ta= ble[] =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. Please do it if possible then :-) BR, Jarkko