Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3576147rwb; Tue, 20 Sep 2022 01:30:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM40RfTHNBFE4R9ybaPQW3QXFkzBjMmJn1YhG3B5kQ3New6Ot1TeDRQxwA33cNaNhEyQAHu3 X-Received: by 2002:a17:907:320a:b0:741:72ee:8f3 with SMTP id xg10-20020a170907320a00b0074172ee08f3mr16246255ejb.168.1663662651761; Tue, 20 Sep 2022 01:30:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663662651; cv=pass; d=google.com; s=arc-20160816; b=ATxT6yAo/T9f55xjWpR9yKCfpa4QL5mcZZqLTNgluG2Xu71z9wpet2sQ8a3Mo5t+/+ BuOBGn8x/GVhBmDW4SC1Z0y+2ztwubs12o5kreIyloa4VXJN6DOAt7NZ0ahOHc1JmT7R 1jWVGxL0uOKeZOnuVQFmXu7tgqzQVaoPYPgXXbs/39yw1XTOhpPpgWTLi1cxS02RfLpW Tj3rHupFvFgI2jYRtFZ0+Tpk+I149hwaWhQ2KaYKHyCargZwzhpgld+E/fY1Qhw3yJ5i gfAt2szhY+e6zdmWgyNjU6EGhmDpTXYoj/OhUfH/sc3p4zK+ZUcqJeiYBPcgpO0ezHti 9Khg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=/415FNVww0J6T6zwy84U7hMtUQkvnLB/1RnJeY1Aowc=; b=C3yoNd6DeYaMbJgpQsQygyjuocHH2LmKvgrmcERHsO3bdZtf0cC0EZoG75V6591hAA XNSO8FfqBxgvtRq1z79XjyTOVd2Ok/I8q2TQo1JrOWEBdo97UOq9gKVvziTema7gy0B8 lWfFsd1uFZ1w85WYH2mss94abhUdAjX5ka9qUQL9SeL0YkN1CfugcHU0l7+CSHDC/Ak/ 3DXiiIwND+dAawTIOo7IDu2dL2GefHgNm4zawrrigt4DeoMc2frwisjYRxyBqIPZP2cN vgMiY5FmCIc/L7/tOGjWnlO4dra7QVhgiXF21rddL16ySLS77yKJqzh+He3tIbwj5Y9l 9KNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aSVRrRU0; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a056402064e00b0044dbb9afe1fsi863656edx.467.2022.09.20.01.30.26; Tue, 20 Sep 2022 01:30:51 -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=@intel.com header.s=Intel header.b=aSVRrRU0; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230359AbiITHwn (ORCPT + 99 others); Tue, 20 Sep 2022 03:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbiITHwB (ORCPT ); Tue, 20 Sep 2022 03:52:01 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 955C4A475 for ; Tue, 20 Sep 2022 00:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663660312; x=1695196312; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=/415FNVww0J6T6zwy84U7hMtUQkvnLB/1RnJeY1Aowc=; b=aSVRrRU0q3XdfQmLJQcna4VOssnhpWKMoVk+j/Tkgwr4Nf8j7+kxfwlW uK7XSEodnHxwcgVdkZwr0R8ZSwBjjL1Ht5ieSN9Wyjn2XQcnMhpjHDJMv 4qZtB8abkKnCrC05p8rNI2ERKKP15tMzzrKsKZYRAryvo8gq9bbBgixG1 qW7JuFhrkBLI/c+VM824LrPAprUo4kdBfzq3hGuzASpvtL+OObV+CiRRo KzsPQLUBFFuQVbbFd1YeYy3kX34Tdb2NEIqfaIfhl5jyb9AShFHY/inUq Dj5i8OLYIXPvHoZhHIT9+7krFR/C4SsSW1wWFo/xzbxnJBe3SMcrBcEhf w==; X-IronPort-AV: E=McAfee;i="6500,9779,10475"; a="325927073" X-IronPort-AV: E=Sophos;i="5.93,329,1654585200"; d="scan'208";a="325927073" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2022 00:51:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,329,1654585200"; d="scan'208";a="569981122" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga003.jf.intel.com with ESMTP; 20 Sep 2022 00:51:52 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 00:51:51 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 20 Sep 2022 00:51:51 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.47) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 20 Sep 2022 00:51:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Odq4xm62+8DiLby/LqXwFNw8eqOjIeKA8MYA1jgE0Dq81kwYkqRsz/L8onQdM9VwrFgYt/6A3xmFDZUBfroQ1r6DsQZ8NHMxaO+KSP7u5qQA2XQtZzePU3hsIGZuxxkr5UO149J0fNwiLdJfiRyFkl1Ue3oGDUR/ZDbmLIWLXsfccPl+9Ga+bfOhvcDxP83eecIzFk8jGsAnwRkDtt/J7APysAMAyF00MJzgkzkHth+/ZBzx5zuzleXJ5GPYmafOWM5tZC0uCVq8r6MnrkPDc4k12BPJ9G44ij2m4nIAbUxY4q3xrhcdsd79EyK+h1TEiMyVlWkop7NLOhZyUegSNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/415FNVww0J6T6zwy84U7hMtUQkvnLB/1RnJeY1Aowc=; b=cNT023cGYa3z6rFEl4wLFjxN/4Cx5XMHY196ud06bIMfDFAB/mtS1gAAkEt+L5DpgK9EFPjF4GcX91DQ4BfUEVq5L6MYw13pLv2loT9xBljiAaDbZtsnbbbxeGSpbc8Ufv6BTk7FHVfInMv9rw5pq8v7QGOoS2qY1nfRlE6ChJEG1/yIIjeN38hhx4Bc0bYppy8zD9OKA8pZz9SWlhJzuprRCl/fdVukM/JFngPTDanw7tqEOROj6AYrh3aMXIeezffflZxWSDnv2Vz4CojsAOH0eF3p2D5CY/xuSiU9IvKtTMgPX6shW1eOXNeJAcraEja7OIrA1ybWti2EbV982w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN9PR11MB5276.namprd11.prod.outlook.com (2603:10b6:408:135::18) by MW4PR11MB7101.namprd11.prod.outlook.com (2603:10b6:303:219::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14; Tue, 20 Sep 2022 07:51:43 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::a435:3eff:aa83:73d7]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::a435:3eff:aa83:73d7%6]) with mapi id 15.20.5632.019; Tue, 20 Sep 2022 07:51:42 +0000 From: "Tian, Kevin" To: Lu Baolu , "iommu@lists.linux.dev" CC: Joerg Roedel , Will Deacon , "Robin Murphy" , Jacob Pan , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 2/2] iommu/vt-d: Avoid unnecessary global DMA cache invalidation Thread-Topic: [PATCH 2/2] iommu/vt-d: Avoid unnecessary global DMA cache invalidation Thread-Index: AQHYy/F3FbzI9Jv2yUCl15h8lfYKJ63n86+w Date: Tue, 20 Sep 2022 07:51:42 +0000 Message-ID: References: <20220919062523.3438951-1-baolu.lu@linux.intel.com> <20220919062523.3438951-3-baolu.lu@linux.intel.com> In-Reply-To: <20220919062523.3438951-3-baolu.lu@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN9PR11MB5276:EE_|MW4PR11MB7101:EE_ x-ms-office365-filtering-correlation-id: 794aba53-c567-4719-0ac4-08da9adcf581 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kncg6TntnFIbFD5/b0n4kNbDh86oRZe8lkb7bQbYPDGhEGFtZIK0lEZa6vEyVNVDm0O4sKDLG1l6aYjC3z/7LF9uWgAhw9V9f/Dm0B7Bq9jccZYf8jJWJT2UOprOZGqT3NC2sVtSuA3cNvyDmU/r3xUmZhtvuzBkYjcSg+tYZxcD6pBtYrmZfaCSh8ecwqrIgPo1wYmJEYJDgAa4VvOfMIFifI0Eicr5OGZu9leCqM83Xn8iLzkSa4quW2gYzWHbiyuB7zYa1lbrHKbXXVQBf4HYs7pFveQLgF6FjcfwqRWj9T/J8P60XctLSeEGy6yZmMg7q8vIQAEQg9Ioz7Iabb2B/auEHlfUgmjXkXjhPN+0/DE/K0GPpdv5kn0UxlSETU66aqwrbz+75t3lREUwJ2aSzqcJUQlkl1TX3J2yBR6cOxV9uXmKVk0mXrwqzGsFoM+QnOipGo9ubuxKZecZoEjJlJNuztp/5OmUf0xRJw1nho/rPo5ciMu+XvHiolv5e0KtKL6k+XeHgNmzQDSkGEQ3Enm79P5Q4io6vPOLhvDoE5D4yRIsFFttdaJC80qof8IkLBVuJFNucVDk5HkQI0LFt7b14syVM4j3JOUeItKDZHLrz4uxlJ5R/FcZsFYPUEzsta1XR8dJOxQzAXYReFRW+WQY0FrHLv72rYetOpvj2AAt2A7t8vrWthKhssFQeP7xGEU9bUPIeC/0E/hoYPlM5xgMzEh5nOFfRgndwk8bmZCTN9SgW620WtlERUN4 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5276.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(136003)(366004)(346002)(396003)(39860400002)(451199015)(52536014)(316002)(83380400001)(4326008)(8676002)(76116006)(66946007)(64756008)(66446008)(66476007)(66556008)(38070700005)(86362001)(33656002)(2906002)(122000001)(38100700002)(4744005)(82960400001)(478600001)(71200400001)(55016003)(9686003)(26005)(54906003)(8936002)(186003)(5660300002)(110136005)(41300700001)(7696005)(6506007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?a7bGRWmT6m+9LHBRMa3qTF4LIyH61KOSQRARZ5FhhS6g0lpzHUcelpdXVjgN?= =?us-ascii?Q?Oyi/YxhqCEfr3we8PJ0kTcq4wxxfCNULNfspOhRPK1Oa3HjbTTAmrEMwSUwo?= =?us-ascii?Q?fH/jMAxh0qnp/O9DgQRY5u8ZzUzgIcuZMkGoviHQhg6dfCY8V8GH4cuGoPKj?= =?us-ascii?Q?XPOj1nxmG/8pbzeRcMnFFuBch2Y1uyy1H+dk3M6hCfyjyyER0ZmLFYhMjWti?= =?us-ascii?Q?RUshzaygMjgWLWeY5vvhaPg/iolO5vxJceIBXt1S/taj/Jc5YJnhkLKeLSkF?= =?us-ascii?Q?/MtrdHoxKy6LYateUkNWLnrQ0FKsG/KzSJim22c5wI8X1ycD38X/KbWJzwPe?= =?us-ascii?Q?7RjttrvBI0M4f15F09+/DyXKQAUKXtgIAEX1NhsysCgTEML0vAOT50uj8xId?= =?us-ascii?Q?QUrCWrhY2e+sk9rsoqeeeSDwVItsmR5VmWSqB0mrnYl1FAGBeokEZiXdWWl4?= =?us-ascii?Q?qMnq/8Aq0vGt4ZOMTFRWyRjEi2qjBWilWxnvwKLCOsaCCmIa91f0ZrWGggLY?= =?us-ascii?Q?zJ8KiOtHWxp9Fai91F36npo3CeWEISs6/0pkiHjG7Ew5HCJwjvXWHJk65Skl?= =?us-ascii?Q?PTB6wsGUwd3ef6qp5uI8qtQw9bcDjQNlts3yKML4c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1nkD8aJdA6zfT2Mg/QMeHVL97g1oQ8JlPNNhipHoEy8HDq7?= =?us-ascii?Q?NgYT/8CIRFx5UN9zU62+kX81qFvs7mqetWGO9H8x?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5276.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 794aba53-c567-4719-0ac4-08da9adcf581 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2022 07:51:42.8547 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: g0UFki4/ojsXiuPjN7ARsmOgs4YVpa3OgJYq6wCE1CykoAB8MMN7KO3VOmin4rKcnZo1WEmY8sKUqhbJ6Lo7Vg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB7101 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 > From: Lu Baolu > Sent: Monday, September 19, 2022 2:25 PM >=20 > Some VT-d hardware implementations invalidate all DMA remapping > hardware > translation caches as part of SRTP flow. The VT-d spec adds a ESRTPS > (Enhanced Set Root Table Pointer Support, section 11.4.2 in VT-d spec) > capability bit to indicate this. With this bit set, software has no need > to issue the global invalidation request. >=20 > Signed-off-by: Lu Baolu Reviewed-by: Kevin Tian