Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp314723ybm; Tue, 26 May 2020 18:00:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywZ5CJJzXq0oaCNcsCVIRy/QhClhZpHHIhbUbw0Wfw5SNstTm1bIfr80+2CTvd+8tJsRut X-Received: by 2002:a17:906:39d9:: with SMTP id i25mr3377144eje.510.1590541205799; Tue, 26 May 2020 18:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590541205; cv=none; d=google.com; s=arc-20160816; b=Y1iYxXhMsS1oOraI6zlW/io1T7AbHP/+GqEayCf/inY/n86fOR8Lc2v1t5HwkXEiyD YP11ZxqSuhEbvD2XgwoYfP0mbUuLktbMTyHfW9BQpjPAxgBUAPAmQ+5mV4B2IL4wbSYE 5r1w3x/yt9UzgD5lypwSUbNh1aodzgZB9yU4vg6MEaprLicK2nqZS79y28v5PeILXHtn eomIrsmjYWWgjowd7ZEY2ZMKBihUwI5nN0REyt7PbcZxlDXo66noMqS6ebJYgk/7/M/w ZyF8aEyIupsFgWRamkyRpYxHxCDMmKt7VPvyUk3DenSFQEwCmMsPtQIVg26C/3PU1w3t PxVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=j3hVOp0liWWCUJVNOiyTPzyXy/QJ2NvCerFTV87ycss=; b=jUxy8JdOBxsSuEm5C7oTW2DRC+yRWyw7uUir0YF5EzNJIrGoHjLC9LGamVUAcd2sZ9 T4NiCOsaW+eLe/kfrXQaZtwJlJIa6xglvo8CM67e+kiM5u9zWxkqrJ9VPci7uIysMX6n kpgNUL1h54IV6G0/Xu8B4xcmxFkLaYh9rmr12qjxBKsbFnDsellf4nK5ZSHsuN7M4nsi x70jBFKD7HLkgmT3SgYQtZWITDCFKv63RFQgJWtfDYuaadxKEqUuu33VZjM8bxnQ5bso wW938ixeqVIXhII+gfqwsWJYik+IQLO5ufMSAi0foFdoD7P2qQZ28jn8EA/OPoXnISSz UmtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GGjDmsOg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id y14si868331edt.220.2020.05.26.17.59.42; Tue, 26 May 2020 18:00:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GGjDmsOg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2389796AbgEZVdR (ORCPT + 99 others); Tue, 26 May 2020 17:33:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388740AbgEZVdP (ORCPT ); Tue, 26 May 2020 17:33:15 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31A0BC061A0F; Tue, 26 May 2020 14:33:15 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id p30so10679871pgl.11; Tue, 26 May 2020 14:33:15 -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-language:content-transfer-encoding; bh=j3hVOp0liWWCUJVNOiyTPzyXy/QJ2NvCerFTV87ycss=; b=GGjDmsOgTTiI7R3BLlJU0vbgxubrZ+ftnl+Kxc9bQzyy6vDvKwg9v/AqfXsXUU0IDK ZRplh83OMgY21yAFIstEpcR+9ctXjScECvQtGp22jjO/MuE7a0XBeSdKzDVBt0za/a1J tAH6yK88ahQBRMmXsqpZrBYXMBrzQ0UjkIW7mVcqm5MNRHQe3oypGxbI3H4tLns0wgyb 7ANZp1vnP3+ZOA9iirLWvk4DNmiOUycwOSIBDWNVImUXUqTnsL8arQgpIwdOZuXzZxC7 WzqKdRY267IApA3aeh9NSDrI1XQSegY6BDlvoovndg2aRxpRfXUv7qg8cPt4FbRSsbXr hYZg== 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-language :content-transfer-encoding; bh=j3hVOp0liWWCUJVNOiyTPzyXy/QJ2NvCerFTV87ycss=; b=CdtODL+iPgA4CEqWxyFU/e1fgpWDOEdko+o+3kTuO11Vy9swJXRIqCw/Yg1K2D75WS f0L1CFb8M0kJ9ddMvIA/HC6kcQHpj8NIoIveZz0jkrffTNqPN2Mebj5nZUjjTGhONOeY WDbc8pzI5r0Rz4WhyjLgPyAiLTaIb5EuXgor2qoLxPP4pw8qkDqYYg46zq14E6BlfLjS sUqi1idgeB23jygmh+P3HP2eSRU/WowSLUZpOLJgDyTPgtyFx5oKdE7zoj3ZYViq/Hfx jmbgh27/4yBVMnZMxwBkvs1/G2B7uM/h2rMelrXfZN2/uo393iSA9GoI5O3ZRWbocwmv 1xww== X-Gm-Message-State: AOAM532vWzOXnm5jBTYGKninDmO511EpXUlCOu2yg2Bo3xwYcl3D/F6h e2fT9FzpV9jHwl2dPVT00/LrFSGy7aY= X-Received: by 2002:a62:834b:: with SMTP id h72mr712713pfe.237.1590528794658; Tue, 26 May 2020 14:33:14 -0700 (PDT) Received: from [192.168.1.5] ([75.164.7.205]) by smtp.gmail.com with ESMTPSA id p1sm352318pjz.36.2020.05.26.14.33.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 May 2020 14:33:13 -0700 (PDT) Subject: Re: [PATCH] tpm: Revert "tpm: fix invalid locking in NONBLOCKING mode" To: James Bottomley , Mario Limonciello , Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Jeffrin Jose T , Alex Guzman References: <20200526183213.20720-1-mario.limonciello@dell.com> <1590520454.11810.40.camel@HansenPartnership.com> <1590523214.15108.4.camel@HansenPartnership.com> From: Tadeusz Struk Message-ID: <705c9df6-e8cd-2829-c579-2bf039360eec@gmail.com> Date: Tue, 26 May 2020 14:33:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <1590523214.15108.4.camel@HansenPartnership.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/26/20 1:00 PM, James Bottomley wrote: > I don't think there is a root cause other than a TIS TPM is getting > annoyed by us cycling localities too rapidly because we don't do an > actual TPM operation between request and relinquish. Since the first > request/relinquish seems unnecessary for the async case, moving the ops > get eliminates the problem. Could be, so maybe we could try both patches. More debug info on the error path won't hurt. Thanks, Tadeusz