Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3026786rwd; Mon, 22 May 2023 07:42:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ImoP57ALfQRUdZ/cGjnyCSfyv9qmZpGLxg8fkcGmzuvSY6zMgRVPNYvw5mEt+igJrpZyl X-Received: by 2002:a05:6a00:24ca:b0:64a:ede1:13fb with SMTP id d10-20020a056a0024ca00b0064aede113fbmr15528307pfv.9.1684766558244; Mon, 22 May 2023 07:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684766558; cv=none; d=google.com; s=arc-20160816; b=GiPRA4jXJQ8rmttxNfwZ9WDL39MovLmJfv74tYEpDHWgbbjpqPO2krFavRb4v6ggtn VSv2Kq9xuFd4qhULoRmTQbqKgVlUsaakyiYO+HAYimQ+uRtJyHj7+ZASkLwhq//Q7DxU ZcpaeBehuA2hE7n0jUQDPc6t2yHbqzJqV1XVHvw827rJKBc+rbI37h2h+BPMsP5f7tFa UrX9usoDjOmXldPWwJGz5KluxaghosLVbryCVfUeV+IZBBMU3iQZh1dFswLQJtQD5Axj LisLKLRoUkdPbJGy949IG1uIj1aD0LHb48Xp5SAHXXSH8AjOrGpwzVbRlnCoRHxWfti8 CTNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=lwQ+t7RCqn9sjjERhaQcuu0ceFAVx7n0LyVEjPw+TWs=; b=vow3Y0NvLbPkSJE2++psnwH03782DArUfnuxDTq01Vyuh7fHsxloD4kGxhw9Wa3ZAw bhQQVmWMgxXnfoJRnL+6naKNcBzYSIxzuisPIGl/iRJqDUsv+hzVxO4jc1dObDsy5GV8 oYNNsG2ZZZTyP/eOeePzDt/g5jcJbEiTD3ChiVHMVqLXnVQm3AC4jxVL7P+GD6cZJvwb tYbaaKTVqvWEoQ02Qr051yPhLyb7WbkIXqr0U+Z3XH1vZqivN3vJRVyQsqxG671lTkDf ZnD0ImjFwZDY11LbYGKxIU2KYiyUzZXw2moxcRsKoj0NEkMHRi/WXAhaIqWBxkfI8VVB 691A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=TDxYqCU9; 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=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a63b916000000b00524cf947601si156139pge.23.2023.05.22.07.42.25; Mon, 22 May 2023 07:42:38 -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=@gmx.de header.s=s31663417 header.b=TDxYqCU9; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233689AbjEVOca (ORCPT + 99 others); Mon, 22 May 2023 10:32:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233574AbjEVOc2 (ORCPT ); Mon, 22 May 2023 10:32:28 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3132BA9; Mon, 22 May 2023 07:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1684765901; i=linosanfilippo@gmx.de; bh=lwQ+t7RCqn9sjjERhaQcuu0ceFAVx7n0LyVEjPw+TWs=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=TDxYqCU9CtVWVrlfU1RaliEa09utKq9fw1wfmUq7CqDOeK5xPtbL9lAaqGO7GWqzM z3/o+MylPzTBZskzESGi2YoWElc7sljBW3ieIPVoE0lem41Erauj+m8OJFki8aXlGQ 6XTPfVG4LHofz1Bx4XunH/cvqMOLATg6cBQfvjZQhEdR7b9GJvJiBpyqqCX0KwG8iw svAnco1yeeGU5ZlgmKiKrZAxwNqDLtYVuJbhIPXyZvZaBRL80uXboOH7JSl28cbnbh qgfDfnxzee8UkSoaVlwHX53qQkxFw87r8Cowab78xUqOffHmKanxP2AxVbKyUbkjmC z8nmVh2nlCB5Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from Venus.speedport.ip ([84.162.2.106]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N4hvR-1qADD027vD-011gMN; Mon, 22 May 2023 16:31:41 +0200 From: Lino Sanfilippo To: peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca Cc: jsnitsel@redhat.com, hdegoede@redhat.com, oe-lkp@lists.linux.dev, lkp@intel.com, peter.ujfalusi@linux.intel.com, peterz@infradead.org, linux@mniewoehner.de, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, l.sanfilippo@kunbus.com, LinoSanfilippo@gmx.de, lukas@wunner.de, p.rosenberger@kunbus.com Subject: [PATCH 1/2] tpm, tpm_tis: Handle interrupt storm Date: Mon, 22 May 2023 16:31:04 +0200 Message-Id: <20230522143105.8617-1-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:yIe+WGyH1ASzJ7ENp03LTV4IXOeonm6dRKoNYtjMLPwcfYAi2iq bsV98q//ftrbGfjns3dZRRrI8a0UPsJzqcfUV3ea8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lCJVnXEAmyo2eYg2htxMTvFXP8wbE62XI88N0sqHmQhY2QCFobKxhHYm63wIbgefUJle9C kALmVPKqb2KoWjEhFO2CM8KUmv0= X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,MIME_BASE64_TEXT, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCkNvbW1pdCBl NjQ0YjJmNDk4ZDIgKCJ0cG0sIHRwbV90aXM6IEVuYWJsZSBpbnRlcnJ1cHQgdGVzdCIpIGVuYWJs ZWQKaW50ZXJydXB0cyBpbnN0ZWFkIG9mIHBvbGxpbmcgb24gYWxsIGNhcGFibGUgVFBNcy4gVW5m b3J0dW5hdGVseSwgb24gc29tZQpwcm9kdWN0cyB0aGUgaW50ZXJydXB0IGxpbmUgaXMgZWl0aGVy IG5ldmVyIGFzc2VydGVkIG9yIG5ldmVyIGRlYXNzZXJ0ZWQuCgpUaGUgZm9ybWVyIGNhdXNlcyBp bnRlcnJ1cHQgdGltZW91dHMgYW5kIGlzIGRldGVjdGVkIGJ5CnRwbV90aXNfY29yZV9pbml0KCku IFRoZSBsYXR0ZXIgcmVzdWx0cyBpbiBpbnRlcnJ1cHQgc3Rvcm1zLgoKUmVjZW50IHJlcG9ydHMg Y29uY2VybiB0aGUgTGVub3ZvIFRoaW5rU3RhdGlvbiBQMzYwIFRpbnksIExlbm92byBUaGlua1Bh ZApMNDkwIGFuZCBJbnNwdXIgTkY1MTgwTTY6CgpodHRwczovL2xv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