Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp562448ybm; Wed, 27 May 2020 02:23:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/9//91UMCvfO7V+O5t7XjL1dbMIuqfCrzICmBjSsEXm+4GcBhOGqxm5OGVA6X+sesDCNn X-Received: by 2002:a17:907:4426:: with SMTP id mv6mr5347057ejb.440.1590571404093; Wed, 27 May 2020 02:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590571404; cv=none; d=google.com; s=arc-20160816; b=LHOIqeC8NXbQYJI8b2FEQgL4/1sfL17f/WFmXCiQ9PqXtV8cWajKMTf0HnHVDqUwbJ N2AoPlBin2ow9J/VeKD5sI05hcaEah9RLbWDWjJmatNFGpyyp4F8JmqF89NbsZrDUKfn +PZEwO6WBv+dqXk7xjX/nyvYqGWc8M9MdweQ4X1HOI450t6bPb+FzUv4/LulMvv7/RZH sgjkPyXTESq2fCvATMoauu0DBy/yDpKBI8ssrec2YX/iz95EElh66sLDwyFx8/NH/2FS c+cb9sko2gQuvQBYJHjwJA5G/3dPX3Gdc67Papp/ERNe4T5T2JQ6PXqT3exUZZz9CZUC KG2w== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=rc0ztywtDtdFivmaKBhxTDL3VYNzhzekzPPhJ2NZpLY=; b=R4wZ2rvIU+jGks8sSimsFMvmKf3GpBF/gpCHYm2CvHFzty53aZXmprgxKl/SWxWmre mGu+DEv++/kf8SByU97T344BbqqYgIU/UPrXz5mmQvgPymhEzGEeIylU3ypeSa3xPN0T ppG5JgydXLg97SkB2hSvmcRm+4AAVyNgLGq3OgOcvUxIo+2C6Ii+EBkHCn613Jt4o3Pw ji056F8gThXZhNjJ9MEgIoq5nsVwt30gwiSLPKxtnEdx/++oawCNTXssu7tfKrnjbV9Y 6qcWi9MeqGqXXNaJWirt4epdqlCE2uDZffwTGt1jP17/gu87kv0R3s+N1rW4ckUqiGUT /tLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@guzman.io header.s=google header.b=K1w2VEUJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si749846edg.563.2020.05.27.02.22.59; Wed, 27 May 2020 02:23:24 -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=@guzman.io header.s=google header.b=K1w2VEUJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404432AbgEZWfA (ORCPT + 99 others); Tue, 26 May 2020 18:35:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404420AbgEZWfA (ORCPT ); Tue, 26 May 2020 18:35:00 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DC7FC061A0F for ; Tue, 26 May 2020 15:34:59 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id d10so10779692pgn.4 for ; Tue, 26 May 2020 15:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guzman.io; s=google; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=rc0ztywtDtdFivmaKBhxTDL3VYNzhzekzPPhJ2NZpLY=; b=K1w2VEUJFRCNmdKIEN6fzcAz45I8IqIXhkYy7dZoZ9CqByVri0wJpgw6ppL0Vf6shS E4VaBNm/EXE17Xdh/XAts/vxCFDPtf80lqfWWmKDhXo6uMUdbnnykRrEBYka1DMDoJxW Kne0gM4h8M9f1d/SLaE05gxVF4ETTfdya61DE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=rc0ztywtDtdFivmaKBhxTDL3VYNzhzekzPPhJ2NZpLY=; b=e1brKe5F9q2uMWbAtIGO/eHVW6N2bppPjz+69NkxAfYIVso5YXnxiv+K+7ZiEDyQ3Y VfLptYVW24N3boDHLCQpuFwcMC4WlxbXuE6Mq03ODTJXUfUTgp2SY89/K/wU/6hh7HFv Pk0+bj67ROC7yZYXXvTx/342KI5O8HBzpeFpwpElKapOJ0gEojI3Dmf1/NIAqriPCaJP MUhD85gCTZwR4XdxIBNtKPHOpqJDvzwbrkOEz8dpNMSyc7zMHidc9xjOzUWIFltZi4+e I8PHQfSzZ2ziHdnZdfMcFuIYBKtcQyPYl/4ATMKoUBuGF+QDJ1O4T1t5XcB+DJrPW//G VSUg== X-Gm-Message-State: AOAM532Z7yGWr8mL+NVnHtawarBlkBnO/Oq2HKNRKQy5ocEJPqeNMJ3G T7DPjl/U6i72btzIcNErkBmxRg== X-Received: by 2002:aa7:9a96:: with SMTP id w22mr980505pfi.199.1590532498863; Tue, 26 May 2020 15:34:58 -0700 (PDT) Received: from ?IPv6:2601:645:4000:ba:30d8:f462:8a0e:6cae? ([2601:645:4000:ba:30d8:f462:8a0e:6cae]) by smtp.gmail.com with ESMTPSA id s94sm507942pjb.20.2020.05.26.15.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 15:34:57 -0700 (PDT) Message-ID: <1fc66c1b942e5c0855cea3445bfe33fc3a1c1ad2.camel@guzman.io> Subject: Re: [PATCH] tpm: Revert "tpm: fix invalid locking in NONBLOCKING mode" From: Alex Guzman To: Tadeusz Struk , 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 Date: Tue, 26 May 2020 15:34:56 -0700 In-Reply-To: <705c9df6-e8cd-2829-c579-2bf039360eec@gmail.com> References: <20200526183213.20720-1-mario.limonciello@dell.com> <1590520454.11810.40.camel@HansenPartnership.com> <1590523214.15108.4.camel@HansenPartnership.com> <705c9df6-e8cd-2829-c579-2bf039360eec@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-05-26 at 14:33 -0700, Tadeusz Struk wrote: > 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 With your logging patch, I consistently see this message in dmesg when tpm2_getcap fails: tpm tpm0: request_locality: failed to request locality 0 after 750 ms