From patchwork Mon Aug 7 14:01:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 13344297 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 2532FC04FDF for ; Mon, 7 Aug 2023 14:04:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjHGOEM (ORCPT ); Mon, 7 Aug 2023 10:04:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234751AbjHGODF (ORCPT ); Mon, 7 Aug 2023 10:03:05 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17D9C2697; Mon, 7 Aug 2023 07:01:32 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 913E91FE02; Mon, 7 Aug 2023 14:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691416891; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=8YiVCjwWL8Hw6O2ccp24AagZioe0mi6UgFUQbptbfTQ=; b=ojHriN3JOY/bSBqLl4QSvaLU6jbFDGQGR0v2JeL2AKiZsLR7dRarRb97H4wY1Zrs6DMr9/ HxLizwI6NeLgMFPwAnhRhlO95xOKpp1IyvNt7t4E7wbtCPvhFxLH2XRBxbB9qfPayWPavN OUqS7qiJt09MSsJ7Yts01g8YuV0PUQY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691416891; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=8YiVCjwWL8Hw6O2ccp24AagZioe0mi6UgFUQbptbfTQ=; b=Y+sP2eHxATKVQfT5cS0Uy/ZWbDN6cZQSzqvC0PksykMgKYZVWkPIXKZuxwhTmk4czYH6Qz +WpohGqTxSlVSTBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6128513910; Mon, 7 Aug 2023 14:01:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gq62Fjv50GQvLAAAMHmgww (envelope-from ); Mon, 07 Aug 2023 14:01:31 +0000 From: Takashi Iwai To: Peter Huewe , Jarkko Sakkinen Cc: Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] tpm/tpm_tis: Disable interrupts for Lenovo Thinkpad E14 Gen 2 and 13s-IML Date: Mon, 7 Aug 2023 16:01:25 +0200 Message-Id: <20230807140125.18486-1-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org 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=1213779 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[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Laptop (13th Gen Intel Core)"), }, }, + { + .callback = tpm_tis_disable_irq, + .ident = "ThinkPad E14 Gen 2", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad E14 Gen 2"), + }, + }, + { + .callback = tpm_tis_disable_irq, + .ident = "ThinkBook 13s-IML", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo ThinkBook 13s-IML"), + }, + }, { .callback = tpm_tis_disable_irq, .ident = "ThinkPad T490s",