Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4308094rwb; Mon, 31 Jul 2023 05:08:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlEQOUVDvTNbVk9P3t/zi187SPfKDFB3d8EDh9DGVQsNDbR2usE3W4/VaGaY95qTxi57uGjj X-Received: by 2002:a17:907:2ceb:b0:99b:5c3c:3e61 with SMTP id hz11-20020a1709072ceb00b0099b5c3c3e61mr6057946ejc.1.1690805306506; Mon, 31 Jul 2023 05:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690805306; cv=none; d=google.com; s=arc-20160816; b=O1akbMM+qffxl8QN43BuGs4SGUzx3mTqrpImFPkZOW9p13DQwoBlEqu2NSzRjpqPRo p+8qxLSPvFdhdi9FQz0fxEcOIvsnUpJWagcPFvW65PIgp6/9DQ/lGAf4fg+WlCQ8WRtM SmZeqH+z6gAlcjFNYpnOd2usI7uJlLj4P3H9fveEeGI5abc6oj1021FUe7qHVGawG5se otfFLdQG9McZguVwv8oizgnIRf/1fpJckn6yiylCPjAK5Vg06cI7O+L/ARbHXuxagc+c /ycVpBOLUn0h8DgcX9uwSzZTxGO4NZDqaGg3HnoHtxul6vda6E2v+XRWzSvFcIGrRe01 Kjuw== 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:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=g0A4OJ1TdPRIaI9iNxdXhdlmzHZnSr8HJIDHfHEedI0=; fh=B5Fqd1zsf3iaeiBiQmxYIKV8FKBS8Jbbls5UN8qsPe8=; b=sCvp6YUjs/G9emUlfwbEKUwxQ0W+Jq/57cPAyQ0hfzGPXzLV+vXKGHwQThTeQcfS3v s9xQknV3SE5pbb36sQ+VZHAPRrOCK5R7t2gKrk5PZ7lDZFVw890NAqBovA7jMSf8+wnX WFQezcCRY99ew2mebwl/KNDGWGsnY214UaKsk6QK7tExLMR01GWw2+/lY88jJa57QRWy LhRrTDc6bz0rj7NCVUYVJCy3F2s6iQtlh543prFuLQ1wMk72sNgD7T/B6KjzGSWNM2GZ Vom44ojH3M61AtxVt13NIpI6Ayd1QlgMrQVO5wfRwlLFTfSy7+CcjRDhT67E3JhJXGIv UU+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hnQj3Y89; 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 w17-20020a17090652d100b00992c30f5887si7387081ejn.474.2023.07.31.05.07.59; Mon, 31 Jul 2023 05:08:26 -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=hnQj3Y89; 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 S231931AbjGaLHp (ORCPT + 99 others); Mon, 31 Jul 2023 07:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230212AbjGaLHo (ORCPT ); Mon, 31 Jul 2023 07:07:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F8C71BF; Mon, 31 Jul 2023 04:07:44 -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 D10FC6104B; Mon, 31 Jul 2023 11:07:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6745EC433C7; Mon, 31 Jul 2023 11:07:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690801663; bh=RV8Rk8epBSDHGl4CjLo2RB50HeXG/xuM7WBwj6ffrfg=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=hnQj3Y89tF3k+OzGkCF13kZ7RTEH+3Ve6nekpXyfQ8I12hXlUTh7joL2PooaC3Eq7 jmEK0Jman9bikOnW6zmcvrjYPz9Dx48cDMAu9Rv+0HhTpZtpGkdKA1fB0NI+IiQr13 59RKH/Y6JJvx5HG3rWzGE3KBJkaiMRdYLTew3L2ZbjYjNFcMaZ8pVW6tuPKdSU8QW4 HXOXccFy1tW1ILsqNQeXvlwY1Svb+E4wVrNQhSgwy3xUN11bziFqS/CcmrfSEGvB3l 25qfp5D9GNAIjFoQYEPUw5CzqMOzPwhMbVWdRam/9fCDetqzjws856YVm0PPDLtYKp +ZAcDBAGrru7g== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 31 Jul 2023 11:07:39 +0000 Message-Id: Cc: , , , , , , , Subject: Re: [PATCH 1/1] tpm: disable hwrng for fTPM on some AMD designs From: "Jarkko Sakkinen" To: "Daniil Stas" X-Mailer: aerc 0.14.0 References: <20230214201955.7461-2-mario.limonciello@amd.com> <20230727183805.69c36d6e@g14> <20230728231810.48370d44@g14> <20230731132837.64690d7b@g14> In-Reply-To: <20230731132837.64690d7b@g14> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 Mon Jul 31, 2023 at 10:28 AM UTC, Daniil Stas wrote: > 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: > > > =20 > > > > On Thu Jul 27, 2023 at 3:38 PM UTC, Daniil Stas wrote: =20 > > [...] =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 =20 > > > > > > 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 =20 > >=20 > > What if you make tpm_amd_is_rng_defective() to unconditonally return > > true? Does this make the problem dissappear, or not? > >=20 > > BR, Jarkko > > I already tried compiling kernel without CONFIG_HW_RANDOM_TPM enabled, > which does the same. > Yes, it removes the issue. Thank you, just wanted sanity check that I exactly know what is going on. BR, Jarkko