Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp15448346ybl; Tue, 31 Dec 2019 08:02:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyVQxzIvfb0fJEtB8F+fEc62q7ItF/cu2VM0Epzj42f4lRal21kJKJeqf/yjyXBGRWHmLSM X-Received: by 2002:a17:906:2894:: with SMTP id o20mr77486704ejd.199.1577808127888; Tue, 31 Dec 2019 08:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577808127; cv=none; d=google.com; s=arc-20160816; b=vLvyccFhQFA80OFTqQIWjTF69isL7oGGXn4kGZfNiAa4n3zIhbmMGdj8+ezdLa2A10 xcXjOyoXeukRFewHc0IwJBnGJrzhCoK48FUFHspOn2azKjn/XxWU6Tm+DAL/EQzh6LKA koPIhlQtQN0sSmgEIaDJRC4JaXXQ80oFSZKkqBUe4XDAT1G7L1PzN9TDDJe/ru3SRSBe EtCICKj074WAdrrmMBEOSFCNx/+qhSs+qebH2nP3Im+u9UFiocl7/BsgSxMV3RK/+M7D jDwEV2kQR9f+YrtcRlUw1W8hOFs9veBPZi9BuZ8uzyqrb3TX+sT9HE9lVA0TwU+NtqWn laTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date; bh=YdujKIeTYHWDoBQVpYVaVzH9Ld+YSY+g5H4qtlMqp6U=; b=p9ZiRVHl8BgFrzDliSqyn1yIJpX+IagEiwpzgawY7vLjl9m9JxgYFIfg8KiRhewLr9 h6BXWcSYOEu9ZDphvTd8RPpjDu9rJnSdNqnRqQOJRrIJH5kQuPSkaVkpZ+DtGxRqnwhZ Csht0e/1RsNtp0L1RQg/SSD0EQ6bt9GFdJpvaYcxJltFyP2RG4d0BmDVYjV5fpiwAUSd 5lojY9A2IECu4yk2pbNTBkHQToNC9BdGXS1FUY8zYFWNb8nbxM95iPTwV/00Vqum/uTx DrfaSuw3rrqcwLBY4y7ZGuQQPp3djDArq3Hx168+griGb6ptPi/IJWLRL77SxTIPRsZO 1teg== 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 qh13si31968313ejb.428.2019.12.31.08.01.40; Tue, 31 Dec 2019 08:02:07 -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 S1727075AbfLaQAI (ORCPT + 99 others); Tue, 31 Dec 2019 11:00:08 -0500 Received: from mga06.intel.com ([134.134.136.31]:41021 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfLaQAI (ORCPT ); Tue, 31 Dec 2019 11:00:08 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Dec 2019 08:00:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,379,1571727600"; d="scan'208";a="251737690" Received: from vmauer-mobl.ger.corp.intel.com (HELO localhost) ([10.252.22.151]) by fmsmga002.fm.intel.com with ESMTP; 31 Dec 2019 08:00:02 -0800 Date: Tue, 31 Dec 2019 18:00:01 +0200 From: Jarkko Sakkinen To: Dan Williams , Greg KH , Christian Bundy , Jason Gunthorpe , Peter Huewe , Stefan Berger , stable-commits@vger.kernel.org, linux-integrity@vger.kernel.org, Linux Kernel Mailing List Subject: Re: Patch "tpm_tis: reserve chip for duration of tpm_tis_core_init" has been added to the 5.4-stable tree Message-ID: <20191231155944.GA4790@linux.intel.com> References: <1577122577157232@kroah.com> <50217a688ffa56cf5f150ffd358daba2a88cad48.camel@linux.intel.com> <20191228151526.GA6971@linux.intel.com> <2c4a80e0d30bf1dfe89c6e3469d1dbfb008275fa.camel@linux.intel.com> <20191231010256.kymv4shwmx5jcmey@cantor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191231010256.kymv4shwmx5jcmey@cantor> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 30, 2019 at 06:02:56PM -0700, Jerry Snitselaar wrote: > On Tue Dec 31 19, Jarkko Sakkinen wrote: > > On Sun, 2019-12-29 at 23:41 -0800, Dan Williams wrote: > > > This looked like the wrong revert to me, and testing confirms that > > > this does not fix the problem. > > > > > > As I mentioned in the original report [1] the commit that bisect flagged was: > > > > > > 5b359c7c4372 tpm_tis_core: Turn on the TPM before probing IRQ's > > > > > > That commit moved tpm_chip_start() before irq probing. Commit > > > 21df4a8b6018 "tpm_tis: reserve chip for duration of tpm_tis_core_init" > > > does not appear to change anything in that regard. > > > > > > Perhaps this hardware has always had broken interrupts and needs to be > > > quirked off? I'm trying an experiment with tpm_tis_core.interrupts=0 > > > workaround. > > > > > > > > > [1]: https://lore.kernel.org/linux-integrity/CAA9_cmeLnHK4y+usQaWo72nUG3RNsripuZnS-koY4XTRC+mwJA@mail.gmail.com/ > > > > I think for short term, yes, it is better to revert the commits > > that make things more broken. > > > > for-linus-v5.5-rc5 branch contains three commits that exactly do > > this i.e. the reverts that Stefan sent and revert to Jerry's earlier > > commit. > > > > After that is out of the table it is easier to analyze how the code > > should be actually refactored. Like, I have no idea when I get > > local HW that can reproduce this and Jerry still seems to have the > > same issue. It'd be nice make the exactly right changes instead of > > reverts but situation is what it is. > > > > The only other thought I had was moving the tpm_chip_start/stop > into tpm_tis_probe_irq_single around the tpm_tis_gen_interrupt call. > I don't know why doing the clkrun bit after setting the interrupt > register values would matter, but I'm not sure what else there is > that would be different than when that stuff was happening in > down in tpm_try_transmit. Without hardware to poke at it is hard > to get anywhere. I think in the current timeframe it is better to reset to best known state like Dan suggested given the limited testing abilities. Hopefully Dan can test this after the holidays and I also informed about the branch here: https://bugzilla.kernel.org/show_bug.cgi?id=205935 /Jarkko