Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4232630rwb; Mon, 31 Jul 2023 03:55:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGZLoBRzvdGaV0Q9AaTTqDH6TVVc8nwZitZf5sh23luRb+cj8wMSEeAm/8oyS29KR1dZ9pI X-Received: by 2002:a05:6a21:998a:b0:13d:40a9:8ac9 with SMTP id ve10-20020a056a21998a00b0013d40a98ac9mr7034998pzb.40.1690800915280; Mon, 31 Jul 2023 03:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690800915; cv=none; d=google.com; s=arc-20160816; b=h/sIzbAl28FNBRa+zX52p1O08O5QheiUHDeZU3zWLlU29Z3a7ltvNoAa0F3kbiwFlp t+0Ep9TKGB1DXTAydxy7mThZli2qP/QYuaj5pBWoxeLvscA3y/TNJjZABYnf4AWYpgw9 jymb6g63K7F30XbVkNrwYOBDk0zCwU/2PlP+0PPRRcZtfTbL4oF6bTzZSuUkdjNq+uza WgsVHt5TKh7QhwAd7wyuGHAdlTSgtsYz1YSlhRrt+L4fFcToLBJyOeTpG8336LCR6S+n g3+qNKK4fCakQG4zHv3ARfGVhw/qVQbNNQep0/zC3QZrmFQGc7XfHAYeaZzO0AW+GcqP ZgzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:cc:to:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=EW7YMvUyfLmk+cbCYjst8bsZXEEoiOeVIsX41Tk6EZI=; fh=Kb/HSRbroZutAzBQilxTGIgxj9NCKkE+qBK9HQyDXFE=; b=NXdXftLYehxQYqsJmEsJeoVAWj+U4yo4CvbG2McSqc13nylg6k8NQquQqomU0lv/XI TnSSFtBGgob78nQYaO9jEOCvFaT/LHd6CGbLkjEbvPk5wT51IN9AdUvy3xwNhlAJIE+Y K+RFCNCNDCkNK2GxhWKNTe8DOqv0m9U9VflTdAPvx4JFb+vxuUFd53gtn/E15vxVS+K3 vDBNBnLRu4xX0wn546h5z0rwksPBOBEiNhEVjMFN4CKtNTUjD+hhOmsqxKOqShNaN5HR IhHrY/sIbR7D8hZZaoveBnqsBL2m8XG9fWf6QUHtKWLYfGnyWUrP9V6a9mTDHcQtovd5 4gyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oCQC2lDG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6325c1000000b0056424625524si4131894pgl.219.2023.07.31.03.55.02; Mon, 31 Jul 2023 03:55:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oCQC2lDG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231635AbjGaKOM (ORCPT + 99 others); Mon, 31 Jul 2023 06:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbjGaKOK (ORCPT ); Mon, 31 Jul 2023 06:14:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D40E8E3; Mon, 31 Jul 2023 03:14:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 71DFE60D32; Mon, 31 Jul 2023 10:14:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 207D8C433C7; Mon, 31 Jul 2023 10:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690798448; bh=EW7YMvUyfLmk+cbCYjst8bsZXEEoiOeVIsX41Tk6EZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oCQC2lDGGtGvVyzJaztdEoQcZ6k5LWE5DlQ8gA5w1QX63d0ynKAyAA65yimgEeYJV V0hkNzMKfo0sV2WiMWcaxDT9oeccHSN+nn86R6T18NDnEUxKiUJ0g6HGnvh5WD8LU4 pnrO4cGiAcAxsI4+jROSksXAcvIOsznXfBQTPyrWI6VE0Uj56DAJoJlbmTd2zqdQ7/ C4Z31/IciOZh2HnSjQ8v/s/TeBYETX0R4wL90/CAxq4/N4Kf4i5ybLGI+NA78x4HDr DqKdGoe8lcFRhWECUSZKpIGGKnr3WwNmWtj5n97S26g6E+6B6Z8M1UAOv7WNhTiGye CkXw9nJZ2dK1g== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 31 Jul 2023 10:14:05 +0000 Message-Id: From: "Jarkko Sakkinen" To: "Daniil Stas" Cc: , , , , , , , Subject: Re: [PATCH 1/1] tpm: disable hwrng for fTPM on some AMD designs X-Mailer: aerc 0.14.0 References: <20230214201955.7461-2-mario.limonciello@amd.com> <20230727183805.69c36d6e@g14> <20230728231810.48370d44@g14> In-Reply-To: <20230728231810.48370d44@g14> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: > > > Hi, > > > I am still getting fTPM stutters with 6.4.3 kernel on Asus GA402RJ > > > laptop. > > > Compiling kernel without TPM support makes the stutters go away. > > > The fTPM firmware version is 0x3005700020005 on my machine. =20 > >=20 > > This is needs a bit more elaboration in order to be comprehended. > >=20 > > Do you mean by "stutter" unexpected delays and when do they happen? > >=20 > > 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=3DTYnRL-x6DVI What if you make tpm_amd_is_rng_defective() to unconditonally return true? Does this make the problem dissappear, or not? BR, Jarkko