Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10605709ybl; Thu, 26 Dec 2019 22:04:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzQBxfCeTPGTCOhzVgY0/0PxXnMum8HnUG46fm3I4Uykgnpri1dl7IDuE6IWznWn7hPpF2p X-Received: by 2002:a9d:6f8c:: with SMTP id h12mr2047802otq.185.1577426693085; Thu, 26 Dec 2019 22:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577426693; cv=none; d=google.com; s=arc-20160816; b=F5W1RBcPfgWahRsrxEiYVIfdUYLBhAhFbO5PSHoMaJ/xfQ8doQNf5tsOgMSdkDKz2A pZGxH55OPbp8uAKP86yC3wy4hxrD3idQupyQU7Emz4vH+FufEyD+jxDtTy7dSsUQDV8p sGg1gtdwFWAQq7JcUb6Dd4F4nqg/DogjIjwNaPS4apv3yedIpRRRPEqQPcInrV5/tsSi EYV1umw2tmH2/d3IaKQsNznSUWuh0qlpfxQlIa1Kmw9U/B99q6mkzwNOqofrhT2BLK8K neLsTL2NiWIocom7w/MmWjIKyHXhdIGKjb1ufK4sPuyORaR4OiTY/m92iLD38t77YzKG ajjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=1Dgv9Gj/uDJtffWlvvvEvOqIZx6lUr//MQdna/HSO04=; b=ZNvLh3N4Rk5MWMGH3+5dRJ6/AAp9ZbYEMghZZfmMLfbywftFe+6BGjnqVymyYTdX/J KoMTZY/gyPjfAgAgOLL5zpt86IEwpDvB4ABg0nE4f6f/YjNhJRajX9oJO4DNKsLSGrEY zADqiREVI7SEhSuFuOg4mX5C/cDVfVLGK7eJoLhSE5S0GI9CTev+yIVcKfX8+EkDr8aw QXABCDGc5DBeiBh/jxK7VOouM2siuqWEikJ6ZvlGdp2RRHTBQBM9xzhB3H2TGr6CnFaZ rDxYcaBSx1WhHzzz4R8l1u+ph7lkoZw1sRSBQV8YwYQNfONfHkjf+aI1+eALsQtfZs/o 5fqg== ARC-Authentication-Results: i=1; mx.google.com; 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 b137si16762871oii.63.2019.12.26.22.04.41; Thu, 26 Dec 2019 22:04:53 -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; 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 S1727073AbfL0GDv (ORCPT + 99 others); Fri, 27 Dec 2019 01:03:51 -0500 Received: from mga18.intel.com ([134.134.136.126]:28316 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfL0GDv (ORCPT ); Fri, 27 Dec 2019 01:03:51 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Dec 2019 22:03:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,361,1571727600"; d="scan'208";a="250564551" Received: from psklarow-mobl.ger.corp.intel.com ([10.252.31.109]) by fmsmga002.fm.intel.com with ESMTP; 26 Dec 2019 22:03:44 -0800 Message-ID: Subject: Re: [PATCH v2] tpm_tis: reserve chip for duration of tpm_tis_core_init From: Jarkko Sakkinen To: Jerry Snitselaar , Dan Williams Cc: Linux Kernel Mailing List , Christian Bundy , Peter Huewe , Jason Gunthorpe , Stefan Berger , stable , linux-integrity@vger.kernel.org Date: Fri, 27 Dec 2019 08:03:44 +0200 In-Reply-To: <0f355936c954847089d9e8fb579e30bf8ca43a0e.camel@linux.intel.com> References: <20191211231758.22263-1-jsnitsel@redhat.com> <20191211235455.24424-1-jsnitsel@redhat.com> <5aef0fbe28ed23b963c53d61445b0bac6f108642.camel@linux.intel.com> <20191217020022.knh7uxt4pn77wk5m@cantor> <5d0763334def7d7ae1e7cf931ef9b14184dce238.camel@linux.intel.com> <20191217171844.huqlj5csr262zkkk@cantor> <37f4ed0d6145dbe1e8724a5d05d0da82b593bf9c.camel@linux.intel.com> <20191219100747.fhbqmzk7xby3tt3l@cantor> <0f355936c954847089d9e8fb579e30bf8ca43a0e.camel@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-12-27 at 07:42 +0200, Jarkko Sakkinen wrote: > On Fri, 2019-12-27 at 07:09 +0200, Jarkko Sakkinen wrote: > > On Thu, 2019-12-19 at 03:07 -0700, Jerry Snitselaar wrote: > > > > These patches take a usable system and make it unusable: > > > > > > > > 1ea32c83c699 tpm_tis_core: Set TPM_CHIP_FLAG_IRQ before probing for interrupts > > > > 5b359c7c4372 tpm_tis_core: Turn on the TPM before probing IRQ's > > > > > > > > ...they need to be reverted, or the regression needs to be fixed, but > > > > asserting that you fixed something else unrelated does not help. > > > > > > > > > > Reverting 1ea32c83c699 ("tpm_tis_core: Set TPM_CHIP_FLAG_IRQ before > > > probing for interrupts") would at least allow people impacted by this > > > to boot their systems without disabling the tpm, or blacklisting the > > > module while we figure this out. From what I can tell the tpm_tis code > > > was operating in that state since 570a36097f30 ("tpm: drop 'irq' from > > > struct tpm_vendor_specific") until Stefan's patch. > > > > I'll formalize a fix based on the reverts. > > > > Sorry for the holiday latency. > > OK, have a branch now for the PR: > > for-linus-v5.5-rc4 > > Note: now contains the first revert but I'll add another patch if required. Jerry, can you check this and send me revert to your earlier fix *if* required but first test with just this fix applied. Thanks. /Jarkko