Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3124700rwb; Mon, 7 Aug 2023 08:35:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJBxVlwgdHsobjNEJJZsU55ZrT6jvW3X9ioYk4qljfzJ2+g6z19QBaoHozFEVGcoFOopj2 X-Received: by 2002:a17:906:3153:b0:99c:bb4d:f590 with SMTP id e19-20020a170906315300b0099cbb4df590mr5800656eje.47.1691422524266; Mon, 07 Aug 2023 08:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691422524; cv=none; d=google.com; s=arc-20160816; b=vD8nWx1OMJPYK2FALLn3M34OEVa2YxTwOonuEVgv1fPdyCRudj6RVZpBI4ufmA2w8p unIh8IbJDZVj/UV6WBVoO9fdsZ0rzvz6vZlT9+v6ElqNjtcp7SFCeUqyDQnG1ocRV0jg sDE61MN0fBcp5wvw8ObUhTN5l/RyEOFAtjpHNij0GrOdwyJBO4bPbhoLTgu/HYOiPbgf n4iIlA9oCXOCTmCyhPfEAo7gPpPr/B1kj1urlXGOatt4x9JBnj5cp+TFNLvfLH0RdvJu emoeF1xkD5lWZ/V8wtgZip8edDx8Gg5UCTpHUA/nMe09IPifvLbSibN3Z8G1oFqtDM6N 00QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=8YiVCjwWL8Hw6O2ccp24AagZioe0mi6UgFUQbptbfTQ=; fh=8YNU7+BaH9CzQI0gaKhrGp8AXLCWUt6KQW2ZdCb/eSc=; b=LtVIS2sUv64A/gJxFpE1naTDxZ6bY3IkarX3ww4xDhTwYVRpCFENShGKERqRz9FLIf lNU35GOGMJ8qpJ57B9s9UWNmaCs1kBWWEAWe9iLUDYrpEaSbzoTYjS5O5WdqCzfSIQf6 tjU1LSHG4wNTbAsvV6jriflx+V+m/gLGYEM+VqS9BP2nWJbwI+g4diIJkfXpAtwVsdwW XiXsVbUnMe/GUessfQh2gfBsbXMhMsvds90N958ta3A0oZTFkocC3ZZX+3D37LWLVNkU agT1ml010IBG5uWkZPU+8cTe7FQubxIAZWeSQWj1YZmlUQ7FhqCW+rKjWNnqZiY2F/p3 gWBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ojHriN3J; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Y+sP2eHx; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a170906394700b0099364d9f0edsi802219eje.402.2023.08.07.08.34.59; Mon, 07 Aug 2023 08:35:24 -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=@suse.de header.s=susede2_rsa header.b=ojHriN3J; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Y+sP2eHx; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230416AbjHGOES (ORCPT + 99 others); Mon, 7 Aug 2023 10:04:18 -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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 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", -- 2.35.3