Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp741797rdh; Thu, 23 Nov 2023 17:44:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IF33qwU0kBwwMyX8XBs4htEGSYkijbHoT6RM5TKs0HiqB7U1ciUr/eeE53QjLCrqhr+MulV X-Received: by 2002:aca:1c02:0:b0:3ae:156f:d325 with SMTP id c2-20020aca1c02000000b003ae156fd325mr1239819oic.58.1700790246749; Thu, 23 Nov 2023 17:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700790246; cv=none; d=google.com; s=arc-20160816; b=fY9ptgMJzasCQxsrOhm9zV4JNibPHO8RHyEgHCwo+N4rAGTDcM2N/lvF57oywFRN5L jeMnq8BVmfg7ZheY1sCktZ8Aowj6ILhA83+CXBF3eh/Hc36mybYHtN0GGmMNZ9IKPBv6 xqMNs6s7VCF/3orgINNTsPGHN/dnRHga3QPNEHbfYR8J2v72+894kRmMPXemjCGWeFJN yT2hWIaFI1wpsIlgs+CgRcmhFPLtTzeAJjTyby4cmW3QOSVBH0OscWes6K41VZomCEZc lTObNKwp6v5XNdc5RSchrbdUrFVileRVTa6OrSSrb0KgjXaDZ0QPQFP49oNnef8Rz6F/ 1V7g== 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:cc:to:from:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=meA6zEVLAnIoCnnApPSUpa0M4STnpaOaSqjkHxeRhuo=; fh=nS9RNcpg5TVAiVllCTuWSSQxSpy3ArQ7V6Pbe1sOpyE=; b=ega4UjZUqgtqR8AiGK1HFPVnGsY5gfPDZBo9UB2jz3mSylRaXvF/mdWiSjpe4qdIgc uNlLAMmflRNWOCi18MtFgE3JlEN6QY31mGy/mh4LUs4VjXJmVkC1OBKRIq6rkLxwY8Ia b1fee9VwYqgvemd2qWsZlGr0fr8l3IQIr3LRMAgCqVaEoawxTMGAf3pRBN2jqYGXk1Gs YKceUZpyflyf0o3Boobpmd7eQS4KCyhJJUMM126YiMEZAXRE7lF9PczHrVAEWfUwGJ2t COOP5sTVQD9hvDM5jm6ZdiXZQtzw+oyF7P33qeb+SStQEoEo53sP+TPc/46hDeukvu9g kAMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G37l3aM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id b21-20020a656695000000b005be344b48dasi2413691pgw.805.2023.11.23.17.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 17:44:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G37l3aM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1CF108026392; Thu, 23 Nov 2023 17:42:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbjKXBm2 (ORCPT + 99 others); Thu, 23 Nov 2023 20:42:28 -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> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 23 Nov 2023 17:42:46 -0800 (PST) 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