Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4816345rwb; Tue, 8 Aug 2023 14:31:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjOjJmoUPQePJeX6aCg331+I0e+2FjQ2FoC9jGmlxLDYmxnpRbMmBxvWUKFoUoOw0RCMZi X-Received: by 2002:a54:470d:0:b0:3a7:1e86:e83f with SMTP id k13-20020a54470d000000b003a71e86e83fmr936346oik.51.1691530312497; Tue, 08 Aug 2023 14:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691530312; cv=none; d=google.com; s=arc-20160816; b=WUDrEhPXdU6NGZcq9oYQ7fP/B9SZvNUgi1MaVjR1jqOppsKo+Tcuz8erYkqk6/jUtp di0NW/k5xcycyG5Kb5WNeHhBG6Ks1hl/LChEdUJvpVCh+tX5vhtqlH5F1YktN/pXUp+N JdI+aUYq0Q9sx8UYbK7vl0NZkEoZ3myWu4mncqdGXrk/uQBDidATWzwGzwP6rYk7pY6e auH2fMNN1C1GLEvwt3mB5d+ov+3PlIzSPoOVbiDta83ALxsHUwfOnx23n0iW5iEs6LHv 0U6kOtzBEAbwO5HM7uai017s4GaZD/d4ynAhxmRfSpfld676gwi6ekQ5cnwhCxaBnFQt U4Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=Q3MK00CjNLL1ZfC7N82ZXn6nuzBSj9WikxOJJsXFTxE=; fh=FLhE+kmXidXm2K/WbW50dVJQxAi8B/XxRHYWM0OFpuo=; b=arZKWDm6RDkWc+IYQhtY1xoprpjNc+rR/H+dC1kFfkvtYLeACgy2ooA56X1ri0x6ke zNxgsEuCgoYcdCNji17D8vZFMm1WS/c8dEIpAqdqZYtWkSlhLPXn6bFKV9TFpxhnrdtL 5xSlg7IW8dSPnHW3+gdPUrrxeHkeUTfs6SzCIeZiK+++oI3GtsUbJqK+QZTyu/xUCgxn 7e49Is4l9DApZ8bSTKyy4BuE1qWPSbNk1ngNiuXFKX1rkGBkZIi/yPWHpMFdNJamrEod LkI3yo+S0py5h5y0ZrVkCbayx/RuPRy0Kw9qfVAf2DAmiKMU0rZgntTXcoSJazNORJUD e11Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="u/kVXQ5F"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=taJEEMQZ; 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 bp21-20020a17090b0c1500b00268104c44e1si9726pjb.4.2023.08.08.14.31.39; Tue, 08 Aug 2023 14:31:52 -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="u/kVXQ5F"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=taJEEMQZ; 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 S235848AbjHHTqZ (ORCPT + 99 others); Tue, 8 Aug 2023 15:46:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232114AbjHHTp7 (ORCPT ); Tue, 8 Aug 2023 15:45:59 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1706D16AD7; Tue, 8 Aug 2023 09:49:03 -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 ECB2920312; Tue, 8 Aug 2023 06:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691475177; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Q3MK00CjNLL1ZfC7N82ZXn6nuzBSj9WikxOJJsXFTxE=; b=u/kVXQ5FVsYn7MZJ9wIBDd56TjoPXUGOCVloXV5y/fMdjLGy9XPhw+Baps0z87S9QSXjQe iQnYprmoLqI/vk29lirFO0Btc3Ghgiex8OvPVdfdtcOZCzj02W5HPCqEU275jHuVf/DlEe HtNJ/BlgevNI+zKARShyWpMiPwqTJp4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691475177; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Q3MK00CjNLL1ZfC7N82ZXn6nuzBSj9WikxOJJsXFTxE=; b=taJEEMQZ6yC504W4FpkfK/uGxk8QYw9Aw5SkOR06WzsekQaMPRhPx942c7UdLNawT6gGhx ec7f12QLRBZgPQDw== 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 A90EA139D1; Tue, 8 Aug 2023 06:12:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8BVUKOnc0WT5PgAAMHmgww (envelope-from ); Tue, 08 Aug 2023 06:12:57 +0000 Date: Tue, 08 Aug 2023 08:12:57 +0200 Message-ID: <87il9qhxjq.wl-tiwai@suse.de> From: Takashi Iwai To: "Jarkko Sakkinen" Cc: "Takashi Iwai" , "Peter Huewe" , "Jason Gunthorpe" , , Subject: Re: [PATCH] tpm/tpm_tis: Disable interrupts for Lenovo Thinkpad E14 Gen 2 and 13s-IML In-Reply-To: References: <20230807140125.18486-1-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII 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,URIBL_BLOCKED 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, 07 Aug 2023 21:14:20 +0200, Jarkko Sakkinen wrote: > > 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=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 > > As almost all issues are with Lenovo, I would instead just put: > > { > .callback = tpm_tis_disable_irq, > .matches = { > DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), > }, > }, > > And delete the existing entries with vendor as "LENOVO". Yeah, that will relieve pains better, too. thanks, Takashi