Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10590667ybl; Thu, 26 Dec 2019 21:43:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwmv13nU0VZ5K+rkLNIJzD0+bL/qem0IVDI/+ZrX4LPWVReOpXneo4I/SwxjN8VSo5fnAzj X-Received: by 2002:a05:6830:1d7b:: with SMTP id l27mr51071965oti.251.1577425396546; Thu, 26 Dec 2019 21:43:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577425396; cv=none; d=google.com; s=arc-20160816; b=COI9pj1NXCCeABXzY7dkAoBI0LbfTVR9EUdMPm6jBOCP/B4lsPMoLXrwaKL6CFtClV akOF/mkYxEl0RLmCfr68WHpRZ7VSRwM6VimeV8PP55Ql40H0+YJJWORb33LVMSFqwdU6 StzmB+QqfMlAvlElDja56+UQ1wJsl9hmtjUcVT9kr2QK05cMMc0khrRhRvATN1xv5V+x yHy8lYoucRWZffVtctNa7x2L7/jluYf0Z2YiYhuRcXf89eQXY9hH3Xiz12gGbJauEP7j TwF6iS5RpNqbX5fYEfF5KM9/U0ZDryvFWXcsNndxN0z/9iBWcfeWxlGt1fN3sXsFnsYt dD6Q== 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=nRRMs/NPL3mFf9MzET36haIjKetYKb1K1VYD24uV6Ug=; b=lyhB3RgJfcdcvJ2dJmfFpKiXF+sEj/9nd0qrkYrtbL/9rgamqDuu6eGkv9Jy4buyzZ G6hziUu182YoeYok/tbVUKhCc4NVma/xg3c61zwUJtYWfUcUibMVhhiwo6yIhV629C/2 93NqUvo4yf/huFnWkQW8flJRDxuokQ9VrxpAuj4rxSWoVqIbaHKX8gwzytiUMZZDXkax KoWTtjGEmlxS4CK7CJsw4ahrzbEpgsMQaXICgRa11hxXhl7KiG8IpC2pc67BVpkNYGjw NNm9L7BNjmFpRbSeLNxT2cSi6DAR1it6WH1bn+8x5UaT28LVETO164D7DQDOQi5VizQJ mHjQ== 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 w18si18419923otl.54.2019.12.26.21.43.04; Thu, 26 Dec 2019 21:43:16 -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 S1726270AbfL0Fm0 (ORCPT + 99 others); Fri, 27 Dec 2019 00:42:26 -0500 Received: from mga07.intel.com ([134.134.136.100]:60664 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbfL0Fm0 (ORCPT ); Fri, 27 Dec 2019 00:42:26 -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 orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Dec 2019 21:42:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,361,1571727600"; d="scan'208";a="250560953" Received: from psklarow-mobl.ger.corp.intel.com ([10.252.31.109]) by fmsmga002.fm.intel.com with ESMTP; 26 Dec 2019 21:42:21 -0800 Message-ID: <0f355936c954847089d9e8fb579e30bf8ca43a0e.camel@linux.intel.com> 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 07:42:21 +0200 In-Reply-To: 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> 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: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. /Jarkko