Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3398718rwb; Mon, 7 Aug 2023 12:54:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwIDWWJQXNYhjsi04VeT3NHIkxmrZP8N/jF3IQ0/2pXVPmTj+yBtvlweM2KUNxyRDCSMaR X-Received: by 2002:a05:6512:12c8:b0:4fe:1e74:3f3a with SMTP id p8-20020a05651212c800b004fe1e743f3amr8701194lfg.58.1691438096899; Mon, 07 Aug 2023 12:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691438096; cv=none; d=google.com; s=arc-20160816; b=s/OYwTvqp9yxYH5MP2IjI0qMfnVYTrJahPqYg3os/QvRcwGtznTWEhyVCTJtfuQ21B IQrXBd54IYjUhnj9XaOxcGzUTVyGmj7H/QgX/MJ8neNhXtJPEaV5CsRV7EZkECFQcwBI KoX6qtr8zcUciII5n+QKOr86lOy95U1Gjtrzbhi9CYC7oXMHzuY3B4GndCVVC+5WWpv1 nNvUKpGV9rrbAU3ElVlA6UVmemRUbeufzaDoLIZx87mGOtuxZuLuHcsExBOScyyQaV6U l+Hc+FYa9lHQeZpfzxh8HTDW19ccqPtM5mVBH9rZGofAxP5ty6AILYyqRnwraffScRei RJeA== 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=7FzeLFnGalFXK0nmSEX5fyD9HUuDPZrPSiTDE4fo7n8=; fh=BU5s0Jt+kVCqN9j0g2OS1X2i+Jr5WlkEQYiOIqtZqHA=; b=z1qrSh77XUpieBddjyo5+CbwyarQ/0HCmorlV9oTw3YVKJBbFdps0j3PdyQ0uVXrGZ WNM+BvKAXRVvfkBMxjqdimz3zDCJVkFeuaiB+KlN5kPwxXZooIxICY36hLpikisMXqc3 j2oHfynuw1HFNI8iURbh2Xbr0Fdv+imskCvjKEciFrL2geA+pmGDcKbVbQkTSLkVzk1L ZnB0dlgoqWGco8doC8eIDuvn8GyPvVkzG3kxbnjPeO+XvEF46yuGPGp4zTcnQDJMeINz W8i+ZKnQqhAI4SGhGQ2DRG32AE3oHXeTULf4A9ZRqk+8k0KCLKb0XIOyxj7ms/5PgBE7 T5gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pz4kyLNA; 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 j6-20020a50ed06000000b005232e02b60bsi3327669eds.39.2023.08.07.12.54.32; Mon, 07 Aug 2023 12:54:56 -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=pz4kyLNA; 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 S229720AbjHGTO0 (ORCPT + 99 others); Mon, 7 Aug 2023 15:14:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjHGTOZ (ORCPT ); Mon, 7 Aug 2023 15:14:25 -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 9C36C10F3; Mon, 7 Aug 2023 12:14:24 -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 3228662179; Mon, 7 Aug 2023 19:14:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D8ABC433C8; Mon, 7 Aug 2023 19:14:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691435663; bh=YLygv1jz0ItPr9sKEjOdeVJHuuSFuvGgES9+tIv2Dzk=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=pz4kyLNAU/YGow5VaNzkzlG3y6Y1bs9NTwM2T1r46it8+3ROEFqI47CyKC/tTL65B E/XpNY/UAem2dnMtCerVKGg05LOqD+pfGlFW6pqC/c6KnZtIsn04G9Be7PgwBowsdb GhvUsr/CoBc1w90aj+NK8qRsqavcaJv8dFZlI0TY1hvVQpgLOiktv2TZcp8yuMEuD3 TuW3fH4PecFCWY3bd7xo3ptdfYm8AaMN4uq6jI6oCe0YIrToQAtpahesaDdxfZbny+ Pfeg6wQf33zcMUlpUv/4mZtxAFzF0hEYE7cJCcEqENpm3R1zKaYvuICUvzkRWh2kaH o5hoG5AWwpTfQ== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 07 Aug 2023 19:14:20 +0000 Message-Id: Cc: "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" , "Peter Huewe" X-Mailer: aerc 0.14.0 References: <20230807140125.18486-1-tiwai@suse.de> In-Reply-To: <20230807140125.18486-1-tiwai@suse.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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_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 As almost all issues are with Lenovo, I would instead just put: { .callback =3D tpm_tis_disable_irq, .matches =3D { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), }, }, And delete the existing entries with vendor as "LENOVO". BR, Jarkko