Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp52580lfb; Wed, 29 Jun 2022 17:11:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQ3xmt7Yow1Qzg1fCPsaDOif9WJIz4LqusIGFwXg8mQltRxSFQemb7fOVD+hhN6LhWKUZs X-Received: by 2002:a17:906:ae0f:b0:726:32b3:17f4 with SMTP id le15-20020a170906ae0f00b0072632b317f4mr6108360ejb.116.1656547901216; Wed, 29 Jun 2022 17:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656547901; cv=none; d=google.com; s=arc-20160816; b=mokXcts1bnhmOnniYIzDoF0NtewFzWx/0U81Hdy8XXLljzCFMqh84LFhSjlFA6tYtx MUBiQa5qnLbC6TqxpuJaHJuRCkEE7zktjKv2vHajC1MaluS2kfIiUTUPBJcIOFsuhhfA 1fMKJ0YsErgAcRwgp0ji+amO8vZzGp6sx/VafhTYTbt1Ft3mGoTckduqV3cX0SlIm60/ pJro348G+0DAbJVCy+ilpuW8ohKlYF4AEWY+pfGw25mlLX0wYE7qPHTksJ1bxa3fTboe XiXouD+1B1lQWJbZ8aiTwz6KcZY8xjgS5yyQOwiKziZzdz8rIgsvBDXFIVeGjhw/d9ai GrLA== 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=o0C44923qTpK68+z577TDUD6416MfHxXXHwGvB8ySvI=; b=jJwPCdmK13oTRM7acOow5j7RcgqPlcEXO0eaQsnVcdzj1nk53ez/gTOfwYuxVKHHQn Ia9mg62uW4tXEL3Vh7tJfZckwFJhjnkiVRp/cZvZSOtDjrv38Ms+jZxAcdYcBRDJ3W8g KxpVaUb1R7/XOB015q1VR19VyRMzfXl51VPJu0PzbyzWHGxTD7iG+NMp+321EiQaaExX WNMdqkd0zjSWzgPOMLLuD1pR3DOPz6ESmMkOm+J9Z/lFUzyWNRfXOwqU5AGVQMPjfjn/ EP2Rm8A4uroYO1ztr69qxCo06b3CbFHgWLt8/B57e/Yp4KKJrmMkLhg0RKBlO4+s8f3W omJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=fgNkEG16; 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 hb20-20020a170907161400b006fe815664dasi24311612ejc.315.2022.06.29.17.11.16; Wed, 29 Jun 2022 17:11:41 -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=fgNkEG16; 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 S231429AbiF2X1r (ORCPT + 99 others); Wed, 29 Jun 2022 19:27:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbiF2X1i (ORCPT ); Wed, 29 Jun 2022 19:27:38 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 236FA2558B; Wed, 29 Jun 2022 16:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656545245; bh=o0C44923qTpK68+z577TDUD6416MfHxXXHwGvB8ySvI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fgNkEG16d5mUk2r2YeQsHTWM1ctILEQM04NnkKlnvzR0syPOp81aJdYx8fKcpUUAL Bbz2MvHQDT7Ha3Cl+/882oFbnBd/GNHlqJtp35s6cqErqhfIoVctIhH9FOrPThd7Dc QZOitoi5Iuf5Gi0EwdgyFh6ddlNEs1MHjEiB9Dkg= 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 1MZCfD-1oBJe93Acj-00VBgs; 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 04/10] tpm, tmp_tis: Claim locality before writing interrupt registers Date: Thu, 30 Jun 2022 01:26:47 +0200 Message-Id: <20220629232653.1306735-5-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:HzRj5Rb2KA7Nu5VSQVaUmCPY8sGIHyFlrsjDdpV90jnEsvtYn01 +rLxPPjeW3H5Q4fYCy/4jweYnDv0KQyPi7vzd7wWuWu2TYYlG1mjL4Gvhkvydy7J5Gl1qYV gmZgKQIIB9itEX5vnDZSyPQliUsXItSnUR0lNOWqFcyLwch/BUUMa3jY4R3k1nqVKuP6E8r V7Q5Ixwg2yRW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XtOOHSQpYDbnsOC t0aIuQYQNAJ9UVdpKxjV5EbvdoGaEoGT/vzIeGLpGrJ2wMXeg0od9AnVT9VVs/oHOFSXx84qr GNenFTpgls78BTQ5/D3xK2QLrPUkYUPjGdLnRLbQdupkdem0W9PE+xp1Q== 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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCkluIHRwbV90 aXNfcHJvYmVfc2luZ2xlX2lycSgpIGludGVycnVwdCByZWdpc3RlcnMgVFBNX0lOVF9WRUNUT1Is ClRQTV9JTlRfU1RBVFVTIGFuZCBUUE1fSU5UX0VOQUJMRSBhcmUgbW9kaWZpZWQgdG8gc2V0dXAg dGhlIGludGVycnVwdHMuCkN1cnJlbnRseSB0aGVzZSBtb2RpZmljYXRpb25zIGFyZSBkb25lIHdp dGhvdXQgaG9sZGluZyBhIGxvY2FsaXR5IHRodXMgdGhleQpoYXZlIG5vIGVmZmVjdC4gRml4IHRo aXMgYnkgY2xhaW1pbmcgdGhlIChkZWZhdWx0KSBsb2NhbGl0eSBiZWZvcmUgdGhlCnJlZ2lzdGVy cyBhcmUgd3JpdHRlbi4KClNpZ25lZC1vZmYtYnk6IExpbm8gU2FuZmlsaXBwbyA8bC5zYW5maWxp cHBvQGt1bmJ1cy5jb20+ClJldmlld2VkLWJ5OiBKYXJra28gU2Fra2luZW4gPGphcmtrb0BrZXJu ZWwub3JnPgpUZXN0ZWQtYnk6IE1pY2hhZWwgTmlld8O2aG5lciA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