Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3053370pxu; Mon, 19 Oct 2020 02:39:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOJ+vS+0jJmANtiHqxJwtAhaw6ppr48P6G5mR6wIlDK54kO8F0QJPNSFEB/WdurWxy87EI X-Received: by 2002:a17:906:2850:: with SMTP id s16mr17137026ejc.276.1603100343710; Mon, 19 Oct 2020 02:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603100343; cv=none; d=google.com; s=arc-20160816; b=qg2MOarEMEsrJNtU9G1bE6aludTlm00D5jj/Qu1NQKqu/oosdrwRcdeuPhuxs8f3pC 4Mpn7iJICikoHwjWL8n+/l+hJa4cf5i0jTjxo4O/wNn6+SL3BRx1MrjkykZ8EL86S/Si DFeexm8gwXwqcmAPA5UojhGmuQkU1vJGjOQL7IX3txCNlxPTD+cWWb0MsH/PKgc4AITe w/9PjBTWmj8Sorqzd2AXGGpdbOqR8drj1BBtmn8qaQyvU3e8yKy/ZBXpBD0TTcHwkAcV lDHD5slp1dO/y3KMEER9ZJGh0y/jP6pGEZL+K/Cgv1h/5S1K8aEyjjYthgLED+cd2Jx8 ek1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JntMkUcaE6m2axYjHJlpEVkT5Ke5knS/JE2R/iZ99pg=; b=NVaFN5jxFTWBbcng89y+MAMq1pl5Q6VpEb5C+70sE0Y8zMXAkmx0fOgBx8e5FdUW8m 9iM+OAcrBlq6cf1/64eiox8D3Ra2LLWhNAzRj/ujWSMgGjByb5Fdpe8AorkQqqJfeo99 APPC7uvS19by57Ql4ulcBNjEZaTwMOENfzZTj1OfcyZPsg+TQlJ4t2SOJMbP/Jfl31Y0 nD6KCkwY0rb6isJvRWPzxxp/afVLg864+y+FvX3LXQxfet8TM/X1GLyFiMHCQxQ7T1CY swfn3qUQRViKwqRMxBpkK27o6Qh8IjBH+/2pjy73ZYSCrrZ0IdPXrWpgLSbcfFe0HVDD tiYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=yKMXhIWS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si7255148ejx.708.2020.10.19.02.38.41; Mon, 19 Oct 2020 02:39:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=yKMXhIWS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbgJRVOb (ORCPT + 99 others); Sun, 18 Oct 2020 17:14:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbgJRVOb (ORCPT ); Sun, 18 Oct 2020 17:14:31 -0400 Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76B57C061755; Sun, 18 Oct 2020 14:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JntMkUcaE6m2axYjHJlpEVkT5Ke5knS/JE2R/iZ99pg=; b=yKMXhIWSdeSD7VBKfA2omx2RaP ipWzb5Zgqvx4nMnjkGRqUYU7pO/nR7QaaAXH5vDoqhmD0MPcrqIqxvlBAOCbKD90lhM7Dh6lfWs8K Qy0RoERft6mWWfG6z8bI0MWAN9dy3t6pbObmvir1zxyfyBqgkdjdgcgLRzka7DbE57co1XuDSo6dW DJETbf+JWegtetCNkitCngSzR2VWrxRKmD8Vu2Ba4pBXpdPgSJ0U0SKCwVfCoKMeM7hrx8rZ1qnf4 75Z6d0PQ2P54druh3gXQU2U91atwYwRYFgyzbUGkDkaNC7BAyCC6U39M9udWrlttxnBQ+mCONEbWM fwaU4GNg==; Received: from 83-245-197-237.elisa-laajakaista.fi ([83.245.197.237] helo=localhost) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1kUG0b-0002xD-8l; Mon, 19 Oct 2020 00:14:29 +0300 Date: Mon, 19 Oct 2020 00:14:28 +0300 From: Jarkko Sakkinen To: Jerry Snitselaar Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, jarkko@kernel.org, Peter Huewe , Jason Gunthorpe , Hans de Goede , James Bottomley Subject: Re: [PATCH] tpm_tis: Disable interrupts on ThinkPad T490s Message-ID: <20201018211428.GD575510@kapsi.fi> References: <20201015214430.17937-1-jsnitsel@redhat.com> <20201018211143.GC575510@kapsi.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201018211143.GC575510@kapsi.fi> X-SA-Exim-Connect-IP: 83.245.197.237 X-SA-Exim-Mail-From: jarkko.sakkinen@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 19, 2020 at 12:11:44AM +0300, Jarkko Sakkinen wrote: > On Thu, Oct 15, 2020 at 02:44:30PM -0700, Jerry Snitselaar wrote: > > There is a misconfiguration in the bios of the gpio pin used for the > > interrupt in the T490s. When interrupts are enabled in the tpm_tis > > driver code this results in an interrupt storm. This was initially > > reported when we attempted to enable the interrupt code in the tpm_tis > > driver, which previously wasn't setting a flag to enable it. Due to > > the reports of the interrupt storm that code was reverted and we went back > > to polling instead of using interrupts. Now that we know the T490s problem > > is a firmware issue, add code to check if the system is a T490s and > > disable interrupts if that is the case. This will allow us to enable > > interrupts for everyone else. If the user has a fixed bios they can > > force the enabling of interrupts with tpm_tis.interrupts=1 on the > > kernel command line. > > > > Cc: jarkko@kernel.org > > Cc: Peter Huewe > > Cc: Jason Gunthorpe > > Cc: Hans de Goede > > Reviewed-by: James Bottomley > > Signed-off-by: Jerry Snitselaar > > Reviewed-by: Jarkko Sakkinen > > I'll apply this and make it available in linux-next. Applied. Thank you. /Jarkko