Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp193818rwb; Fri, 4 Aug 2023 11:07:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRcZxitu5BdyIzJ/B0Wgd9RYsTAMO+L0tb4OHO35F7csQFMkbVPq39RKPTh2k28nF7h/zk X-Received: by 2002:a17:902:e5cb:b0:1bb:5b88:73da with SMTP id u11-20020a170902e5cb00b001bb5b8873damr2361771plf.61.1691172435160; Fri, 04 Aug 2023 11:07:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691172435; cv=pass; d=google.com; s=arc-20160816; b=BUKHpOWpXma+beSJItIkuWlacu9lfsqhzbD65cDgKExfv8rSV6UbDk3wCr5yNX5o/6 sbTKEJdy7+/IuXmykEF9aQwy3zP9BSxyWWkJXZ5dU+DV3GIFrF9211GG0qaiuRcpdEM9 zOOygC7Rdo6it4IQVJH7Za0liXfu/xOQZbqYdq6WNLjZLIVP5+1tS8SOU+9LOzZzY7QR SwTh0TKyDB/wOFvhCpqUcFrCBHmT/dV87Bx8iio4LIh3nMZ070iz4zV07KOGqvA13SvI RnOtKwEqT9bKOAeE+KezhXCcwOKTHqJIFj5iYcIN7qzMHtaIhxEZEzAImAjAMzLdyb5J gQow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-id:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=R2NgxswRRhXTPyb/rMw00QviSFwR6/8uvSgG8KKWsIw=; fh=9P/qNbqQVh2YgAtxRsHH3CwyV8hD3bv5DUmC3WB7Um8=; b=1BGJ2ybymVTY39+to7lRGeLQ2t49RyZew+ZmC4cpF/gfvxrv4P7ev/H1U+hwYVYjwT 0lBIS0y3l8QYiN2vEKbKlx/9LmwD2eXeIZHwLa+1K/rdxApAE0Fr7R9qAc+5I8bq2g7T gb8/GYxJx7N0MWWkaECJ5Tiz3X+E/NTBTiMnYEXa4d11+MrK544POS+mShqfASNY/0iq bhkowWxlcZhyG20IR4w0G6kLXU5AfHZ50tE3c6Un6/KUxr9u2rGW+VgOo6vKPHLPkxWs k7dOPu+jDKVXQynGV+4vrx94VkQHhrfb4ForRNizYDJvIbg4OAz0kCpqNgEqkN8ox4xr aSZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@meta.com header.s=s2048-2021-q4 header.b="mxEzqp/p"; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.com); 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=REJECT sp=REJECT dis=NONE) header.from=meta.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a170903124a00b001bb3135003fsi2024303plh.161.2023.08.04.11.06.37; Fri, 04 Aug 2023 11:07:15 -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=@meta.com header.s=s2048-2021-q4 header.b="mxEzqp/p"; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.com); 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=REJECT sp=REJECT dis=NONE) header.from=meta.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231924AbjHDRIx (ORCPT + 99 others); Fri, 4 Aug 2023 13:08:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231872AbjHDRIu (ORCPT ); Fri, 4 Aug 2023 13:08:50 -0400 Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA9849E0; Fri, 4 Aug 2023 10:08:43 -0700 (PDT) Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3747kBWW006143; Fri, 4 Aug 2023 10:08:43 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=from : to : cc : subject : date : message-id : content-type : content-id : mime-version; s=s2048-2021-q4; bh=R2NgxswRRhXTPyb/rMw00QviSFwR6/8uvSgG8KKWsIw=; b=mxEzqp/pEdgO5V4eehfPOIQS/oo0LbKV+XmUTXy+1wVDbKaMj2L84Z9mantrhoatLZUY ZqTKN+P1w1i2EjSGGOM2h1it4pFQjnntkEzuVjxfnnM5h8g0u1IdARLBpJiV1sjdm1fy DXf8rF+aDooYcrr9NDfgXz3qRuJ6WZBEjBDBtid9J250Uxbg/2AEtQPkkc9AShZnbBhy Rgt1+XLzEXkt3m/T+d3l4w+enM+rXFpq065+O6Q7igbXGEA4ceOASPXiAdqxB/BjFKtP zAvSMrm7XMTzxIoTsi1HZgdduTiuIkgkPE/eOIffaB5OOQRRjVQKURdHdWBbUYv42rnL sw== Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3s8w7quut4-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Aug 2023 10:08:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nun00HVCDdjxoRn0KJjUZeEHFWTfmeM8oN7EOuIeH/RG5pnwnebO/6IFZlwX1GzbGj8q9QQTKuuKVGiRdlnPQy0rSfFCVjN9CCJjucGPESFkN41rF8zUplJ2QeWlT4Sp5MVyOtAKlJcNojpWcOWZAXmcYxi0p9lk2NH9paD9e87VmzLJQsv2gtcse5l5A//+OKc5qahgc05Eg5QiCD0rtmG2BhENiAhztfa0TiFY9AQYZj0rXmGXVuuWjNi25249S7OQNUVaZOZPqxTs4gJVMBXbewYFBPtZ7MClsJTDmkDplOwWeylxcvI/ilVcR0xA72kPg7djldqVojph3togMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=R2NgxswRRhXTPyb/rMw00QviSFwR6/8uvSgG8KKWsIw=; b=S7447ufpn1ZV3Ky+kBjvHirsOh8F8aoEo+3/By/U3WSlBm+bPmeoSSYXHOrpuYBiy3qJPWjNTsMcjZS3rmYpk4D5j3b0/q6kNI4s1X6PSAivRMOdfMwONW9WyfhWMfsRJksETaEXbspDuGK6cZbcnByqJgSMOEc/wD6mUGZFz9kmA7Pb5XMmK3qpbVV6sxTN9mceU5YzyjT++5J3G09E/5HgAIPiU47esWam6srPShAgTJkiCdaraEHJ0aMNqcQbZIMja0KCupaRpsHhfas1jpozkyKLeFl1HNRVBJkZJdpkizAIsuxpqPxxkzSOsd8otJt8W2PHCgNdhFdCHZyS4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=meta.com; dmarc=pass action=none header.from=meta.com; dkim=pass header.d=meta.com; arc=none Received: from SA0PR15MB3997.namprd15.prod.outlook.com (2603:10b6:806:84::21) by DS0PR15MB5921.namprd15.prod.outlook.com (2603:10b6:8:f8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.21; Fri, 4 Aug 2023 17:08:40 +0000 Received: from SA0PR15MB3997.namprd15.prod.outlook.com ([fe80::fdb:2c72:511d:1b3]) by SA0PR15MB3997.namprd15.prod.outlook.com ([fe80::fdb:2c72:511d:1b3%3]) with mapi id 15.20.6652.020; Fri, 4 Aug 2023 17:08:40 +0000 From: Jonathan McDowell To: Peter Huewe , Jarkko Sakkinen CC: Jason Gunthorpe , Lino Sanfilippo , "linux-integrity@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] tpm/tpm_tis: Disable interrupts for Lenovo P620 devices Thread-Topic: [PATCH] tpm/tpm_tis: Disable interrupts for Lenovo P620 devices Thread-Index: AQHZxvZQDWmzbkuMkkCLZJDAg+uwug== Date: Fri, 4 Aug 2023 17:08:40 +0000 Message-ID: <20230804170638.GA3705864@noodles-fedora.dhcp.thefacebook.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA0PR15MB3997:EE_|DS0PR15MB5921:EE_ x-ms-office365-filtering-correlation-id: 62a54e8b-2293-4c69-ada1-08db950d736f x-fb-source: Internal x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zPOs0+17iO2t9GrdoP503WZMrWlQpON98H5JfY9Ht2m2iKAntZlTX6mQNVXH01FRKQUJNnrPoXkGP2tq/ZkgSd8iVdyRtinfnvdgw0Iu42SVnapVwo2EYf1cvH1Lkj/r9IsERM66KfyC9YMOAwxM+x099/PBq6fdMirOPVszBxAuXc5tM+fJNxVgnNI0ccd9ORdFAGQJnJOJB0oMG34NiPYtHKnn2lhb/QSwW2KGmFED3mMTaZdJVUJpOI09oddFyLHRLBcA4aBhxjKZdxs4JQjkUlj4tXRhntcad+i2p9bJoijvaNVLEtUADlLufHaErNQbvlHBdgwoYzalemV5kYRLGL20OW+6XkmGcj7FdWyrZBy+ow8APfuIlhUAjemh2NYJL+zITmojAblUgly9D05iick0prWoyko6O5/MeUdhp6cEj/7AwkNmgjvGsWKw+gfektK5vRGDnHZAPhmzdbu92GAvzRMXH1oCYLim7I5Jcu5SqdP822+RgKLlPv5lwQPjGckRnSVFE0ETm1zzC3IXz7vZGccRRQdAWlJOe4+bD2ohY8mC2UrbDC3kzO/fdWxijuuT9wwMZ56wf4dQadhZLtJ+bTF5GcsAMB7IuSk= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA0PR15MB3997.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(136003)(366004)(396003)(39860400002)(186006)(451199021)(1800799003)(66476007)(66946007)(66446008)(66556008)(64756008)(4326008)(76116006)(91956017)(2906002)(38100700002)(122000001)(38070700005)(1076003)(6506007)(54906003)(110136005)(86362001)(9686003)(6512007)(26005)(478600001)(6486002)(71200400001)(33656002)(8936002)(8676002)(5660300002)(41300700001)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?dfs8oarASIFAle9kgy0qYovW/YbcKXkHNZm3vi95wRmTiLa+QHu0rwyes6ZQ?= =?us-ascii?Q?p7A39ZmJ923GR1ZDi98vGl03icqcz5TeRAz8eYNk9QUNwA5msLqKF7Fj7eTq?= =?us-ascii?Q?jHYw+uygD7/evoJCGYlemFXKH7WhLMeK/+ISMrpCsTadcMPsxWtpAnGb62uW?= =?us-ascii?Q?lbnCp1aUSNV9Flo0/gExT9Hlj6+iRjtNmyKJQePY3UEt+mprK2k/EwFEUoNl?= =?us-ascii?Q?TrTz0kt+ZmoKM26aI3HNKlrlAzWW+8EluHo5aWKWKblFW8Oltz76IYEwgEBe?= =?us-ascii?Q?PbxdgTpmnYB4K9IsE7m9dftPG7+Aj3bdH+TMVwvzsSK/6Rpkz+fRdhFhRgVp?= =?us-ascii?Q?Em2rWBifem+Y03f1pof5608RpmvhlC1cD6vuVK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-ascii?Q?H+3vxnZdCijAknkMpFeBizDzKmvrPugaXJdsIauIa2EbHDxAoKHyy2qE6ErT?= =?us-ascii?Q?5CcJjArl+igTcYiVzt2yex+kg74KNfvyA4bDgoX2W/e/O+2WAGy5t9vk9q7q?= =?us-ascii?Q?adSV3r9HzIjWskG9+CpDfsseW/GTXM2kyvQmh6ViGdkB8Tp1qgvb6hoLAB71?= =?us-ascii?Q?eOZInpJlLRYwPEp2Vr7vHfrUlv71KmXPFTxw7KThDTgbFu28YsAaTFU3sSj/?= =?us-ascii?Q?oE++RSM2NIU4B2nhTSk5HSJ3S5eBlzAAl2Q4bK1PCpjkWtpoB6kpKWfteFtv?= =?us-ascii?Q?QDKBHp2sC9DV/VQ7aZHRcknM/YOCgGvwftsIoXNR?= Content-Type: text/plain; charset="us-ascii" Content-ID: <89CEE9854EB96945B0D5CAC0E63770DA@namprd15.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: meta.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA0PR15MB3997.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62a54e8b-2293-4c69-ada1-08db950d736f X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2023 17:08:40.6506 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gYCB9gpA54RSiKU4woUPzU87/cWqHP7xjD+hMLxuqlrX+6I27ZJg8zmhFLe7Mn5NjXAT0ifCa9UDc2no9MJgug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR15MB5921 X-Proofpoint-GUID: fVyoulJ0HF2uv9OosfbrWQeWby3N0xZy X-Proofpoint-ORIG-GUID: fVyoulJ0HF2uv9OosfbrWQeWby3N0xZy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-04_17,2023-08-03_01,2023-05-22_02 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 The Lenovo ThinkStation P620 suffers from an irq storm issue like various other Lenovo machines, so add an entry for it to tpm_tis_dmi_table and force polling. It is worth noting that 481c2d14627de8ecbb54dd125466e4b4a5069b47 (tpm,tpm_tis: Disable interrupts after 1000 unhandled IRQs) does not seem to fix the problem on this machine, but setting tpm_tis.interrupts=0 on the kernel command line does. Cc: stable@vger.kernel.org # v6.4+ Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test") Signed-off-by: Jonathan McDowell --- drivers/char/tpm/tpm_tis.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index cc42cf3de960..0cbd745374dc 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -162,6 +162,14 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L590"), }, }, + { + .callback = tpm_tis_disable_irq, + .ident = "ThinkStation P620", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkStation P620"), + }, + }, { .callback = tpm_tis_disable_irq, .ident = "UPX-TGL", -- 2.41.0