Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2993685imc; Wed, 13 Mar 2019 06:25:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNdxOsW6nYZNy09M2FcKaNBf/7lPeqpG2pvjKUkxGeDDxtA3YRMS78HZfPIxiGWIuGQQ1k X-Received: by 2002:a63:2bd5:: with SMTP id r204mr40714789pgr.48.1552483549676; Wed, 13 Mar 2019 06:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552483549; cv=none; d=google.com; s=arc-20160816; b=LRAp3SIRfCICr1toZbZIPTecwe7jS+aOe7X8hoiRsJilbrBbevDLZHSHylYlOxzjtC jy2r332IG2HTPlFQzjMlwGNKss3vyBqJtfcrjlER9O/grop9xnfFITTGD/M/WabNoyG9 uOlzmyQG8rqj1EVhv6elT7WmwopIKjM0buJo9JcnIyf+GINHdYIoiy3nHtpYBxUqGFzS +rM2ROi+4yPPPAKo+s8IkJPwZcWOY76/KvfThRj+qY8978wRkjdgMZEmJMFDFpuUGije GzVBEKCoM5bLn3hghW90yB6jcnT9RM2PybJdhPot1w1HUZjNsI04mrLlzdNhHC4DWF4B K8lw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yLA8XLXQ0wbxqvwkvf6T3E4pzLqsHUFd8QhEyTVzJp0=; b=ZNTELHetsDe83+f9sQMy6eM3LYVNQgzTPgnyiVlFFxErr8gCzmSbjtK1jGpWHS/voS DSMP7lAZgzuPirxGqssZOHfD8egESpwCryh2kP1cavkPw82tC0Bvvj6LZgk8Fi01ZcNg U411VJMHobRu6VZOtPhGzLgPzW4KFVakioFB3Tsr7z2U7fSsUcR6k9R4W0zQz7v+qqKl ReIoxYi+32lM8uoHuM7oZHBb5j+8Eu5zt9yiK8SOWMspZ47DU02mkUCgE5NA2dH2ZdHX whq1iotf/aJGmnoXvwFz71+WBa18MVd6Dt2as0VBuBe36OGPxOiHHd5XlA/wuSHZTitc +qeA== 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 n129si10337945pgn.69.2019.03.13.06.25.32; Wed, 13 Mar 2019 06:25:49 -0700 (PDT) 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 S1726582AbfCMNX5 (ORCPT + 99 others); Wed, 13 Mar 2019 09:23:57 -0400 Received: from mga05.intel.com ([192.55.52.43]:3991 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbfCMNX5 (ORCPT ); Wed, 13 Mar 2019 09:23:57 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2019 06:23:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,474,1544515200"; d="scan'208";a="126580905" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.103]) by orsmga006.jf.intel.com with ESMTP; 13 Mar 2019 06:23:53 -0700 Date: Wed, 13 Mar 2019 15:23:53 +0200 From: Jarkko Sakkinen To: Mimi Zohar Cc: Calvin Owens , Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] tpm: Make timeout logic simpler and more robust Message-ID: <20190313132353.GC4261@linux.intel.com> References: <358e89ed2b766d51b5f57abf31ab7a925ac63379.1552348123.git.calvinowens@fb.com> <1552410298.24794.73.camel@linux.ibm.com> <20190313132232.GB4261@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190313132232.GB4261@linux.intel.com> 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 Wed, Mar 13, 2019 at 03:22:32PM +0200, Jarkko Sakkinen wrote: > On Tue, Mar 12, 2019 at 01:04:58PM -0400, Mimi Zohar wrote: > > On Mon, 2019-03-11 at 16:54 -0700, Calvin Owens wrote: > > > We're having lots of problems with TPM commands timing out, and we're > > > seeing these problems across lots of different hardware (both v1/v2). > > > > > > I instrumented the driver to collect latency data, but I wasn't able to > > > find any specific timeout to fix: it seems like many of them are too > > > aggressive. So I tried replacing all the timeout logic with a single > > > universal long timeout, and found that makes our TPMs 100% reliable. > > > > > > Given that this timeout logic is very complex, problematic, and appears > > > to serve no real purpose, I propose simply deleting all of it. > > > > Normally before sending such a massive change like this, included in > > the bug report or patch description, there would be some indication as > > to which kernel introduced a regression. ?Has this always been a > > problem? ?Is this something new? ?How new? > > Also: is the problem in timeouts, durations or both. Does make sense > to fix something that isn't broken... And maybe the fix is a too big hammer. We could possibly just decrease the granularity but fully take it away. /Jarkko