Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp482590rwr; Thu, 27 Apr 2023 04:21:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jf0eknfh2CgmUYUHpaJTGas48u5gyABN00dcymVueQU+NflS0PxfuP3n7GkcxW79LAKwy X-Received: by 2002:a05:6a20:1616:b0:f0:38a7:dc71 with SMTP id l22-20020a056a20161600b000f038a7dc71mr1779405pzj.4.1682594493025; Thu, 27 Apr 2023 04:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682594493; cv=none; d=google.com; s=arc-20160816; b=A/n1XdR/BE7ByMhabhgQdMcmunw3pU98Y/0HJ+XjkdC1Upa9p0Y4vt4eOsDSEUH6gm D0qURvqrBD5zZ5xc3FNr7Pn7wBe+L3t1QUrRP5quLI14i8QIm9JhSDdUh4AW+aIT161A qfMiYg2MkjDL1qYkGCW4+DZeRBvWtsAioIDGPOocbEbUfeDnB/kS30Ys/FmDaoJL2Ufx tiqcbmMTYF0frj/9bPYPgL8KCYUDB6xK/moyFD5DilFHFdPjvJLl7sVlgTt8KzT8X4kG F5VTqwkShonnd7t457B7oVKpMov5g22vnjtwt3uhQnYIOMoowPmug+d3tZbdmQpE5/cC znRw== 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=j1FuMR+W/xT+otZdMNnJ9By3EYlXf4aXpX5OLrIHvzk=; b=M8hyLWg6ulu0HYmPr6/zUBUKACPg1Z/TcAQzKLamnhWYIexG0F3M1JZVCPmOcZWoPU 8kDW6HGeAqNeB6s5d7s15f6YPHphcNWIpHAMR3lzt/C40yne9rxKJL17Rl/9VYvH0req 76ouZD9JIgGuwiW1EjqTWQ4YokCENseCPEdVQ2S9P2563nQpTXvONn8ELn9YBc8bMMtR hB36vDBxFOyXrHdbLJZYBc+luG+w0JNgzqafuOR3Ngo5N52yjkSx54EKQwukkWrbg5L0 pjJ2t+UBG0WyMAK/oJ1tVezc77ENuXL7Pmgm59X2o6/EpIejJU6NgA/fJ8v+Pc6+xi7u MopQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S2YQ7Cc5; 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 x22-20020a63cc16000000b005076410cb9asi17297233pgf.424.2023.04.27.04.21.10; Thu, 27 Apr 2023 04:21:32 -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=S2YQ7Cc5; 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 S243361AbjD0LMz (ORCPT + 99 others); Thu, 27 Apr 2023 07:12:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243285AbjD0LMx (ORCPT ); Thu, 27 Apr 2023 07:12:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AEC4BB; Thu, 27 Apr 2023 04:12:52 -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 1600663CA5; Thu, 27 Apr 2023 11:12:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0679C433D2; Thu, 27 Apr 2023 11:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682593971; bh=tYEMYoMNhaeglO+EUKp0svEVZqDr0bFUZOa8BJPNQOM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=S2YQ7Cc5uN0lnBjyYBWdVbkKeQ40o2ye7kW1CSYWeM8n19WHMe5vC4oj2V2rBg2s7 nPZfd12wTF3IUw5v9jP9fJeJjv7q9rJ3Jm09TQD7bwUJmPnTL+Wyp10wITsdqxyJuf XSchTVaGaCWlmeR1fOro48QJSHjlWpYvVN9DEm00mjWvOqEOKMBq3+zRH7zg16jYD9 YeIjaVp4DimalPa/IqJ5jKL7ntCi4ICJWnFrZE1OVysg0GEYUn2JCAZagDVswRUeq2 XPEKIA++Ah0ZxhwfBUFAysWP0B1ytaLOXE94LG3Bms27oRVY4WJOn4OP1XvUak56yI x+yb34AcyhskA== Message-ID: <6e61385de6044932aabfc407ed8bc368f7e9631f.camel@kernel.org> 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 14:12:47 +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=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 13:52 +0300, Jarkko Sakkinen wrote: > 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-= shot. > > > 2. Call tpm_chip_bootstrap() in tpm_chip_register(), which reverts th= e > > > 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 = patch > > fixed this issue. > > Fixed dmesg is in attached. > >=20 > > Tested-by: Pengfei Xu >=20 > Thanks a lot! I'll take immediate action to send PR to Linus. >=20 > 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. Done: https://lkml.org/lkml/2023/4/27/297 BR, Jarkko