Received: by 10.192.165.148 with SMTP id m20csp4512494imm; Tue, 8 May 2018 09:34:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpIYuGaBcCaqJ+eb8/XQMDVtoVbe7Fpvy/uQdMG+itwMfM3GUlkw171Eyid5BF467RxHvWp X-Received: by 10.98.33.151 with SMTP id o23mr40967388pfj.202.1525797274328; Tue, 08 May 2018 09:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525797274; cv=none; d=google.com; s=arc-20160816; b=J3hATIvj7GwweLRetp66iejY38DU6OkaVw64IG8QDU1fXiP1Ys79hwiGbwfO2w8+4D BxHFgJ4xvAGDkj+b58Zks7s6hRmoaKiax8O9Oz+ceOZMn11WrNrHoRY37+KujJ1fFHDT H2lAXBXqmyPAqBmr4LfmsE9TFmIYkNaI6VyxpEoW3PbGcoLXOaDxebScELkjXQLUxIVC Rf4nruLuaEJGcOx0WFUj09VzRoV5vp/iEP8Z0DIzRcT/hSAnQ8svoA6+eOGfTEijUQQY IFGdWQUwceMYcmnBkClcI+tazDCrHhnyhNPLWIejjJO4UIlOmFvgRTk4ElJs9ow4zi8+ QaTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=mf42+U3OEfXgA3J9txogrLhaL9ZWmfMm4MB/6dx9F/o=; b=0KyuFqYLQnmccxDbq177XONsSEEiqUoECjgmcYk67u0bVSJzYY9LkysDvlcM285wy3 MW4EOCAGiGDlG29JaVf9yNfd7q4oatvJaMfOzRIg1rt0SQTmTzKu6ctsqNeJjtE6ZW7e JELtqld+KT3ZkbdTw+8bxnQKzXzorGJS9mj3aUxZNSCO/9c1DPEwVdRev6utFPgAPL6t E929sV/Hbt1gHw5q1/y41v66Hwf/PRUZcHLPqSMnxqfZrmAIhulivcwsBUOyWo0Xjga1 TQcQe8SOp+x2RBhu5geTpdNm2knPv+1R7lGC2mFQwwSKKL+5hex0OYDl39AOL8+2Ni+f KSww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KV6Ms6Ou; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f89-v6si25284897plf.488.2018.05.08.09.34.19; Tue, 08 May 2018 09:34:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KV6Ms6Ou; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932982AbeEHQeK (ORCPT + 99 others); Tue, 8 May 2018 12:34:10 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:45195 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754736AbeEHQeH (ORCPT ); Tue, 8 May 2018 12:34:07 -0400 Received: by mail-pf0-f175.google.com with SMTP id c10so24208141pfi.12; Tue, 08 May 2018 09:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=mf42+U3OEfXgA3J9txogrLhaL9ZWmfMm4MB/6dx9F/o=; b=KV6Ms6OukRs5U3oM7QYcdCJRpln4AVT/DBvgK3jvTwhJhO0RXBqUdH1eM0XwJu6eAg HpSWGesB9gGdM0cdQBfQO3jap6KWgF586eCHGsyD5B0gqdApGA18dc3xWs1Mi9P/LjL0 dHgXi/7C5G2O6SAPwowGARZX/Fdt+2AU6I6Cocz4uvv/9o6wSsexZY404NA+NWjrJwbG IZwUpD867dsa7ajX0oToNNFda6uSNx68YDFPRxppmCUgilKSL7V5yWWCgixvdZgehBPa GR8zNZWJ2FgpJu2X6oVeWEoKRMWOIzEssGPt1lbRZfFNMcNtwSOjpaTRT9ECth3GActn VYvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=mf42+U3OEfXgA3J9txogrLhaL9ZWmfMm4MB/6dx9F/o=; b=awNfYWxNb5PxBq9Xptxsg9d8gH9OpwZYM3ApQOtrxlEkVdl9zQ4egjgfvNQQlWBSUc QKWSoE5Gr2etf3cN1+07bSAzWcMM/Uw8fIdbPhITBa5cpZof2giCQn6yNFJ2CD0ozptM LXGrPUTmc6kmzDsYsROFfPN5GiUhUYjJPd10iTDhtFtns5kuuWtT3xf+t6TcsgGnUgNu Xh2iErtArLF0EruZIkSBWcVJHK320tQROWwn2aKQXwSpw1oHh3Si+Bt1RewCSiCa1Ne1 5WOlDmu1kBSE3MxEQtXonJ+v1x9ldGXUfWwcUppjsXWaKs5Kxd6wNTCH699pCFgE7sw0 tJ8A== X-Gm-Message-State: ALQs6tCSKkMEZtQg1WsIXJ3gQfC/3wwee7vU2DH02MnByUCF22XAI2l9 Sn6fvMnbtNaEdd3a0kgymFk= X-Received: by 10.98.80.80 with SMTP id e77mr41147417pfb.16.1525797247044; Tue, 08 May 2018 09:34:07 -0700 (PDT) Received: from JF-EN-C02V905BHTDF.tld ([12.111.169.54]) by smtp.gmail.com with ESMTPSA id k2sm5993424pfg.82.2018.05.08.09.34.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 09:34:06 -0700 (PDT) Subject: Re: [PATCH v3 1/2] tpm: reduce poll sleep time in tpm_transmit() To: Nayna Jain , 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: J Freyensee Message-ID: Date: Tue, 8 May 2018 09:34:03 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180507160733.8817-2-nayna@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. Otherwise, Acked-by: Jay Freyensee