Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp282513ybl; Wed, 11 Dec 2019 18:19:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwPRMnSZ4ayfpFUWHjlL4dhzVjbwBuOjJl3oxbU6tDVEzjo5zKBYJSZthfkrOv7kFDDhBIU X-Received: by 2002:a9d:4e97:: with SMTP id v23mr5055464otk.201.1576117169363; Wed, 11 Dec 2019 18:19:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576117169; cv=none; d=google.com; s=arc-20160816; b=l5miDCw9nXOZsH7ZFWbr2u80fOt8gYVcI2A72TV82o1tS4Qw4Rhew/sPymcQRQqam5 pcpvq+R7IL+qBRKLOCMzj91J5zb2ITIKc3W7DNLuYaJq5EfuKOzhdhHpMlC1MdmFofO9 qNBubGnsy7Uz71rkk2tIFGtCbYHIsBrSML7/MdWyVRQxsAi21A10xWEeoJZv1UM2zUDa Ejn+qD0ITlNhdUvkO62jbO3yhJS3ZMRc86OAgFAKIl+axSuz2D7aOv520j6g0OmO7j2Q qXwzcB11223bYCuHl1bD/5ChB1ys/2tdsMXVGdq1OMVy2aQV2zpFS7SPF+r08vAQyzYy UDZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fPsu8XmzlYK8Y32ptaZLTsIwREbpto/xHjCbnxTIgwQ=; b=rsHBK/lqPk7UD5FK0tPgOTtBo2SGOwvpnUCBjYrluTbIFJ2xhHU1/DSBu2wvMqslnE itVZ79DwoeYwRW6frvXVDF35Y4TxQNHsCLs9Bt/Rvo7WImbUOw83Y+2fWKE1V7m0yOzV Tg/89sOUp7IC+KTx3TPbd/36UT9Zxq1dQHLm7AjLV5wQavgEbGyb69fnrgznWVhFvr6g RkJA1PNebHl4O1hMKSYIVNo0kObLTvCrJsI0c/uor60l3bZMsS4n3d+zkwa88Kew2/Kp 2Xsyp/iMe6Czt+KRz7OmrktaL/YntBKz9LZioK7W9+kDBUpxQoLgKpidvLFbsztt0tvw umOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=hHpBpD+j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y186si2457178oia.108.2019.12.11.18.19.16; Wed, 11 Dec 2019 18:19:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=hHpBpD+j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727756AbfLLCSa (ORCPT + 99 others); Wed, 11 Dec 2019 21:18:30 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45523 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727689AbfLLCS3 (ORCPT ); Wed, 11 Dec 2019 21:18:29 -0500 Received: by mail-ot1-f68.google.com with SMTP id 59so828979otp.12 for ; Wed, 11 Dec 2019 18:18:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fPsu8XmzlYK8Y32ptaZLTsIwREbpto/xHjCbnxTIgwQ=; b=hHpBpD+jolyXkfvnd+Bw0vywrP0DCPLUgI2ACbOE2xZxt8vvxkZ3aG6AIWdf7cyFTF Z8w0WJEkiYZbZbqjciHdvUvMn3mBE9ONALf+pKjRX3Xzpy//aCDvfQFyqCYjiwEkWZmk AyFr8LRX7Ek+LInXFAcPEMifXMUcr1sEmGTKSCsTiE2PBEBFje3mmLb8hK30IWnc+wR1 cr+fENqt8ryUl05GWGUQAP08hGFBcKQ0+rXLMdIPGlKZJ7cr3oVhte9sIoyUaKCdJAgx UcytK+eqnNpseRPMCM8MtNRHBQgGYJRpEJu2HD4sSQDQurlCBMI8/FbLGK5oQ13t0Lgc VMrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fPsu8XmzlYK8Y32ptaZLTsIwREbpto/xHjCbnxTIgwQ=; b=X5A3mwVg4c4mKYA5u5FNi9dAyj8rl5nccSqZI+1HfAsnBzarix8ixrZlXR6WWApRwd peQC4mzd4VbJw10aczfO3/nlUWjuK75+qUx6VYM/m1kVrpN7d6keMX5YdKURPqYlqUsB 9I0EjGXjvbIqeWB1mRUApGewZnus/XFmT4b6RzlZq8lexwW+K3GeiYFe6vEDrFiD7qkT cMO+3aNmV8ezmwmjiewFwdzOJizUANVCExqnbK9r/Oj9Mrt1EFGJ+FNFtCURz616vF8Z Sa4ptGgOtV6o3vosofYY8gWnEnkn4Ju2M3reXPs5y+EKHIaFuDwutgTQ7yWxAnFqzn+M lNZg== X-Gm-Message-State: APjAAAVsNJ6dvvINWi+oLpotbalABAhlX8iddATIuZYUE9hBU7nnBYfF MlviEgVyBpAV3Voe0qDH5csLhRT9aaVb2KDzhXNvUA== X-Received: by 2002:a9d:4789:: with SMTP id b9mr4976910otf.247.1576117108678; Wed, 11 Dec 2019 18:18:28 -0800 (PST) MIME-Version: 1.0 References: <20191211231758.22263-1-jsnitsel@redhat.com> <20191211235455.24424-1-jsnitsel@redhat.com> In-Reply-To: From: Dan Williams Date: Wed, 11 Dec 2019 18:18:17 -0800 Message-ID: Subject: Re: [PATCH v2] tpm_tis: reserve chip for duration of tpm_tis_core_init To: Jerry Snitselaar Cc: Linux Kernel Mailing List , Christian Bundy , Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Stefan Berger , stable , linux-integrity@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 11, 2019 at 6:15 PM Dan Williams wrote: > > On Wed, Dec 11, 2019 at 3:56 PM Jerry Snitselaar wrote: > > > > Instead of repeatedly calling tpm_chip_start/tpm_chip_stop when > > issuing commands to the tpm during initialization, just reserve the > > chip after wait_startup, and release it when we are ready to call > > tpm_chip_register. > > > > Cc: Christian Bundy > > Cc: Dan Williams > > Cc: Peter Huewe > > Cc: Jarkko Sakkinen > > Cc: Jason Gunthorpe > > Cc: Stefan Berger > > Cc: stable@vger.kernel.org > > Cc: linux-integrity@vger.kernel.org > > Fixes: a3fbfae82b4c ("tpm: take TPM chip power gating out of tpm_transmit()") > > Fixes: 5b359c7c4372 ("tpm_tis_core: Turn on the TPM before probing IRQ's") > > Ugh, sorry, I guess this jinxed it. This patch does not address the > IRQ storm on the platform I reported earlier. Are the reverts making their way upstream?