Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp819927pxr; Mon, 11 Apr 2022 08:02:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN4+hB/t6l8O0nQ8XEfVGb+TOBASqnMYZCStn26D+iVGTRmfSQg43PPeLoYmvAGo1jRaZh X-Received: by 2002:a92:bf06:0:b0:2c9:b21d:6db7 with SMTP id z6-20020a92bf06000000b002c9b21d6db7mr13777828ilh.222.1649689330422; Mon, 11 Apr 2022 08:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649689330; cv=none; d=google.com; s=arc-20160816; b=G7cOWycXisAV0qXNnYqlcXXHakYuy12hwck6RsiR0Ilijpl9sG5dkhhwzRpvNFW4dh ht7lasuMkJNh02owpLZxT7cHZ2X+IWS2i0JxW6uL318te2QseKm5fRdXBGV2TCRv4VhG bM8WHxLbv7wBq3BE6X8L6CDvYzpjzMGe96Cy9LoFnQ7jPt+H4Hclo+zzJy0RfaW5Xzgy zYYTE4swWy7htQZi0wAvMsY4ficLRX8AdyAtkI3d4u3efNHj7jBBushFaKGU1eLTxtxo UNa/8NrP0XMkmBe+XYhkOeDwsouY4GognS6fskBCwAb9JeJuOf+oerjiOMZDYhrBswx0 VaIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=PP14lou5/93ZSwesKhs/aFkM74lBQAXbbozD+ZJY6U4=; b=YIxBEST8Jdxid6aEMYPIuZ/QmgpifIip6opVpg4VS8nqNT455G/UszYRPALwP58QCZ hQhwkOYTBX3kB09R5Ep+asP6f/v84Y3MsulJrlG6y+tOFTYZt+xZVsBYA4H1NU1z/+ON YYQtYk0zoeBLSf51QIGNMe4yRZhqICzngwhKAouzGqbKKLtyAf4b5EbAqnFa++3LwhxV OiYP7QpHi2Lrf2Tc5ZMD9OQPbmMGs+mzAMusDeiuL0cPpzuD2tlr4cv1RA2bXixUvN4w JVFEH+Ygf2Phu52g1XfDwZum5cJmmowdColWS1BaLz/ftYhba1fNCKmJi/cn13M2nlGC 5u9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZkwGSJuN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a185-20020a0216c2000000b003212c85d1easi3729067jaa.150.2022.04.11.08.01.51; Mon, 11 Apr 2022 08:02:10 -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=@gmx.net header.s=badeba3b8450 header.b=ZkwGSJuN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236015AbiDJJF3 (ORCPT + 99 others); Sun, 10 Apr 2022 05:05:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbiDJJFY (ORCPT ); Sun, 10 Apr 2022 05:05:24 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6E796BDCD; Sun, 10 Apr 2022 02:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649581382; bh=PP14lou5/93ZSwesKhs/aFkM74lBQAXbbozD+ZJY6U4=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=ZkwGSJuNfcFO7nTjEEvntg+JMEeyHNAK9nZ+ZZimKMp8Gq6y6pg8/om/eqhKTLUlR ozJm+O5ukBlOFSBeyc5D41uC+BsWweSN6dihEgvpSQwX87SuPq45qxBm+gTFjGEU1s 2P5EOKEiDqIrg0DRO6x4uBPGwu+3b0ewU4kzlfW0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.0.33] ([46.223.3.230]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3bSt-1o3Z4v1Mln-010g6J; Sun, 10 Apr 2022 11:03:02 +0200 Subject: Re: [PATCH 1/5] tpm: add functions to set and unset the tpm chips reset state To: Jason Gunthorpe Cc: peterhuewe@gmx.de, jarkko@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, stefanb@linux.ibm.com, p.rosenberger@kunbus.com, lukas@wunner.de References: <20220407111849.5676-1-LinoSanfilippo@gmx.de> <20220407111849.5676-2-LinoSanfilippo@gmx.de> <20220407142526.GW64706@ziepe.ca> From: Lino Sanfilippo Message-ID: Date: Sun, 10 Apr 2022 11:03:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20220407142526.GW64706@ziepe.ca> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ITy5SCgzF2q6XF6Ozh6e95KHI6g1E9Q2aEPU72b+QaVsae4rdFe UpWzx90EakqwrUVtrwPxgBfrd/AF2Uq3k1ZUoGc9lZBi6z+51nCotcC518HIH7Slqxu2iYC /iXgE8U4Tc2howXJiTkrJveCP2SjrFv0/16udH+8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pqVyNNo4GgKvoFP2VU1bnswy1T98cmsw7VgBgaoc9XbCr/i3Ykupgay1uPi2 Rm7QjcR1qsgjikDpt6ZzfW7UJ397/nN+ZS0nCw60EcGsf5ldkTpP1tBpgNlLBPzAd3Qbl3Kxt XTt6csB/4I590M= X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Hi, On 07.04.22 at 16:25, Jason Gunthorpe wrote: > On Thu, Apr 07, 2022 at 01:18:45PM +0200, Lino Sanfilippo wrote: >> Currently it is not possible to set the tpm chips reset state from with= in >> the driver. This is problematic if the chip is still in reset after the >> system comes up. This may e.g. happen if the reset line is pulled into >> reset state by a pin configuration in the device tree. > > This kind of system is badly misdesigned. > > TPM PCRs fundementally cannot work if the TPM reset line is under > software control. > > Jason > you may be right about the misdesign, but as a matter of fact there are systems which have the TPMs reset line connected to a GPIO and n= ot the system reset. For those systems we should provide a way to let at leas= t the driver put the TPM out of reset (note that on those systems the TPM reset = can be triggered by software anyway by asserting/deasserting the GPIO line). Regards, Lino