Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3828629iog; Tue, 21 Jun 2022 06:50:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t2+3XHXuDmyAzPlkb6TEpqw2/Sua1mpRdN7yz0U3uhR1Mb0hqtnJ1qD6wVfSUq8Epusfo9 X-Received: by 2002:a17:907:2d28:b0:722:e1d9:529 with SMTP id gs40-20020a1709072d2800b00722e1d90529mr3892045ejc.464.1655819405629; Tue, 21 Jun 2022 06:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655819405; cv=none; d=google.com; s=arc-20160816; b=Fmvw0ZHdBEXTbH5AkVXO38+jkX8aQv8yyBbZ2lzlclZiP8lg4x2GLDId/16oDgeqAf NmKOAiuloRb2rxia4dO9dxKL9t7Ylha1huFGxH+94xSge0wicXtelqDaeCqEu3fnhbuq gpUE+CvN5LlgcIC6qX/j9x5hLVFSHBV9L4LqPYIS9tmOC4y00ytpi43HIcsOxNl19Mi1 WF6C0lCZqb/yI5B7H9LC2G8H5SVVnYp0yF3XXLemv9oPIUITrRR1m77O2NYAV5pm9Jqj D7U3Mll2ILUA4eU+4XOd64rM9HBW7Pwf6wGmsaUzeF4W2E4xMJp05TNHv2Do9tTIrDog jpPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=maYa2L+CZbzp+f7QcA0qs/6WRE/UVVILl5dq1Oq1CAM=; b=xVyn+kiboqmWLEL24kUP15TFZgqryob21EzM3TDSfT4tOXyps5UK0BdP1Rq0CY01zO oRiQz4KGji49ItX1Jemqk1ffw3vu1rD0YB8LKbw1ollCwfH/KvrHFQg2EtkMGore6kkM gSF2WCuXg53GZrN/hKi414QhcxDsovXjWdOL62Y5Kro9HfY0GSr7/bWMNL9l5c7opNqh OcySB69tzKVSXckTbA45+KPnRC1SJw7LGsr+Gq/M4qhn9B/zVu4o+ypq0WrjXDdvUq87 PGpkkuHqU3nEyUqBWAxfDFdVMmtDqk/9S92aO4PWio4V1CxnnX+hWfepxL5TWlRjDGP2 vWWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=jmGV2Lne; 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 nb41-20020a1709071ca900b00711da98d1besi18619662ejc.251.2022.06.21.06.49.38; Tue, 21 Jun 2022 06:50:05 -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=jmGV2Lne; 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 S232533AbiFUNer (ORCPT + 99 others); Tue, 21 Jun 2022 09:34:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351477AbiFUNbC (ORCPT ); Tue, 21 Jun 2022 09:31:02 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 016AC2AE14; Tue, 21 Jun 2022 06:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1655817937; bh=maYa2L+CZbzp+f7QcA0qs/6WRE/UVVILl5dq1Oq1CAM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jmGV2LnecYwW01LEZV8rqOJgKasRC4jfmr8NZbQk01zyb04xCNE/x7l1rOpajEuYb TUl0WxVmgDxjR+Z4w/o9rpEfjXQT+StX7/6kQWG434NgbTpa4pDHWfalM4RvEp7dwu crUzqFFjUlGV5H66dwv7z1ngGnlfuVGg+Efj+3R8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([46.223.2.162]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MAOJV-1nxMMt3X35-00Bu7r; Tue, 21 Jun 2022 15:25:36 +0200 From: Lino Sanfilippo To: peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca Cc: stefanb@linux.vnet.ibm.com, linux@mniewoehner.de, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, l.sanfilippo@kunbus.com, LinoSanfilippo@gmx.de, lukas@wunner.de, p.rosenberger@kunbus.com Subject: [PATCH v6 2/9] tpm, tpm_tis: Claim locality before writing TPM_INT_ENABLE register Date: Tue, 21 Jun 2022 15:24:40 +0200 Message-Id: <20220621132447.16281-3-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220621132447.16281-1-LinoSanfilippo@gmx.de> References: <20220621132447.16281-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:gifxAZRXM0plMBXYUpN8b4ed99qm35ucRjTWTjFlReD8vsJmBc5 d3tVWL5zgA4oggV65gRT9mDOR8rEHcuuRAQ18/MDquAJG133DcznJ4nbhnyS33f+HI1gJHI ghYl/CppOys9N8s/3xGsdAifrvL1CPpERvhwIAxMzKxpa1nDlxwBwY7tBN2r/2z1g+QKp3Q uWyeet8A/v3f3xcjuW9OQ== X-UI-Out-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I+6SyF7 w1nX10ccMKBmXQfCqcNUIYQaj3kZiku8OjaB5N0sIbpPvpx6Xm4pTEZBzMg7zlO9QaH7Iomue Ry33nFaixGFIzoIADwIzjN1YfyqDlqMBYnil0gdu1WS1HfGjJPOmPEnRw== X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MIME_BASE64_TEXT,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCkluIGRpc2Fi bGVfaW50ZXJydXB0cygpIHRoZSBUUE1fR0xPQkFMX0lOVF9FTkFCTEUgYml0IGlzIHVuc2V0IGlu IHRoZQpUUE1fSU5UX0VOQUJMRSByZWdpc3RlciB0byBzaHV0IHRoZSBpbnRlcnJ1cHRzIG9mZi4g SG93ZXZlciBtb2RpZnlpbmcgdGhlCnJlZ2lzdGVyIGlzIG9ubHkgcG9zc2libGUgd2l0aCBhIGhl bGQgbG9jYWxpdHkuIFNvIGNsYWltIHRoZSBsb2NhbGl0eQpiZWZvcmUgZGlzYWJsZV9pbnRlcnJ1 cHRzKCkgaXMgY2FsbGVkLgoKU2lnbmVkLW9mZi1ieTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZp bGlwcG9Aa3VuYnVzLmNvbT4KUmV2aWV3ZWQtYnk6IEphcmtrbyBTYWtraW5lbiA8amFya2tvQGtl cm5lbC5vcmc+Ci0tLQogZHJpdmVycy9jaGFyL3RwbS90cG1fdGlzX2NvcmUuYyB8IDQgKysrKwog MSBmaWxlIGNoYW5nZWQsIDQgaW5zZXJ0aW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