Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1290134iol; Fri, 10 Jun 2022 04:35:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOV+XTEhlO9dq4qHiFZfxlVMBaLukHPspymbE5R6TUps4Uq9Z6MqCQxZ7d2epTu6rDk3Sj X-Received: by 2002:a17:906:7a0b:b0:712:e5:6bbe with SMTP id d11-20020a1709067a0b00b0071200e56bbemr8262620ejo.640.1654860918100; Fri, 10 Jun 2022 04:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654860918; cv=none; d=google.com; s=arc-20160816; b=Q+C9QhkpCxKyQty0+uurF2K5nCUSNtGJOL8b7KZb3DoqiDnF7Q0h4eoqCYb8HOtsyu zfRFPe14+wBzoYQN6xxXek5XTzS0qHid5+QqOSJdbc0lR7ymRswsC7Yc7rmqR6XgwGYT Rd3IWlD2XarH4oUQ7GK5wydAz1cbyfOHw8wvbX6A4oqONV2OOjcVKK83HjKr6xQ1yh3T moop93Rg7xyj7jzK9fwDgHLpIJYsF54KJXjCmsj24Kpjgal4V2gEnMvos5qcdLeb9u/6 huJPJmrm0fixiMUjhtRylZpwIaouUCQUnuzNWRFY2yZb8B6cWNQphVzjBVNKm/uVbF1I oU+g== 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=gceo6ZyZ+3/FHWvb4g2ddGemHTh6VUEjyhULSfblaes=; b=xFFZ236xG5OH5kd5P6buQqqq82tXdu2MYn6j0q4ZzmVKfZAPmVEJgLjhZ99CF89A9O 6Cyy37LitO5j2cD9hhivpNtfuYSb0z+merfRaAyw9QXWjuvBb+KItPS3RgdV2oX/fGPV 8aOF3+lcEScGQfewt6DxjPIByZe4CNGwrDcCweEqqpKa/XxkvfmllXM5sqYbLf2pHBUN s0cO/adn60A6X0Uqafec6AYG78j/n/Ws55KVx/FLDaXiWqd8YYYrfj14HJ6CV66vsOzP EP2kBK6+GDivP6KqOu+Wb5RW9oKlm4bk2X2e8ckQDiSkKYYHIyJoK5Y3QWSpOpOp4Dq7 Z+mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=XKlEkY8i; 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 ds18-20020a170907725200b00711d0b0e601si12626822ejc.760.2022.06.10.04.34.51; Fri, 10 Jun 2022 04:35:18 -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=XKlEkY8i; 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 S1348787AbiFJLJ3 (ORCPT + 99 others); Fri, 10 Jun 2022 07:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347368AbiFJLJW (ORCPT ); Fri, 10 Jun 2022 07:09:22 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C297D145595; Fri, 10 Jun 2022 04:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1654859344; bh=gceo6ZyZ+3/FHWvb4g2ddGemHTh6VUEjyhULSfblaes=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=XKlEkY8iOrWA/a+k0cnaJnC8GlL2A9c/kpH6TSVHcB0kLVBD0e5VapHyX9nurnHkI pojh5Me71KVznHY2+ylxx1uNlHIqWRqm995pooIH6S/I4Mkglr2GCVY4QQh5cp3G6e +eT2nyYXwt65OZslrwu8cqd360n7zT9he/Ox3lkE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([46.223.3.165]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mlw7V-1nGtuN0nSN-00j5Jh; Fri, 10 Jun 2022 13:09:04 +0200 From: LinoSanfilippo@gmx.de 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 v5 02/10] tpm, tpm_tis: Claim locality before writing TPM_INT_ENABLE register Date: Fri, 10 Jun 2022 13:08:38 +0200 Message-Id: <20220610110846.8307-3-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220610110846.8307-1-LinoSanfilippo@gmx.de> References: <20220610110846.8307-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:+T2VMvPYLN9HNY9SF32J3bu/AAmCYyuCfuIPXtTCm+C4hFezLbu ncVG1mcLvoy6eb7fGAdjLVw65s9DLRUClHD8zgP5PMx8JKsgP3curSZBEjRnB2NsTRchY5F ix3savnkOEubwxopsVAXBHOwdOnDvnb1Ccnw9g5II4Xr10OP1umpEycaw98fyfv91xen3Z9 DlMh0uolqQGgyl8v8tkkg== X-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DJh/Xuz+btey 5J8R6leicQNgFqF56k5xxWi0n+2if11AncGgOZASIl3OBPFTfl0VSwPhMoPcYLTr/ZtSYe9Ad YxHGAAoCtlrea+BlK6K2vKQ0be1NKHvEgWd75QA+1HgBVoDXF55UyTMQw== 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 bGlwcG9Aa3VuYnVzLmNvbT4KLS0tCiBkcml2ZXJzL2NoYXIvdHBtL3RwbV90aXNfY29yZS5jIHwg NCArKysrCiAxIGZpbGUgY2hhbmdlZCwgNCBpbnNlcnRpb25zKCspCgpkaWZmIC0tZ2l0IGEvZHJp dmVycy9jaGFyL3RwbS90cG1fdGlzX2Nvcm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