Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7381570rwd; Tue, 6 Jun 2023 09:55:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5iPV60wx4ZgCk/Rge2RGnYOQWuv3b+VwoOdOVwaaVfoVRYpjn1DxwW6gFiv/KzzE5345QG X-Received: by 2002:a05:622a:170e:b0:3f4:917f:acf3 with SMTP id h14-20020a05622a170e00b003f4917facf3mr313401qtk.35.1686070534118; Tue, 06 Jun 2023 09:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686070534; cv=none; d=google.com; s=arc-20160816; b=ztTfgSgSRJHPdsUYk0ziI7YpqrcZKFYn7PuEwg6dLAsdZ45h0+1sY9VpGJwk42uoVx +ER66WM6KkNYI/LfXJeCoaxkHt+bAPC+RFoy9dbAcMcnMtYJVtUHbR23AzpYkydgSm18 /OJrBxhXDqlaMEWBP1l2pZP96Gc3va0sMdZgjmFyntg+YXDCwgDiF8hHUz7J/nEmLRew v8agnTBUAn+zq+vDOubwFlmdrqzS+fQRrR6ocPAS5SU8D/+DfnYh1x2lql14vmJ4Vom3 mH5KZUWS7zZm2Khpi3VjQc/YukbV5cG0iheD0JDla4QQt4ND//GgYPX9LrMi+ij5ca83 MlFQ== 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=j1m4n2Ft+Okmau+IY+Kq7vY9Ls9xpmV6RhwDX07Oe10=; b=rx0GQgxODzZwu1umX0BhPShvgZKzCYYzn+Ncf+5RYjjXr+JyJ6NpEgqQrAKZ6O05cN EMkL0Uv0JVrurrcv17nEEr/oCsFlauwCcjP+6/piihoHiiPDV5gB1CDFWC5ihd6fPRVI dx/8ja1GL7qvpmFrfXQbUcHrK1ValKuPZLNVv625bIXRkmpFDej5mVdDDChGyn3VqxYw 0Z2oV/cNlCLwbEZpgXN9SUeBRnAvh7lV90RGshcl72hgcH5D7Lak4VOST1hVs3Lqu6Zv KTjOlJrUaRFNuKBZtma93t9udRa3j8IcOJWonnZbWbvAfNgumEkeMUExp0I830m7u5N0 LP5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NpCebbSX; 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 s10-20020a05622a018a00b003f7eef1e7f9si6466510qtw.775.2023.06.06.09.55.17; Tue, 06 Jun 2023 09:55:34 -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=NpCebbSX; 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 S237895AbjFFQmN (ORCPT + 99 others); Tue, 6 Jun 2023 12:42:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233159AbjFFQmK (ORCPT ); Tue, 6 Jun 2023 12:42:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4642E62; Tue, 6 Jun 2023 09:42:09 -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 7D2D762B21; Tue, 6 Jun 2023 16:42:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BD03C433D2; Tue, 6 Jun 2023 16:42:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686069728; bh=j1m4n2Ft+Okmau+IY+Kq7vY9Ls9xpmV6RhwDX07Oe10=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NpCebbSXqe7rCxSSKi8VxZhoONsd+ZPxJQO5KyAk/KNmGMx4Ry7ExyC1qrrnb1reG t1hRLj2ewsrwNjDK0byKugqoA609VyqhKy0egcHCfF7GJQCpLAo7B7lctxt9rg3rqO aQp3A3KGie33fnuSVMoBqRKtr7qi6fzuKDAooWe5R8GCeno4LmUseur0H4XFuG3ATd yRuUXlFz0YNkWCuM0mnB0wIxSf0Dl+ftt98/HArJ0pocLJNMVvSf+40Plnxacp1jQ2 DXT52cJovReLE3bGtoPHQghBMwVpjUHufaWvb0Sm9Z+UX5ngbt4J0WfTC6fUzns9Tc n4DgCVCk6alGQ== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 06 Jun 2023 19:42:03 +0300 Message-Id: From: "Jarkko Sakkinen" To: "Lino Sanfilippo" , =?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.15.2-33-gedd4752268b2 References: <20230522143105.8617-1-LinoSanfilippo@gmx.de> <3d350827-795e-8277-a209-1c1d33ca57fa@gmx.de> In-Reply-To: <3d350827-795e-8277-a209-1c1d33ca57fa@gmx.de> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Mon May 29, 2023 at 4:15 PM EEST, Lino Sanfilippo wrote: > > Except that if the line got the spurious designation in core, the > > interrupt line will be disabled while the TPM driver will think that it > > is still using IRQ mode and will not switch to polling. > > In the case that an interrupt storm cant be detected (since there might n= ot even > be one) I am fine with adding a quirk. Speaking of generic vs quirk (if storm can be detected): detection should be eager as ever possible. Too eager does not cause systems failing. This way I think we can converge to stability fast as possible. Then, later on, if a system where interrupts should work but the detection disables interrupts we can either make the fixed threshold less eager, or add a tuning parameter to sysfs. BR, Jarkko