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 91A2EC61D85 for ; Fri, 24 Nov 2023 01:42:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230094AbjKXBm3 (ORCPT ); Thu, 23 Nov 2023 20:42:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKXBm1 (ORCPT ); Thu, 23 Nov 2023 20:42:27 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ECC6D5A for ; Thu, 23 Nov 2023 17:42:33 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1749DC433C7; Fri, 24 Nov 2023 01:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700790153; bh=meA6zEVLAnIoCnnApPSUpa0M4STnpaOaSqjkHxeRhuo=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=G37l3aM7IQU2UiaZFLasyIGu1aioj1geosiBZVr30RUGy9WlaLO2MnZWVPbBu2mu+ hQGGvdxhA4iYIBmLcpIxalxIQe0GN18jPPotMDxZObH/kKyPjr5zCvupoBgJNfD/Nd 0meFHu0JU4YwyWttSZqkTJH7PU4G/LyKR5gymwy/ZVnN3Q1Bv/2DmBg4ywnx5q58HL 3T+wp3BTnjuz4dYlX+yXmRBtSjbb8i9QVx4ONSbwsXsAtCqKs2QOhpD/IagMkFUZmn E8WvirnzX5LNJ3z6dfmVjY+EFQiAR/+Xp3eLxaqtDzSzBnfi6Lq+EtqCboTFqqwojY lI1cnBfiu5PIw== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 24 Nov 2023 03:42:29 +0200 Message-Id: Subject: Re: [PATCH] tpm: Start the tpm2 before running a self test. From: "Jarkko Sakkinen" To: "Hermin Anggawijaya" , , Cc: , X-Mailer: aerc 0.15.2 References: <20231122065528.1049819-1-hermin.anggawijaya@alliedtelesis.co.nz> In-Reply-To: <20231122065528.1049819-1-hermin.anggawijaya@alliedtelesis.co.nz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed Nov 22, 2023 at 8:55 AM EET, Hermin Anggawijaya wrote: > Before sending a command to attempt the self test, the TPM > may need to be started, otherwise the self test returns > TPM2_RC_INITIALIZE value causing a log as follows: > "tpm tpm0: A TPM error (256) occurred attempting the self test". > > Signed-off-by: Hermin Anggawijaya Firmware does TPM power on. BR, Jarkko