Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1168868iob; Thu, 12 May 2022 12:46:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEoDP5gVhlvN+pdR76YBFZLdC4/Bj+/wdBPmThLAUiTq4HFBtZnDDGSxBWY1vXYqdFCDOa X-Received: by 2002:aa7:c0c4:0:b0:425:c776:6f17 with SMTP id j4-20020aa7c0c4000000b00425c7766f17mr36229098edp.131.1652384804856; Thu, 12 May 2022 12:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652384804; cv=none; d=google.com; s=arc-20160816; b=0FZI5y5mZ7ri+qGG+3z2q3XDk3GxdTR1Ga3OJdhYlTDF9Qrvmst3AK0Y1qSJpwBNa2 Lvt6hDp73IVnGtUQYN9Boogb2/kVeQuPj2Mt8FUIKeTkWM4L4n+gDsEs+ozY0p5XIex+ mPlnYmgaV6B5fs0Ii0jxRlWqDcJ0DAPlfEm+Gl7QUDYp8uu1ksv09XwtskYlAC31ifAb u9wpyEiwb+XRJE6yf/n7h7l+sikY9I7SjLndm+l21evhPoS5XAMr52yraeVjRlo76VJE 8XwQWmsaUBTXuCGNmMEDhj3WijxmrcMqwdZCz8vLER0ICL6M4dmCa6/7h/QNPnImiraz YLGA== 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=98QCBOcQyax0rGKmfG1kKzuqMy3EQ5X/r9nNeTERjGw=; b=TR/wCnGlJXoPcp309AQ1POQCetpXmoxnvjoGCXj3jf/n99fnJ2Cd/4Ma0RryVG6yym 9dwb8TVWMG3EmGQYQwI19QCFoQjodFii2iqhjdi9+Xs43p9kI+bFkhMkYWSHnZ+w3nKc ca23wZ6eUpqkNxOtb7GKZpzdw/jXlNxREJ6V1luvYsUM9J0fShDNknGYr3xz85q+OvuK Ll/PE+w8xokqNUraya1V9Gn/q1+p5nTc4G1tHuLLNMmEFeHsOZhOSzu+10OCzcnOte2e XDaa7Ns4/NUhlWvi6Z1eO2gZUGoZ7Pg0FT01LxDWE2MaFJQvDm6TZJ44V7Wk+cZXARQ3 X6Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Lt1AvZjr; 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 js13-20020a17090797cd00b006e85e292dadsi162719ejc.657.2022.05.12.12.46.16; Thu, 12 May 2022 12:46:44 -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=Lt1AvZjr; 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 S1346995AbiEKTbW (ORCPT + 99 others); Wed, 11 May 2022 15:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347010AbiEKTac (ORCPT ); Wed, 11 May 2022 15:30:32 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3342F22A89D; Wed, 11 May 2022 12:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1652297398; bh=98QCBOcQyax0rGKmfG1kKzuqMy3EQ5X/r9nNeTERjGw=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Lt1AvZjrVOMyp25OcqHr85pprH8GUfXFLfSZnurYomAjLxyJD1MRCX8CHKoKnfsnS CApFQsNA1JkKMErq0wcA/GfAQBYoHWpmVspFvcYHnvPhYKYH1Ea/tTcIfY7jWzqx7P VauliNMZdt+YBkmNuq8di4kLL8WU6UuqlHmV9/aE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.0.33] ([46.223.3.12]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MFsYx-1nZEYz2JbD-00HMzQ; Wed, 11 May 2022 21:29:58 +0200 Subject: Re: [PATCH v4 2/6] tpm, tpm_tis: Claim and release locality only once To: Jarkko Sakkinen Cc: peterhuewe@gmx.de, jgg@ziepe.ca, stefanb@linux.vnet.ibm.com, linux@mniewoehner.de, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, lukas@wunner.de, p.rosenberger@kunbus.com, Lino Sanfilippo References: <20220509080559.4381-1-LinoSanfilippo@gmx.de> <20220509080559.4381-3-LinoSanfilippo@gmx.de> From: Lino Sanfilippo Message-ID: Date: Wed, 11 May 2022 21:29:57 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:2YM3NlkX/0sMI9zCc5RY9WsR+sxWJN0JqQrDj/YQAw0LZLxmRJn rY4U4x7LZQZf6s0BzWRcDDv1qH2TZ5TnzkcqBCFG6vTO7tADVUDTp4L2NjT4Z6ZYiwQW3gF pSfzJ3EosYa4IU5B70bFu5AC3vXEBPpk28KGklYf9P5d8sjj93ERAnNUSqjwC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QyhJMPL2ImuXqkX9+DrM0uygEPIxZXWhN+x8Bdrn 5CR6kJpumQjqJ0gVX+TTElTkm737Fc110nTSak7w9QSXpj9S5nQUcYAY7hjSZhapG4oF4ycNf qrWvWXuLeAG8G02hp7rgxyMRKPmh8HSX06izxMD2qd5j/Fvmj5Hv4I3AA== X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,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 11.05.22 at 13:27, Jarkko Sakkinen wrote: > On Mon, May 09, 2022 at 10:05:55AM +0200, Lino Sanfilippo wrote: >> From: Lino Sanfilippo >> >> It is not necessary to claim and release the default locality for each = TPM >> command. Instead claim the locality once at driver startup and release = it >> at driver shutdown. >> >> Signed-off-by: Lino Sanfilippo > > We are doing what we're being because of Intel TXT: > > https://lore.kernel.org/tpmdd-devel/20170315055738.11088-1-jarkko.sakkin= en@iki.fi/ > > Unfortunately cannot accept this change. > I do not see how the patch affects the crb code since the only changes con= cern the tpm_class_ops of the tis core. AFAICS crb uses its own set of tpm_class_op= s which are still used to claim and release the locality. Or do I miss something? Regards, Lino