Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp47569pxh; Thu, 7 Apr 2022 13:34:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0Ah+MMpCjk/MLKyKuGPwGp+PNeei3/NFE1Y2Ri63SL0hOH+PAjYlRrVLdElHxamzv0+Jp X-Received: by 2002:a63:c45:0:b0:399:2629:7743 with SMTP id 5-20020a630c45000000b0039926297743mr12368685pgm.24.1649363663910; Thu, 07 Apr 2022 13:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649363663; cv=none; d=google.com; s=arc-20160816; b=wS6EMwcYxqz+x4Z3h224XIAwq/ATEY/nNgGo0quzvIwxiVbaZiv5tRjh3y0rNAlXOG OtP3x9pG08MtwhAIyBBfvJEoOPQUkFS3yVe4Fq66ekiFvQqIWzjXMvRq+cURS1+8e3VT qQOu05RHJsJ1GvagnE822eUIOC2gemV/SavTehNmNB2U+JZ0qK9iz3kPvWmqykdkFC76 TbMQcNI8rA85e0/W33dFyU5tiyt4+qG07EJ8Nzrb7TeL5abp8n13jLYyaRNO2jzU/IN+ XKkqiR459g0GdHRNGHIautGWN9UU0AwZhTvQbaJQKUtNm+7LNxTWrgGgk2LMCG13dIBq xT9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SFCu5OPfr2u719QHLQmAFOOnrZqifL8kEuqIFWPJZfw=; b=C+eV8nHMwFYDoXtCNacStrbMokDV3x3aDQXAwdhLPYv+cU0rJ4f1WmoFB4tFAB6gdD 1zb89EEZJtVzpgLTngf0mQAOBrrcPE9oPRkStWI0bCR/ihTKqsPDkeMGcV+KcCukv2wn f4meBcT8lQj840UYFvn9/oGSk5exrIiwCMiEDwP/B26NKQU26XKNENH6MWT2FLGATwOZ zlyonllhx7zvmY7Ar0oQr8wp5Kg6ak9cnZ1FvUoubHnJoSpruT+FOXmPINUsOtH9JkJQ 2xgMdi3POigPK4aQr8rYuQPbTWLbE1X4qHHbpEpj5LG7k8FrACaG85oTIjf5Opmh/Zc4 4gGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=nkVklxuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u62-20020a638541000000b0039ccb696cb6si2305826pgd.527.2022.04.07.13.34.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:34:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=nkVklxuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E02BC39BDBA; Thu, 7 Apr 2022 12:47:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344030AbiDGO2I (ORCPT + 99 others); Thu, 7 Apr 2022 10:28:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238478AbiDGO2G (ORCPT ); Thu, 7 Apr 2022 10:28:06 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D94518DA9A for ; Thu, 7 Apr 2022 07:25:32 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id g11so1183881qke.1 for ; Thu, 07 Apr 2022 07:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SFCu5OPfr2u719QHLQmAFOOnrZqifL8kEuqIFWPJZfw=; b=nkVklxuWxxl1JFd86S9ghjBHOJvTmapWl7hhrYXdo946L+xXZ59GFWXfXDC6rxS/95 8G3WeOIB/AdwIz+EAAdHoo33AbOz6KiqL+WKZMCXBMWeyQ2KAq0MdYMB8BjH3lSuCvjR f79Aap2K+dCWRekmqt0Evl5jKtmk4UvK07fbaICwfSjmBXGuSfnbQ1ihrGNejys6XF5F 9vPwbPXIIQu1CMnjzyu0XENj6rQUAZy7uHtFwuMIPZrQ2U7qLj1tjq8uGYsd1mLXjlXv sY96j02kjbUOqVrgs2TukSHSytmAchK8qTurOx7GHHe6ehdRj7x8/TIKFn4c+7iNpc8J +iAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SFCu5OPfr2u719QHLQmAFOOnrZqifL8kEuqIFWPJZfw=; b=P+FHduVw0RONgRxiYYwUylafcCPsc9esWKk/tQGjeo791uF86Q7knQfpOntIn0cos2 IuznjfO9Q/lSz8NP7sEVePf3EdWWC3peXVillrnXqCXvO1+wQ9D/XO3giwBqMch7+dGX nU2k+cplDPmjDVVsYzTKSUngwXW/DMwWQlpqgGSU1Q4NQFQr+BFIN6y9OWPNDXGL/5XT GKDgvDx+xYWbbgnBXXZJrBZDaqRYbZh6FKg1D43eFlAn710hEsq7V9WxBq/amwQVEbqU miDmy95w4kbZmwTpOq1GvOMaLR5MwZxQCzKjAf0JuiGcZlqU7a/gwIMF+kDtuMiFu5MZ HebA== X-Gm-Message-State: AOAM533Ym3YDKFYyfwMzISanEFt8ekNwqGuqjcrpGti2SlPKeUfn1x6h DmqMacb/5jGROUjjp+mP6heZDTgkvwQ32A== X-Received: by 2002:a05:620a:178f:b0:699:90a7:ffdf with SMTP id ay15-20020a05620a178f00b0069990a7ffdfmr8978417qkb.523.1649341528353; Thu, 07 Apr 2022 07:25:28 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id s13-20020a05620a0bcd00b0067afe7dd3ffsm13059428qki.49.2022.04.07.07.25.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 07:25:27 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1ncT4g-00EF4I-LL; Thu, 07 Apr 2022 11:25:26 -0300 Date: Thu, 7 Apr 2022 11:25:26 -0300 From: Jason Gunthorpe To: Lino Sanfilippo 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 Subject: Re: [PATCH 1/5] tpm: add functions to set and unset the tpm chips reset state Message-ID: <20220407142526.GW64706@ziepe.ca> References: <20220407111849.5676-1-LinoSanfilippo@gmx.de> <20220407111849.5676-2-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220407111849.5676-2-LinoSanfilippo@gmx.de> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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, Apr 07, 2022 at 01:18:45PM +0200, Lino Sanfilippo wrote: > Currently it is not possible to set the tpm chips reset state from within > 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