From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F7DE3EDE4B; Mon, 15 Jun 2026 12:50:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781527861; cv=none; b=aO3ujHtXKPuh9eWaVpaCtnZncMb8B95OstK7c9WpQuia/vsVmvj2k4nkLaI/ztyz1XRfR5WPl53UaGy5e8Nr9yzD9VIRK7m6hInztzd8RCh9Wfvr+JQGzpFfUY/qcb2VyyN539JedbFIPYfLxX+FV9TKku2gEyS47xeT1IDxT4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781527861; c=relaxed/simple; bh=q1Nrz+2J9oiKFqCrI20qe5GgvhqerRO+w29kcZ5JIxM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EzlGxByStduNATlkuw2Df/WiTE3ItVGWRKPJBMVoCq8XQ9KLZcp6MO/YtNrKvcjMwpCNjJaVWbMgPlKzAlNEAK9wn/g2ttjArOPYhRK6rhNqX+UcGm+UIRdkH/BvAaUElocpI2V1p4c0+zZ3O4K0BiNP4Z3F/uzDaQp60h1Rw2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.99) (envelope-from ) id 1wZ6mB-000000003SQ-47uH; Mon, 15 Jun 2026 12:50:52 +0000 Date: Mon, 15 Jun 2026 13:50:35 +0100 From: Daniel Golle To: Jarkko Sakkinen Cc: Peter Huewe , Jason Gunthorpe , Chen Jun , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tpm: tpm_tis: add settle delay after releasing locality Message-ID: References: <086949bcf2c10bead892b0b4befd98da370cd3ee.1781498837.git.daniel@makrotopia.org> Precedence: bulk X-Mailing-List: linux-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Jun 15, 2026 at 03:17:43PM +0300, Jarkko Sakkinen wrote: > On Mon, Jun 15, 2026 at 05:48:43AM +0100, Daniel Golle wrote: > > tpm_tis_core_init() releases locality 0 then immediately reclaims it via > > tpm_chip_start(); some TPMs (e.g. Nuvoton NPCT, TPM 2.0) need a few ms > > before granting it again, so probe fails with -1. This back-to-back > > release/request was added with the locality claim around TPM_INT_ENABLE. > > > > Wait for the chip to settle after releasing the locality. A delay of > > TPM_TIMEOUT (5 ms) in __tpm_tis_relinquish_locality() is reliable; values > > below 3 ms are not. > > > > Fixes: 0ef333f5ba7f ("tpm: add request_locality before write TPM_INT_ENABLE") > > Cc: stable@vger.kernel.org > > Signed-off-by: Daniel Golle > > Can rebase to my for-next-tpm and resend v2? I figured the fix is already in place in your tree, added by 34bc0fabf166 ("tpm: tpm_tis: Add settle time for some TPMs") device_id 0x00FE, vendor_id 0x1050 exactly matches my TPM as well, so please drop my patch. Sorry for the noise...