Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2992365imc; Wed, 13 Mar 2019 06:24:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+QKvX4gHhSGRruH8s1H7C9XxmZ7UiITigYuAbQxSsSxxCkOkOdOhxCXg9aQvbtYmJ3CTg X-Received: by 2002:a17:902:728a:: with SMTP id d10mr18414989pll.293.1552483441189; Wed, 13 Mar 2019 06:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552483441; cv=none; d=google.com; s=arc-20160816; b=G/MYCWZH56M5Mr7aesam6a3M2NgUHDZK/ujjySRiay25+V+/6SxQkXGQZFpyWU/C75 6XDqXqT0CGmr0/twvvAxdfOyISwHzr6YfN2MtS08+EKhJp/5kEBf/+u0DeA+06obMAow 2lO55jRdvkCfBNGKNrYRtMZZof2nQ3RFjb/ppIjmAd6OffEFr4eAGbQFrMddNLSym8jO CJFOzb8tasqfvPwaglOlv8i2ttvrHQM9Vwx3k/hT7uqTwdek+2OfnlALodUtJwRn7nrA 8CfA2D/YU/oHRZLvvnt08wDMJdMaA+sqjJoYMlUNklSu7Ctzqfsyr98So39/zC5lVT// bjlA== 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=aTSEo0kx013govKL0qT6tXZuRIu4Qu6QSt/JkkABSY4=; b=RA2Bak+WLdPOGDAySju7WndsJrL5OzDUdf/xIEDQi6CMJG8KE0+noNLypO7szcCiWb zRK5i47A8uwTCOnbKpx1e8uRf7AAmfOSxMHEyWQKm6XH0C54/h4AF5PGxgCxu/u1/AbQ 9CKvNCTijxXUrR7sv7nyVvLYlxpv3fNJN5XNqtkKM6bjEHXSpTwkqwYyPpJnbkgxZETs 74+Mes8H5IlQXRbgaIWyJzGjzzKtUfY5Ij4IhRTggyZEmpC6mddkxgXb34Yv1sjctTI6 KJ+eHLxvSyTdMEoPT8T+DwXqoTKPnPv5RmbRMJBUGb7WFH3yLFkoQlMduKCie3Z1kabo v0nQ== 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 w4si7144687ply.285.2019.03.13.06.23.44; Wed, 13 Mar 2019 06:24:01 -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 S1726654AbfCMNWi (ORCPT + 99 others); Wed, 13 Mar 2019 09:22:38 -0400 Received: from mga17.intel.com ([192.55.52.151]:9210 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbfCMNWh (ORCPT ); Wed, 13 Mar 2019 09:22:37 -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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2019 06:22:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,474,1544515200"; d="scan'208";a="126580762" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.103]) by orsmga006.jf.intel.com with ESMTP; 13 Mar 2019 06:22:33 -0700 Date: Wed, 13 Mar 2019 15:22:32 +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: <20190313132232.GB4261@linux.intel.com> References: <358e89ed2b766d51b5f57abf31ab7a925ac63379.1552348123.git.calvinowens@fb.com> <1552410298.24794.73.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1552410298.24794.73.camel@linux.ibm.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 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... /Jarkko