Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp452714rwr; Thu, 27 Apr 2023 03:55:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4P513jWBNsp75X7Y5MhLIvdBRl/icm3t7Om7snfXtOrPvd6f2ctaKTy4nMRkEUc/gS7aWp X-Received: by 2002:a05:6a20:4321:b0:f6:7bb8:c8e5 with SMTP id h33-20020a056a20432100b000f67bb8c8e5mr1655818pzk.6.1682592924737; Thu, 27 Apr 2023 03:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682592924; cv=none; d=google.com; s=arc-20160816; b=Y4TGecYsEzwfzDr+3Iro/mvDT2HFqf1o2HGwJQdwM1zlz6ZaABAE9+z2s4Pqb7QbPB 3gZK47XSsARIJ4baWQ1fGtAaT4RbkjZk6CFOWRrLl6mlW9j4YQSV1ijiU7GrGkKAw0TN efCQ/vyPl4eelIoTxZWuPL7QOxCZXVzEwOD6w5JZrpSVP0Q1evqcSsJ1D1A3W4Car6rt eQ7vdhTKhfdNBKEWGPOOQkaOl83A+YVbGlTXCCE28w3zSLX8R840HUPADUlIr3y3rCrx eEqm0dGW+E4RUOEfDdKh3Adofr5iFbf4MGEaseZLTMPYFdQF6BaLl0GAWDRrsxfNW6zo YjFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=dx1xMmCpc8Twpj3lNlMdyngS3yS9Kv5ZeqgR3ruSbNM=; b=APhxEok3GV9lr4M6t3cIXVZrYXCE5kMEmPXu74S0GP1Wq5lrTDpuompLNAJziETW5z 5Y7jlv2cpj1ilLZcrJHPJl5aSWEi9FwdDPZHFidYa2iL2GXPO/U2xKWafj0RmV2suaXS /I3gDaQ9AdYTF6VPh/Ce28VkKXrbm4ef7KLjeJR7MMKZ1NxsSrhKZQFWUxCzoIquL8zk tC2nY89aBN66b8O9gKdXFj6br59YFAoG2c/1n+zFiXlFAaSJP7BqmbqSkdQ3y8IwuOwC 99HBDqbx9WaPgTyNofRkBgdp2MC5FMngLZ4dCQJVfgrfXG+dpAB3iA3DVH6lUeWQXmPr /85w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OBKOmB5Q; 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 r36-20020a634424000000b0051bacd63758si18387866pga.245.2023.04.27.03.55.13; Thu, 27 Apr 2023 03:55:24 -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=OBKOmB5Q; 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 S243598AbjD0KwL (ORCPT + 99 others); Thu, 27 Apr 2023 06:52:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243436AbjD0KwG (ORCPT ); Thu, 27 Apr 2023 06:52:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 378F45597; Thu, 27 Apr 2023 03:52:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C66AD63C9A; Thu, 27 Apr 2023 10:52:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A974EC433EF; Thu, 27 Apr 2023 10:52:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682592724; bh=JEApmjwGLRl7v3N0K80I/2jiNxLa1XTYM07BGgXeKIo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=OBKOmB5QTWVjMDIP5nDMeixZwaOMe0UbzRs18P0ufF8IsG5KaS5b9GS2pcSp4a35m MP1fiqZOcK5pV0hcfzkUvT6j+cMoxdBkF9sJCxe4uju/8Dfv5IgcTnrGx1w3xLcESZ srneqsGB+gE2u3gcMx2vajX7rh1RyE10AZW2wIYr4cVOhEFQ75bx3zbansxoJdKotk jtGeXd4uw3MMC4dyGOBQOAuSfvF08IrI3AipdRJm7ueWSSgPvUQH4OD1MHPT2UThhf 6A6TNtpgTMfRpUuQvH6b2az1LV3IA/2FhuZObBKJCjmYS3qYDTgxQ6JSlgZvyf0Ldq GEvL+GYd4rT/g== Message-ID: Subject: Re: [PATCH] tpm: Re-enable TPM chip boostrapping non-tpm_tis TPM drivers From: Jarkko Sakkinen To: Pengfei Xu Cc: linux-integrity@vger.kernel.org, Peter Huewe , Jason Gunthorpe , Lino Sanfilippo , linux-kernel@vger.kernel.org, heng.su@intel.com Date: Thu, 27 Apr 2023 13:52:00 +0300 In-Reply-To: References: <20230426185833.289868-1-jarkko@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.0-1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Thu, 2023-04-27 at 09:58 +0800, Pengfei Xu wrote: > On 2023-04-26 at 21:58:33 +0300, Jarkko Sakkinen wrote: > > TPM chip bootstrapping was removed from tpm_chip_register(), and it > > was relocated to tpm_tis_core. This breaks all drivers which are not > > based on tpm_tis because the chip will not get properly initialized. > >=20 > > Take the corrective steps: > > 1. Rename tpm_chip_startup() as tpm_chip_bootstrap() and make it one-sh= ot. > > 2. Call tpm_chip_bootstrap() in tpm_chip_register(), which reverts the > > things as tehy used to be. > ^ two space and one typo "they" > Thanks for your fixed patch in short time! >=20 > And I tested this patch, it could not be reproduced in 155s, and the pa= tch > fixed this issue. > Fixed dmesg is in attached. >=20 > Tested-by: Pengfei Xu Thanks a lot! I'll take immediate action to send PR to Linus. Lino: no worries. It was expected that such a large refactorization could break a thing or two. You did a good job in any case. BR, Jarkko