Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4526444ybl; Mon, 9 Dec 2019 12:17:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxY1rd40Jx8nW/Evmc2tZe+wzmSxCWp4ChK5vulNCCFHbdpMt88NMT8NE9c32r8poK7nayA X-Received: by 2002:aca:df07:: with SMTP id w7mr831140oig.145.1575922677691; Mon, 09 Dec 2019 12:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575922677; cv=none; d=google.com; s=arc-20160816; b=xL3yKBemuUWPtx0obttQkxXyFi8FrppLsggaFczcU8FutohBqx2gBKAMwdkOH3MLhZ t5SpMouFv6UFwNExAo25q8cxiSzaP6ev7upETauM9QWoSQwNVVC8FvhadWtEMZGCzS/x B/Qq1GVo2nu3aq6IP5R5QpugNX39U1jsEzIGgmtsq6vHfHyUiLyY/fHMdCaeUymXJjrb HZBIIBPnheqAb8CC47UgpLoWd1gSfhzuvZvtf2XHJdpRJjS4rNDZPMhxsGtzexbTDDc1 v6xhbp0baE/FD+y0hnq1KwlfPnksvd2qnV5z18FZUxJ2gOoLSIfqAEpFYoj8eUD+srfN RoEg== 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=N/kF1WIpPtFkmn9BFL2hm+qF5m/B3aiRnWmd0begDHg=; b=MCjkxZJNoXAornH03LzAE6twGHDME/9O7uwBVcLaAllqJ/r72VTe+rL/hQLFRs9m/1 4JNwnErKIO5jy52aGtra+vtD/WTcQiGW3WeYsHxtpZWXlPbHYg4HQ2Ggqv6reVbxvnSe RjO1ihbifG5h2hyNjo4pMC+Zt4h48s12ThMApNhusoygg9gWaqg40HVT04lrlQIYlAe+ nn66sB5y4iTuFPsS0ONvwgfbh3ll+gPGTwmsln+y16RThn/1CNwyfvJA2T88pwtKJwYj vYCe5um1h6P4bVGGPqBpAW9Vr1NHXZFZ1+7lasX2qe0vm9lBEWfcHw2jGnCCBXJ5MZSP A1Mw== 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 e15si537990otp.161.2019.12.09.12.17.45; Mon, 09 Dec 2019 12:17:57 -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 S1726665AbfLIURN (ORCPT + 99 others); Mon, 9 Dec 2019 15:17:13 -0500 Received: from mga05.intel.com ([192.55.52.43]:33839 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726598AbfLIURN (ORCPT ); Mon, 9 Dec 2019 15:17:13 -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 fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Dec 2019 12:17:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,296,1571727600"; d="scan'208";a="244585491" Received: from nshalmon-mobl.ger.corp.intel.com (HELO localhost) ([10.252.8.146]) by fmsmga002.fm.intel.com with ESMTP; 09 Dec 2019 12:17:09 -0800 Date: Mon, 9 Dec 2019 22:17:07 +0200 From: Jarkko Sakkinen To: Dan Williams , Linus Torvalds , Linux Kernel Mailing List , linux-integrity@vger.kernel.org, James Morris , Stefan Berger , stable Subject: Re: [GIT PULL] tpmdd updates for Linux v5.4 Message-ID: <20191209201707.GI19243@linux.intel.com> References: <20190902143121.pjnykevzlajlcrh6@linux.intel.com> <20191127205800.GA14290@linux.intel.com> <20191127205912.GB14290@linux.intel.com> <20191128012055.f3a6gq7bjpvuierx@cantor> <20191129235322.GB21546@linux.intel.com> <20191130001253.rtovohtfbg25uifm@cantor> <20191206211834.GD9971@linux.intel.com> <20191206230255.mhinntfevp6vdlkj@cantor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191206230255.mhinntfevp6vdlkj@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 Fri, Dec 06, 2019 at 04:02:55PM -0700, Jerry Snitselaar wrote: > On Fri Dec 06 19, Jarkko Sakkinen wrote: > > On Fri, Nov 29, 2019 at 05:12:53PM -0700, Jerry Snitselaar wrote: > > > On Sat Nov 30 19, Jarkko Sakkinen wrote: > > > > On Wed, Nov 27, 2019 at 06:20:55PM -0700, Jerry Snitselaar wrote: > > > > > There also was that other issue reported on the list about > > > > > tpm_tis_core_init failing when calling tpm_get_timeouts due to the > > > > > power gating changes. > > > > > > > > Please add a (lore.ko) link for reference to this thread. > > > > > > > > /Jarkko > > > > > > > > > > https://lore.kernel.org/linux-integrity/a60dadce-3650-44ce-8785-2f737ab9b993@www.fastmail.com/ > > > > tpm_chip_stop() probably causes the issue. That is why tpm2_probe() > > works and failure happens after that. > > > > tpm_chip_stop() should be called once at the end of the function. > > > > The patch I posted that fixed the issue for him moved the > tpm_chip_start() from the irq probing section right below there to > before the tpm_get_timeouts call, but your idea is better. Yes, the chip can be reserved for the whole course of the function because it is single user at that point. > Any thoughts on the irq issue? I need to go back and look at the older > commits again, but before Stefan's patch enabling the irq flag I'm not > sure the last time that testing code section in tpm_tis_send was > actually used. I think prior to that it always just went straight to > tpm_tis_send_main. I'd prefer to look it up with the fix for start/stop because it is a regression on its own and mixed effect is not great way to analyze anything. So what we need is a T490S owner to provide klog with the fix applied. /Jarkko