Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4815549rwd; Tue, 23 May 2023 13:01:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zSITtxahZKXBrXK04/Bc3kLUyaA8pJuNlpI2rOkHNxF6Kh3bw7jBGs94YRZb832xAiCRI X-Received: by 2002:a17:90b:238f:b0:24d:f77c:71e7 with SMTP id mr15-20020a17090b238f00b0024df77c71e7mr13665952pjb.41.1684872102162; Tue, 23 May 2023 13:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684872102; cv=none; d=google.com; s=arc-20160816; b=QMGaFi3qhmrFAM5w4lsMUGh8XRG+bgkwLACQ8gRP7tmkjGaojLoeDKj6G1el74MmlD 5+KcPxFRc2gkYWJhoUtNsnDRLZGRjqfzO3veMEd+A6faz4UoOrmJgo89tolM7+SZymBI C2fljtuBVKod7wRbhtJKtHmM7ySueiYgOxHr+UJr9BGJfVxokbX6mjfej5BM8yxWHYZF +eO4asHcnBp1thkGC5ZavEwk2MV2b79VQryn1XY15dS6t5kFdTxMjGFV7FaZiaFhMHnt Jc8rGnji4M32gjAHH6jAju8g0FxUhgJMmThYiGQ/a9Rn+B6UQblMmLuBVRcF2mUdLaC6 2qSw== 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:subject:cc:to:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=dIRRZEI+01xUxmr4kFI14C5QfOgQbRzKG8ydHmisauw=; b=CF1//ON42BsryPXh7D78fBmF/K5Ca8BNX5KcQoYTNs7f6nRD5PwxcRXDu7xArNHwza +2h8WSzOvJVRlVsI0UIofBhU5QOhcER4ou3VS1m9xs5FdRhtKybFClIBm5/7vmrgunNO BYOYOmK272P/TXNujh2afpLCJyjGqldnV4YpmAv6cJvtUL2NwBt1ctaXdlCd6MxbN6bu FQXDBDPVLMGlpnsDlnCdZeVP9XKxQMqwvAy31xnIB2Ob/sDlOxsjTrLG564MnouwGQt5 N4c7cju1b6qR04TKZ3eM5tTyH2+A7Q8E0PSya9vnYs8blUhEqr7G2rTePhRQu6x9T30/ Je+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Eox9NlFK; 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 gx7-20020a17090b124700b00246b7a596eesi3685988pjb.146.2023.05.23.13.01.26; Tue, 23 May 2023 13:01:42 -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=Eox9NlFK; 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 S238218AbjEWTgD (ORCPT + 99 others); Tue, 23 May 2023 15:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233459AbjEWTgB (ORCPT ); Tue, 23 May 2023 15:36:01 -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 14CC8184; Tue, 23 May 2023 12:35:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9C286635F7; Tue, 23 May 2023 19:35:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A7A3C433D2; Tue, 23 May 2023 19:35:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684870543; bh=8UAWbMOvWVlLXA/9nZRNOtM83fge0RgtLqk1AKszgiM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Eox9NlFKpx9DQ9qZDiOfGD014YFndCguOTBgs14k7GKu4oV60R34IIZLhS47P1Ck6 gENWYYFrAp3kSW2ANucrEt3EDJoqMOVt+JvP+E6rTzSWmnMa3kTSMoPYCnv3M9xDmx 9nub8BSbW4ee6aFGxCnv5c0GS80dtWlzhJowqG3pJv2FeZkt+fXC+g6RyQufhJnqwD lxi8AGG3Isbjgkg7jfZ4ytABoFZiNB42a4MoD6uPWiBNA0EiZIZQKXka3WwWAfFRIW +RoEZO+KUvfspc8Vq18h+ZmqNY1D1BQteFRt1VumM6RY7/wbiJ8w/6kZk0WgFNxjdb qpIXkAhnOLJWA== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 23 May 2023 22:35:38 +0300 Message-Id: From: "Jarkko Sakkinen" To: =?utf-8?q?P=C3=A9ter_Ujfalusi?= , "Lino Sanfilippo" , , Cc: , , , , , , , , , , Subject: Re: [PATCH 1/2] tpm, tpm_tis: Handle interrupt storm X-Mailer: aerc 0.14.0 References: <20230522143105.8617-1-LinoSanfilippo@gmx.de> In-Reply-To: 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,T_SCC_BODY_TEXT_LINE 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 Tue May 23, 2023 at 9:48 AM EEST, P=C3=A9ter Ujfalusi wrote: > > > On 22/05/2023 17:31, Lino Sanfilippo wrote: > > From: Lino Sanfilippo > >=20 > > Commit e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test") enabled > > interrupts instead of polling on all capable TPMs. Unfortunately, on so= me > > products the interrupt line is either never asserted or never deasserte= d. > >=20 > > The former causes interrupt timeouts and is detected by > > tpm_tis_core_init(). The latter results in interrupt storms. > >=20 > > Recent reports concern the Lenovo ThinkStation P360 Tiny, Lenovo ThinkP= ad > > L490 and Inspur NF5180M6: > >=20 > > https://lore.kernel.org/linux-integrity/20230511005403.24689-1-jsnitsel= @redhat.com/ > > https://lore.kernel.org/linux-integrity/d80b180a569a9f068d3a2614f062cfa= 3a78af5a6.camel@kernel.org/ > >=20 > > The current approach to avoid those storms is to disable interrupts by > > adding a DMI quirk for the concerned device. > > This looked promising, however it looks like the UPX-i11 needs the DMI > quirk. My take is this: 1. Keep calmd and add DMI quirks (for some time). 2. Let's reconsider if this becomes a too pressuring issue. 3. If there is need for IRQ detection, let's pick a parameter that would be also *intuitive* tuning parameter [1]. [1] https://lore.kernel.org/linux-integrity/CSTW9UX4ERDZ.VBD1QIWLBM75@suppi= lovahvero/ BR, Jarkko