Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp280287ybl; Wed, 11 Dec 2019 18:16:44 -0800 (PST) X-Google-Smtp-Source: APXvYqx3AS6GqCy0K8YLmOgz79/rwlrh5khr5qQHLNdvJvLKlDFGh2+Yz18vBxLOpcmwh+FHzpuc X-Received: by 2002:a9d:518b:: with SMTP id y11mr5108209otg.349.1576117003965; Wed, 11 Dec 2019 18:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576117003; cv=none; d=google.com; s=arc-20160816; b=FeUlHWykGhGB99pnaEaT2Y9x/KRiw4J139nSUOYZZ3BCIU2jjTqy09QeXV9Z1VH7C4 Ma65mf89QJwXeDSVeArIszk+xY++bp0LkaLLp0aG/kbM7A5syXBTJq9sDEA5lcXGAlLS FF5LY5DqsvpWLbXP5yxxOcpygstwNl3wzhiL2Sj38UIZrpfmB39XpRAQCaPsLQnvcoka MeQ7GsMPNtB5opYA8V0XJkKAgpMOGbEg0Xa8lzEcnTIylbc26fbe1KVeD1unlIrWlN1R sW4h9njBKR+0Xf9VXPPRyuAWyky2oGPHxugtnM4QY+6rLhpXUfN2uWjRov9vo07rOmwY 48VA== 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=bfZqzYbzlI4qJvFk+tQo2f1KM1Kh7iadCkXBQ7iIRwg=; b=vYUYjvNdDVn/HM9cUxeFa1VbUWxDv6DT3wdK1cDUL3BsYtlb8xKN1GN+ZNDMpAsN/E 9wdnkWCr0NFZdv+gBzaf5jQwBlai70Skcko+4BaXnmI6ZowhiYQVmqpbyfNsX8Dklo41 9bwM/pY8ihCKPeb/xqYnk+XMESbzikm3SAxWLdudbHDP+kPEbpbErAFwzFoc0zj0yVLP 5jQcvWFgt+WC5y3mxFeaK8KUM1YDhySoDCMor3SDWdi6lDGIVItcPg+xrjeEH+VE78oW +t7qf+8GauKzSrCBtBzwNh2SKuTg7rEJPM1+80McxbmBqmztdBYQJY7CWBBDTnzRcTNz FOIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=qTf8M7Um; 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 h22si2258297oie.15.2019.12.11.18.16.31; Wed, 11 Dec 2019 18:16:43 -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=qTf8M7Um; 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 S1727689AbfLLCQD (ORCPT + 99 others); Wed, 11 Dec 2019 21:16:03 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:43130 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727628AbfLLCQD (ORCPT ); Wed, 11 Dec 2019 21:16:03 -0500 Received: by mail-ot1-f68.google.com with SMTP id p8so833775oth.10 for ; Wed, 11 Dec 2019 18:16:02 -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=bfZqzYbzlI4qJvFk+tQo2f1KM1Kh7iadCkXBQ7iIRwg=; b=qTf8M7UmPyeZzBaccuaHtvT3a/sakASiqOp2Z+RwIME8+PMqvWqfaLxv1lkXmdjHzF /3sSc6VfsgRQAXU76FlNdaDFyHOJP2tj83y6ExOhTtu7UhIBJkUtVkbAjbn5BZZCkW2Y Rs2gYms1yw3wy8BZ2c6fYkXZSaJ/YaSnANbT3E2mZ7ZDt2jnRI2T5vmZjRoxQfE4esaT iJgLv1sIKyfNikcEKZ2I1Ok81K8eBACmzvUEl4ia0pYCkXNae2aP7al4CVq+Cka0P7CK W+VP6KmmmTdg4UyTgg12psU2q3voShpwrdh3GPI4mdkCqk73pdlMIgJSni6I2qIu1oVc 9DSA== 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=bfZqzYbzlI4qJvFk+tQo2f1KM1Kh7iadCkXBQ7iIRwg=; b=Xv/vyEnUMAZpy5qWb+W7rYi0eIm0Jx8dLGnzXnHObo4hDMyNrLzYHNPzpClFrXjFOc kDwHJmzbEIuuX01RWuMCGe7lMc3OZaGT6IXO/zQjZKMlHwJX/l0dQmnGdZvap8HZJOu8 JYPH6w0yWU9bRP82I8CMr+7suEgwr/mtqE7XbyR6a2ZUJ2JVRIHKIP7PbYGJLcMqd7Wq rUKvqFEKEZPmSVgS+W8xJ8lGD5zHCmYbGZsN72lYn6DpOOPWl2TZ0Fp9Vs2tCl1YQ5ne SdJMt9c8b1N7Y1CEV/U05bVXftdixgN3xGInLrqy/dx5D1U76uKEzLOjREuOeiYF92Aq gTnA== X-Gm-Message-State: APjAAAUGN/wzC1h+DIloPrzUZOq5IeKiqx2d2xTRnlJjl/CLxwunL/BM kd0PkegOkIEXTvv8AYLulTxZ0aLFcvJUZi/JtK0FtQ== X-Received: by 2002:a9d:6f11:: with SMTP id n17mr5252698otq.126.1576116962131; Wed, 11 Dec 2019 18:16:02 -0800 (PST) MIME-Version: 1.0 References: <20191211231758.22263-1-jsnitsel@redhat.com> <20191211235455.24424-1-jsnitsel@redhat.com> In-Reply-To: <20191211235455.24424-1-jsnitsel@redhat.com> From: Dan Williams Date: Wed, 11 Dec 2019 18:15:50 -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 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.