Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4316569rwb; Mon, 31 Jul 2023 05:15:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQHHsu0xykpkV0XlHCGYNCHeQ/zWIl6LIbFpsNQ1pZJTjMSqv/C4siykeRCQttYedfpU6M X-Received: by 2002:a05:6a00:10c1:b0:687:40bd:561 with SMTP id d1-20020a056a0010c100b0068740bd0561mr1575847pfu.20.1690805716534; Mon, 31 Jul 2023 05:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690805716; cv=none; d=google.com; s=arc-20160816; b=OL8DLT5zh2yzntHPEhAOZ1lLKsldKrgWaa8ynjSFeW2dgup6RlOBJ/xi88GcN2g9zP CGqXo/g71QQGBBy9g/a0+0D/Q9CR7Ypd3H65JvDN2UnBNwQ1QKFXbF2XpaKuqfhMCAow Hd7dZ57TUp3POEzpkjFGeWtMnHUCED83AcgSmbg3064BQC+lUgQ7SMKHIkyGn0V++nVq aeaw0ZGEt2YjX1xnUPVicfk19ftru+esRX1hDPkcAhvccAA0zNMnrellLRdsHO/LPmlL litcfg7a2FmTBe2SvgucgO2GPPZ99Mzqww/r+V1k29cTj7doUPyyKlJvj7QqB5GdqLxz Ckew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=B++/sc9XkFtzh5nSi9a8kDDNOCaJeWZa+58OzABX7hA=; fh=Z3YcKiknPI7Tkcc/fHKqyvtscKNIcZtGh14LC0fwL7A=; b=rOh0UCXT5dSwWFGElGz5XouQnpq/JCv4jFKmVLNtO8zREWi4cBpjCwwZzCcb3rF8lv RvdY/ZIhcTZW4O2A8sK1iyo4ItUKmwXD0Lc3E/IvbI+NkcBIXHDa1qCL9YP3xukQIoeC XU3txCjzMcqMc3b0xg3Z91jNWOjXxrrZ9SO3m/xNiI4Ondee5xPA9VPlRv/JF3xE/xb8 g2A9zHwyq8pIl21J7eDraFoxQARNogBhh9xZOymy2ubOtO5v0xrQyAx+Yb7zaJsqRRi5 0s1E02MNtNpRdMkHEbSp0uWhrdVD+73FFsB4y87H3c/EY2Yu1xB1oUPhvMYvwn8dxwRs v61Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=MctC08BV; 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=posteo.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a056a00194b00b006683174a49csi7235151pfk.198.2023.07.31.05.14.36; Mon, 31 Jul 2023 05:15:16 -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=@posteo.net header.s=2017 header.b=MctC08BV; 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=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbjGaK3I (ORCPT + 99 others); Mon, 31 Jul 2023 06:29:08 -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 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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, 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.