Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1345770rwl; Thu, 10 Aug 2023 09:47:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWjY71m/mytid94hbXj9LKWZD/d5UI2AqppACArIvspSs40p86ImNiwjSJIT+URi5Kf1eF X-Received: by 2002:a05:6a20:325a:b0:134:a8a1:3bf with SMTP id hm26-20020a056a20325a00b00134a8a103bfmr2446212pzc.30.1691686040978; Thu, 10 Aug 2023 09:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691686040; cv=none; d=google.com; s=arc-20160816; b=lNDgcTYA2y1fsuTyn1+WjaUhm11efAyxG4wiWLuNO2jSkwEKSfwtF7y2+9vJSyiQ+7 nr8iXFDoRo8hL18HPkW1zrwQHetBsYrRHd2pijYQLNVSBk5xsNQ+eEu4WhbLbqeyhMgc 8tdAqhIOGfi60c/rIwN+OQrnq8oLf63QVfpidYUoajyy8j2+quUWUCzkkwb0MhnuC3xn ge+FAhMFuXIxq2ffSMMPnkRztqCa0LZbomcpRPJBbBimLu2vNN+mzrOGpT7CIgu9j08e PqoAII8nuzEOEDJIA8L7LIItyoMxu1FJcdDrIOqePuai/nldfGxV6nt9zysMvWvbwpgZ RBMw== 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=wPzJd+Ktxb9Ssd+AxEkrhLm48B4ZKaUyUwUBBcyVALk=; fh=FLhE+kmXidXm2K/WbW50dVJQxAi8B/XxRHYWM0OFpuo=; b=oDLbusJ1zvg3f4rGCHU6Jpete2QHZ+6pmQVI5t9T4XRHKJRIPtgLOw+QePwBwK13Ds XMZTkrgAFX2ZfOpLYmfiLtY6Nxz5D/Vkbku9n/q1s5/l4IjzCyeBT+QXUmyL6dbhpKAA nTCL9iZonA2b1UFh6dVjiijDS/01cnpCPboSEvnaZhrNL/X5dc6NFiu5g4egBhmCdX0v qZq8S25Ei3yN4oT1twMLJVv52totF4GgIwdrzrRewgQyr6bwFxqB4InncCrP5cdoZqSM BYANm5ts9onElD3WRAqzstzNQjgs2nMYInoywaFS1Lv3x+F2UjO6OzSsQ4mWG1dJdm27 EGig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=o0lHT3hK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 r5-20020a655085000000b00564233887a3si1740734pgp.528.2023.08.10.09.47.07; Thu, 10 Aug 2023 09:47:20 -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=o0lHT3hK; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S235691AbjHJPQw (ORCPT + 99 others); Thu, 10 Aug 2023 11:16:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231195AbjHJPQw (ORCPT ); Thu, 10 Aug 2023 11:16:52 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D6DC90; Thu, 10 Aug 2023 08:16:51 -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-out1.suse.de (Postfix) with ESMTPS id 3C9D1216DA; Thu, 10 Aug 2023 15:16:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691680610; 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=wPzJd+Ktxb9Ssd+AxEkrhLm48B4ZKaUyUwUBBcyVALk=; b=o0lHT3hK6AyFatwIl9Xi3qTQc/CDpfThI7dKJu+7HLlcPD63fvcACpVla2Sicaj27a3nqj 7Q10fjC+LW5DH+i3Ga215ovXRgvMzqaU/6ZOYCyfOhJPzdeIS5iP/L54Q9cQSIIxbT7Ced 4/iXFxMuF8fNA/F/NPDdhnOTlP6NmAs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691680610; 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=wPzJd+Ktxb9Ssd+AxEkrhLm48B4ZKaUyUwUBBcyVALk=; b=xPHJyFzIWcIHGtRIP/iE1GTUvt3FE2/CQb8ISWaThtf7+DAXJTO3XT7cAUw5f51W1eBKxV pBiLgRJYS/N+bpDA== 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 0AB1C138E2; Thu, 10 Aug 2023 15:16:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CclxAWL/1GS5GwAAMHmgww (envelope-from ); Thu, 10 Aug 2023 15:16:50 +0000 Date: Thu, 10 Aug 2023 17:16:49 +0200 Message-ID: <87ttt7rkpq.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> <87il9qhxjq.wl-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 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 Thu, 10 Aug 2023 17:08:04 +0200, Jarkko Sakkinen wrote: > > 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: > > > > > > 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. > > Please do it if possible then :-) Do you mean that I should resubmit a new patch? Honestly speaking, it'd be easier if you can do it directly. I'm merely a sort of messenger, I don't own / test the device by myself... But if inevitably required, I can resubmit a patch, of course. thanks, Takashi