Received: by 10.192.165.148 with SMTP id m20csp1099524imm; Thu, 10 May 2018 05:44:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoK8qXg5TIbOYpns9B3bymfNWyCWrUc0QfzIcgc3Kiyg85ywVM/slnSf6vMCstMLx0E7Mx+ X-Received: by 2002:a63:740c:: with SMTP id p12-v6mr1041680pgc.259.1525956293837; Thu, 10 May 2018 05:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525956293; cv=none; d=google.com; s=arc-20160816; b=UqJ8lQOMoFSeYqGajD7BgLltLwBGBqSvSgmllxYWW2CW3RB1aL0SlvLu6t/RjdNQB2 HQOc72eBlDxnijnZZyVwep8TyWJCHc1GQkChYo6scBuZglbByi3N6yeHg4lZ/CEqqgkq D2DTseePMqe+k1pdZe3FtHoQc3G6s2Y9C1phSSYVuLz3eK4ckMGYYuirR2r6XKfKIDwL Xthyc8Tnfg7RxTPs6QHtF4aaHKznWmtBm1Ck8Gj9nN0ipgV5N3wUw+KAgn8YIczYM5aB dOnWCbQI0DwT7GUPh3jaXaev6valETMZkp/YKLFrjmVlDHBCHxwYboj4clvSBHueZWX/ cPfQ== 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-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=gORmMPAfBtCaHI/ivjRJIEJEFoK0i/nWmr6KiHHcM/A=; b=0Db+rd3tSOUGpAA2shY/DJ8nA8wRpF4rnF17rL90oxNe4gzzB0KXCYyHya4yAPkIm3 4Ue6b8wfezsOIJO2ed/FAxZ4sXGRYCZFFrribrVrXABxsJYWphhHXTPQpyGUuA+cmKCz seBr4aGtAeMc85UxgSG806UN/ekbm+KYrxPU/TfnZVNPanmM84zBuntd5sdWgsdtT/gZ btz1liIQDMGYv+2Ufp0iXO00aNLo1YskYLa/V5R5ylJrg7O+BzvKW+Bvjn9flTwgE2sP PTo9nUgPbInT9p+vHSgv6oEjBVqwC13RucVysVdy99CPuFbND5ukB/0/8z8NmQc1Bpqt Dwdw== 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 z73-v6si790601pfj.197.2018.05.10.05.44.38; Thu, 10 May 2018 05:44:53 -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 S964829AbeEJMno (ORCPT + 99 others); Thu, 10 May 2018 08:43:44 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38182 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935523AbeEJMnm (ORCPT ); Thu, 10 May 2018 08:43:42 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4ACefSI103093 for ; Thu, 10 May 2018 08:43:41 -0400 Received: from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hvn5tk6qd-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 May 2018 08:43:40 -0400 Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 May 2018 08:43:40 -0400 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 10 May 2018 08:43:37 -0400 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4AChaF942205186; Thu, 10 May 2018 12:43:36 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 56D34AC03A; Thu, 10 May 2018 08:45:08 -0400 (EDT) Received: from [9.124.31.53] (unknown [9.124.31.53]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP id E2AA0AC043; Thu, 10 May 2018 08:45:05 -0400 (EDT) Subject: Re: [PATCH v3 1/2] tpm: reduce poll sleep time in tpm_transmit() To: J Freyensee , linux-integrity@vger.kernel.org Cc: zohar@linux.vnet.ibm.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, tpmdd@selhorst.net, jgunthorpe@obsidianresearch.com, patrickc@us.ibm.com References: <20180507160733.8817-1-nayna@linux.vnet.ibm.com> <20180507160733.8817-2-nayna@linux.vnet.ibm.com> From: Nayna Jain Date: Thu, 10 May 2018 18:11:50 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18051012-0056-0000-0000-0000044C6C40 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009000; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000259; SDB=6.01030247; UDB=6.00526509; IPR=6.00809378; MB=3.00021030; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-10 12:43:39 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051012-0057-0000-0000-000008907B35 Message-Id: <107cd9f7-69a3-dbb8-1a61-541172832a0c@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-10_05:,, 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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805100123 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/08/2018 10:04 PM, J Freyensee wrote: > >>           do { >> -            tpm_msleep(TPM_POLL_SLEEP); >> +            tpm_msleep(TPM_TIMEOUT_POLL); >> > I'm just curious why it was decided to still use tpm_msleep() here > instead of usleep_range() which was used in the 2nd patch. TPM_TIMEOUT_POLL is in msec i.e. 1 msec and usleep_range() is used only when timeout is needed in usecs. > > Otherwise, > > Acked-by: Jay Freyensee Thanks !! Thanks & Regards,     - Nayna