Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14648028rwd; Sun, 25 Jun 2023 01:30:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WxXxlnm25mmdAizBkveqE290UrIIMttlUuik9IQGC2n9mMHRZMmRuSPJ710S56AwQj+Gl X-Received: by 2002:a05:6871:250a:b0:1a9:caa6:1337 with SMTP id yx10-20020a056871250a00b001a9caa61337mr21092360oab.23.1687681850026; Sun, 25 Jun 2023 01:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687681849; cv=none; d=google.com; s=arc-20160816; b=hZqhZm5+790V9Q7VB2dIY+IhXsS0vM6c37uuFuHSEuK3U7G10Vu9D24ePU7YHvJJqG HTs6E9tgQmp+zxyl1wQy4mXm1G8lRfW5InFHtneB3AQoRCZUGlpTRs8sGR1LRR/drnza 3w3Fi25T1E2JLHzTo22+Yuo00njuxSGf+ExKzEm90siCdOPwKNHcwbm1f72AZpDl6fk+ aRB2YeocCVEVZkpZoPL5Uet04fcQkWLFXd9hU2Fhs4kegk/cVf+p/YZdv3BOFcDzmoZA IToumFruypKL0fo/r8tSCtpPjbYPNzvIbnsgY4ko+SXWqGy8tD7BeHWqb5x/yEObG2e4 FIGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:to:cc:subject:from :content-language:user-agent:mime-version:date:message-id; bh=buTn7Mi7dgkw8ecEtd+xlP5/DqijKOOchLqEon18fWY=; fh=fMDY43WIRQg1xHEmtFAf0/OeWEiJhDOrS0UIT4w1PqM=; b=YpJdkH/9wT3Dw0+FhhmXoNg+LrhUNqmifAMF8p/SBW2QJ+4wHjDXFhZkLt6pHhnCvH ZNUIvRpktRDyG4I6r76P3f3ZnUDy1kuVelDxC1ZXdw5kSVUpYX4svrUrKV9Az+SJSBv5 TpS6RY+blOPNHyGeltqdrMwF1hICjP4VZZWvhqPVZ0VHej7F3d+CCkRa2d2rfzCWVeY4 WkhSV+EBLbNJBTZWwVF1fxwk6s8iSaTE0XCzsoszPsfTKh6hs2MNmBO3VY+3wmmtVNFu XJe5Nob+GKbSeG4VF7lgQ7KnENJJjli7CNjtHUuPZr2Dyl/t2yxY4896em3QtGXmfFr7 yLAw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a63e750000000b005579e1fc429si1693184pgk.669.2023.06.25.01.30.38; Sun, 25 Jun 2023 01:30:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231552AbjFYIVA (ORCPT + 99 others); Sun, 25 Jun 2023 04:21:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbjFYIU7 (ORCPT ); Sun, 25 Jun 2023 04:20:59 -0400 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3398DE5D; Sun, 25 Jun 2023 01:20:57 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aed7f.dynamic.kabel-deutschland.de [95.90.237.127]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 6C19861E5FE0A; Sun, 25 Jun 2023 10:20:23 +0200 (CEST) Message-ID: <8999a30b-e165-f39d-864a-ce1c559e725d@molgen.mpg.de> Date: Sun, 25 Jun 2023 10:20:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US From: Paul Menzel Subject: MSI B350M MORTAR: tpm tpm0: AMD fTPM version 0x3005700000004 causes system stutter; hwrng disabled Cc: linux-integrity@vger.kernel.org, Jarkko Sakkinen , James Bottomley , LKML , Jason Gunthorpe , Peter Huewe To: Mario Limonciello , "Jason A. Donenfeld" Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Dear Mario, dear Jason, dear Linux folks, Thank you for your great work on the Linux kernel. On an MSI MS-7A37/B350M MORTAR (MS-7A37) even updating to their latest system firmware 1.O7 released on their Web site on May, 23rd 2023 [1]. > Beschreibung: > - AGESA ComboAm4v2PI 1.2.0.A. update. > - TPM Out of Bounds Access security patch. But Linux 6.4.-rc7 still disables the hwrng from AMD fTPM. Jun 24 21:32:09.978772 tokeiihto kernel: DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.O7 05/09/2023 […] Jun 24 21:32:10.259986 tokeiihto kernel: tpm tpm0: AMD fTPM version 0x3005700000004 causes system stutter; hwrng disabled Unfortunately, the warning does not say, what firmware version is needed, and what the user can do about it. The comment in the code, added in v6.3-rc2 with commit f1324bbc4011 (tpm: disable hwrng for fTPM on some AMD designs) [2], says: /* * Some AMD fTPM versions may cause stutter * https://www.amd.com/en/support/kb/faq/pa-410 * * Fixes are available in two series of fTPM firmware: * 6.x.y.z series: 6.0.18.6 + * 3.x.y.z series: 3.57.y.5 + */ Mapping 0x3005700000004 from the Linux warning to the comment, I assume the board’s firmware is 3.57.0.4? What AGESA ComboAm4v2PI would MSI need to ship, so the issue is fixed? The previous system firmware version shipped 3.4e.0.4? (Is it decimal or hexadecimal?) [ 282.864564] tpm tpm0: AMD fTPM version 0x3004e00000004 causes system stutter; hwrng disabled Kind regards, Paul [1]: https://de.msi.com/Motherboard/B350M-MORTAR/support#bios [2]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f1324bbc4011ed8aef3f4552210fc429bcd616da