From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26124C001DE for ; Mon, 31 Jul 2023 10:29:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232058AbjGaK3J (ORCPT ); Mon, 31 Jul 2023 06:29:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230335AbjGaK3H (ORCPT ); Mon, 31 Jul 2023 06:29:07 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C501FE3 for ; Mon, 31 Jul 2023 03:29:01 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 91CF324002A for ; Mon, 31 Jul 2023 12:28:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690799339; bh=UvxyRecDg9IUjbyy6N24jqLaWiWPsex+CRnzVne66tw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=MctC08BV328WEy9wuHc42HOtNbB7plF2wY0PoAHFA5rWeyvBVSNoSZXJjmzzPA/U7 hHE6ThAf5+efRcuhhgJSrixxDztVYhU/+RgnDmgEd6MDl3XIhYKCAYZF2WYUq/Yw1y b52ToS/rGKBuTFO8YozHrJjwc0/KKm/Y6bcaaPHaIMrUw0j8NE1TsPe2B/bFk6Sn1C PQcVqq2Es8cYNxpiMnzV2ww6mP3PoF/XrVwWgoYj7bT3z6jylNdEAuXxs51B+76+ai /xmSBOaGB/8V5p3axo5eLBLojlgh3JIC5FlfZy5xWRR2c/97n03ZR6WQf2W5Ff1flO 3EsFntNCuDEFg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RDvbr5G30z6v2S; Mon, 31 Jul 2023 12:28:56 +0200 (CEST) Date: Mon, 31 Jul 2023 10:28:37 +0000 From: Daniil Stas To: "Jarkko Sakkinen" Cc: , , , , , , , Subject: Re: [PATCH 1/1] tpm: disable hwrng for fTPM on some AMD designs Message-ID: <20230731132837.64690d7b@g14> In-Reply-To: References: <20230214201955.7461-2-mario.limonciello@amd.com> <20230727183805.69c36d6e@g14> <20230728231810.48370d44@g14> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Jul 2023 10:14:05 +0000 "Jarkko Sakkinen" wrote: > On Fri Jul 28, 2023 at 8:18 PM UTC, Daniil Stas wrote: > > On Fri, 28 Jul 2023 19:30:18 +0000 > > "Jarkko Sakkinen" wrote: > > > > > On Thu Jul 27, 2023 at 3:38 PM UTC, Daniil Stas wrote: > [...] > > > > > > This is needs a bit more elaboration in order to be comprehended. > > > > > > Do you mean by "stutter" unexpected delays and when do they > > > happen? > > > > > > BR, Jarkko > > > > Yes, unexpected delays. They just happen randomly. > > You can google "AMD fTPM stuttering", there are a lot of examples. > > Here is one: https://www.youtube.com/watch?v=TYnRL-x6DVI > > What if you make tpm_amd_is_rng_defective() to unconditonally return > true? Does this make the problem dissappear, or not? > > BR, Jarkko I already tried compiling kernel without CONFIG_HW_RANDOM_TPM enabled, which does the same. Yes, it removes the issue.