Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp32893iog; Wed, 29 Jun 2022 17:25:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s8MaE/+63M9/mFjmGr0nSvvLCHXmsenqxk4R4nism48WomsumkLa+GbScrMqYP8Q5p/Oi6 X-Received: by 2002:a63:194c:0:b0:408:a9d1:400c with SMTP id 12-20020a63194c000000b00408a9d1400cmr5252482pgz.559.1656548758171; Wed, 29 Jun 2022 17:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656548758; cv=none; d=google.com; s=arc-20160816; b=NULDz42Gg2j9/x1okxUtW6rM6Vnv/ol369rKbUAOvgvTV1kwK7Til4ybq73H/s03Sj HOSFP5f4R4SSMIZhzkh0haDO6/iX1tuQuAMenmb3gylS/GQ4l+0UQUaUfshZXhkTkTui QyzN8Ebyp0x78qQ70vA7cd7pZ/bJLfZdV8myskM+uN5aYP5OrC510mImF1AZJAW1sz1w Q2KKyGxKY+0Kvk29/IZaNxZbuJHoiMwnzwaMm40juNcOEAkHA6lyM1v9dgHspI17VJfO Rz8PIgKbEXLCtkyQeK+Y3cjWUIFjHNAjj00GUQ7rVmD4joz6wHvISv0BNu50SIzksSBw 5ysg== 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=rvhNW71j9WjbkK+WwiRm/itDduq081D1SK95P44Pd40=; b=egpPSeMka2GBBAsH87NO34e9zvfBm07n526h12SsYCzPmMCYHm/y6DkKistmWVALic CKDsQBBSGuKB/vHHQTdfs1nG7ZMmwn5/zICSai5j/gi1B1RsTcLRtCws/YqM6/8BE2DW JcPbSBkPTlD8AU/k+UDLIViJxHTUk7YMvtn5JM3zVWN2d2Xm8ah7c/l4DZ30oIsSBIfm WzOpORFHw1lee2zYF0ayHBMLza2wwYUbiDiOlEoqvPOxUrMJD3YA+J+nmonqexLuWPZw 2japNrUjnm0Yy07TTRjOTXIm4X33VUanMN/PQpFmvWcSqCNAVzCh0K1pnXarJD3hapwy PvOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=DQPILKvB; 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 h184-20020a636cc1000000b0041175dfb338si5322332pgc.178.2022.06.29.17.25.29; Wed, 29 Jun 2022 17:25:58 -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=DQPILKvB; 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 S231529AbiF2X1u (ORCPT + 99 others); Wed, 29 Jun 2022 19:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231205AbiF2X1i (ORCPT ); Wed, 29 Jun 2022 19:27:38 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81E1A24F13; Wed, 29 Jun 2022 16:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656545244; bh=rvhNW71j9WjbkK+WwiRm/itDduq081D1SK95P44Pd40=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=DQPILKvBISTA7EHXGHDLqdtdxTZWToCf8pSAI0rmVMWdSp6lltGq+tFW6qVgSa4+s sQBUCsHxHc9rOEzeUhfXAJ44hYyQOEtzmkdJjzq4q9Ow+p9RnMpyIRBVgwdmnTNOqp gcZmAc6BQXYAkYcijNI0TDZSEzuJguhS5mfUd3dg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([46.223.3.23]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MirjS-1nRpxQ00pw-00eqix; Thu, 30 Jun 2022 01:27:24 +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 v7 02/10] tpm, tpm_tis: Claim locality before writing TPM_INT_ENABLE register Date: Thu, 30 Jun 2022 01:26:45 +0200 Message-Id: <20220629232653.1306735-3-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220629232653.1306735-1-LinoSanfilippo@gmx.de> References: <20220629232653.1306735-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:lCmI/VIZRRhTn9k7p1XCSCVWoC8yP5MpZUkj0y+lB/CYEgL7Uak cp/85+QHwaJrGXOBeahieR2MwW4CVQG/30f8NPUa9Yo7h1Tc3ZUoM00OnToI+fjFMdt8Tc5 ha2CebNSuUA9eR9fK3DeZ7oS/Yz+hBKHyTPo1GI/mnuGJVuGM8JDEGEBAF+W9kd9MGJqdqg zWMa1rcZQI/JKnhTsrYGw==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9zMN3hNxytdDfKW+3r2NZ toYANi4j0L5iRxRkFdkRZxyJtZNPiabjPtBkg5CA1aOIqaM2Ise/n+CqrR260a5WR70mscuLo F/kTbJfNcGJ43+XrQRJYv80ldZYM1ZkbZatcYiaL/MHgUESkmr9cbGoQg== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,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+ClRlc3RlZC1ieTogTWljaGFlbCBOaWV3w7ZobmVyIDxsaW51eEBtbmlld29laG5l ci5kZT4KLS0tCiBkcml2ZXJzL2NoYXIvdHBtL3RwbV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