Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2331854imc; Tue, 12 Mar 2019 11:33:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6cKTOn/6CAeLOX3DGeKunmPhoPf5FUn6MRc0BkGo7Cdt/NcgxNrotGO+GslpiXhUTjmQ4 X-Received: by 2002:a17:902:2888:: with SMTP id f8mr41653442plb.244.1552415601009; Tue, 12 Mar 2019 11:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552415601; cv=none; d=google.com; s=arc-20160816; b=vl/1wKfaJ0J8sOqZ57NOMUqkfN251vtvts+/7VYjQMnPDPl9I+PkrCLjnuW2LngkAV 7itWvIdmku1X9qf+zs/438H9zcTlTXCN75X1bBi5kGV9LHqrAtCjPXZ7giSiYAA81Mp+ DaGXVPeZVb1BmgZ7ZXc8ANLzrN8/8YLQ72OYR4P7jitwYwrCz92xAe+dD53PcGOPZcwv Z6zI9qWdLD96kXfDFTx/lHW5m5tdqwhhtRB/D9eeJ2NQZyND78ju8DbGrzP50aKCO4MY pHNFDh+DagJtwsWdjfLoBsmxczQg33ZHqnct/aInUsG6Ocj3IgwOPivm7gBvB8eIppIK zs3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=PxHm/jOnk9WMG5kNuDlAIMJNVI0wiqw1mTCOWO3tyW0=; b=TqjsmZGVR7CRc3vzIPFW9LIOczXNo3B5gVflPLzjaQcWNS1XpK8XVJ7GyRz9pK4IOk nMzwCKj0GxW4PKDXbmu7gpO2oPQFsoqCv97+Jwi1iDaDh5bR4RiWmv9UgZejILfKPrrB PkrEveKwUDRRD7meJ7D/62XDwNU+r2/ibUtk+G+ql+QaajqzgAPjAn4J3TRZp0KnaA1s OPG1fM1FRb5kjdfjch0ra0Gx1F6WM8zaWpIOwvxcIfg2iqdnh15iD4PQc4DQSIjOR8Pm eFrOruWKhKm0bYMPijAhBHkfzhjr7dB6qolrwYxOvo43pPyajYWyHOfbdIGvOLpTXSnX Es3Q== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si7956321pgf.247.2019.03.12.11.33.04; Tue, 12 Mar 2019 11:33:20 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbfCLScU (ORCPT + 99 others); Tue, 12 Mar 2019 14:32:20 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:40910 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbfCLScU (ORCPT ); Tue, 12 Mar 2019 14:32:20 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2CISjlO053947 for ; Tue, 12 Mar 2019 14:32:18 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2r6gjmnxw2-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 12 Mar 2019 14:32:18 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 12 Mar 2019 18:32:16 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 12 Mar 2019 18:32:12 -0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x2CIWB4l25559154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Mar 2019 18:32:12 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DE03842042; Tue, 12 Mar 2019 18:32:11 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A252D4204B; Tue, 12 Mar 2019 18:32:10 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.93.217]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 12 Mar 2019 18:32:10 +0000 (GMT) Subject: Re: [PATCH] tpm: Make timeout logic simpler and more robust From: Mimi Zohar To: James Bottomley , Jarkko Sakkinen , Peter =?ISO-8859-1?Q?H=FCwe?= Cc: Calvin Owens , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Date: Tue, 12 Mar 2019 14:32:00 -0400 In-Reply-To: <1552410856.3083.28.camel@HansenPartnership.com> References: <358e89ed2b766d51b5f57abf31ab7a925ac63379.1552348123.git.calvinowens@fb.com> <1552350463.23859.8.camel@HansenPartnership.com> <20190312125028.GC9243@linux.intel.com> <1552401766.3083.3.camel@HansenPartnership.com> <1552409969.24794.68.camel@linux.ibm.com> <1552410856.3083.28.camel@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19031218-0020-0000-0000-00000321C0AC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19031218-0021-0000-0000-00002173EDB1 Message-Id: <1552415520.24794.87.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-12_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903120125 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-03-12 at 10:14 -0700, James Bottomley wrote: > > > However, I am saying we should root cause this problem rather than > > > take a blind shot at the apparent timeout complexity. My timeout > > > instability is definitely related to the polling adjustments, so > > > it's not unreasonable to think Facebooks might be as well. > > > > James, I thought Peter sent you a tis "debug" tool to help you debug > > the problem you're seeing. Whatever happened? https://patchwork.kernel.org/patch/10520247/#22107607 > > No, not seen one. I have tried to debug the problem, but it's really > odd: my TPM is a polled nuvoton (so no irq line). If you poll the data > ready bit on my TPM too often, it simply drops off the bus and every > TPM operation after that times out. The only way to recover is to > reboot. > > James >