Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19085648ybl; Fri, 3 Jan 2020 15:31:23 -0800 (PST) X-Google-Smtp-Source: APXvYqy0zj8xLnBrv4iAP7SAIjdmBaydMPcgp0W8x3nGViVhoxZclW7v1DusfRDs/DtX7ggjJxI3 X-Received: by 2002:a9d:7ada:: with SMTP id m26mr4763722otn.111.1578094283688; Fri, 03 Jan 2020 15:31:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578094283; cv=none; d=google.com; s=arc-20160816; b=AVvbe5PnYuunEhZgLfBkBSI5cC6a/zR3AHnqjjv0/cP0ttfj+PaLxSNHhCKEb2kO4l hoiBW652iN7G5CvErrkpF4U0DEdw4aJK2tzcEoW4uaTj5P0oT3ltAzeypxzwf929Hm3d O13ohmSzhOJIvQqytNmUf7d4LSn1a0zkzHehJKh3Rgf12gu5C5KU4Bn9clzMs93vKCn+ 1M3YVO8CEsX+HF1YZB61/rcL25gKiyy3gnMtC59rrre/PeSYAWmO/8YGHWTJCzWT6Wy3 Va2erkkpoa/PdQzx/aID99QDIcLJWoqCv3DXBpk2MLSC0zo+T2hn2Gdx/d2fH4HrXv17 nFFQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=apcr7cFciz02f0VXqTgPxsZUUP0vQf1L8+Zuymu9gIw=; b=qaQgYBwXeH5W/hrMIXhOiLasjz0mwpTFuIHzDSwlxF2OTsLoMXgx5D6UPxU/EtR+27 QbYLYutancrSHPPugFDsUYhoNBKeB1mLGykxnErtqzBqx61NXCG+XqNdTAlTmCfH7LJh vA2amc4wQ7dyz6O74915N50UFkbR0smV+HkkT2QVS0dqdEunqew1SJZqCQBohWPJQVnq TdlhiQ2aLjm5T1vBIgToUruCgq/5ai2sPTbWnHZ/e9QRWaS2tV5ya8UZmIBPjcsNBXee mi+08lgLgCf88IUO+b/oPxnjBnUPXmIy+p5TOQ5yka6W8H+qiADmuXgppF+1YgkYUPPj 8GLA== 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 i5si30871313oif.211.2020.01.03.15.31.11; Fri, 03 Jan 2020 15:31:23 -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 S1727036AbgACXaG (ORCPT + 99 others); Fri, 3 Jan 2020 18:30:06 -0500 Received: from mga12.intel.com ([192.55.52.136]:50928 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726118AbgACXaG (ORCPT ); Fri, 3 Jan 2020 18:30:06 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jan 2020 15:30:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,392,1571727600"; d="scan'208";a="216899836" Received: from hkarray-mobl.ger.corp.intel.com (HELO localhost) ([10.252.22.101]) by fmsmga008.fm.intel.com with ESMTP; 03 Jan 2020 15:30:01 -0800 From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: Stefan Berger , stable@vger.kernel.org, Jerry Snitselaar , Dan Williams , Xiaoping Zhou , Jarkko Sakkinen , Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org (open list) Subject: [PATCH for-linus-v5.5-rc6 3/3] tpm: Revert "tpm_tis_core: Turn on the TPM before probing IRQ's" Date: Sat, 4 Jan 2020 01:29:34 +0200 Message-Id: <20200103232935.11314-4-jarkko.sakkinen@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200103232935.11314-1-jarkko.sakkinen@linux.intel.com> References: <20200103232935.11314-1-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Berger There has been a bunch of reports (one from kernel bugzilla linked) reporting that when this commit is applied it causes on some machines boot freezes. Unfortunately hardware where this commit causes a failure is not widely available (only one I'm aware is Lenovo T490), which means we cannot predict yet how long it will take to properly fix tpm_tis interrupt probing. Thus, the least worst short term action is to revert the code to the state before this commit. In long term we need fix the tpm_tis probing code to work on machines that Stefan's fix was supposed to fix. Fixes: 21df4a8b6018 ("tpm_tis: reserve chip for duration of tpm_tis_core_init") Link: https://bugzilla.kernel.org/show_bug.cgi?id=205935 Cc: stable@vger.kernel.org Cc: Jerry Snitselaar Cc: Dan Williams Tested-by: Dan Williams Tested-by: Xiaoping Zhou Signed-off-by: Stefan Berger Reported-by: Jerry Snitselaar Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/char/tpm/tpm_tis_core.c b/drivers/char/tpm/tpm_tis_core.c index 5dc52c4e2292..27c6ca031e23 100644 --- a/drivers/char/tpm/tpm_tis_core.c +++ b/drivers/char/tpm/tpm_tis_core.c @@ -1059,7 +1059,6 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq, goto out_err; } - tpm_chip_start(chip); if (irq) { tpm_tis_probe_irq_single(chip, intmask, IRQF_SHARED, irq); @@ -1069,7 +1068,6 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq, } else { tpm_tis_probe_irq(chip, intmask); } - tpm_chip_stop(chip); } rc = tpm_chip_register(chip); -- 2.20.1