Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp9288imm; Wed, 5 Sep 2018 19:56:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYf+xpZ6/K0KsDvpGXd1iCp6nfiOL9EuKgXi2qrDfFgArmrocUTz0BL3PVGJfj01h6tC3js X-Received: by 2002:a62:d085:: with SMTP id p127-v6mr693279pfg.119.1536202573954; Wed, 05 Sep 2018 19:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536202573; cv=none; d=google.com; s=arc-20160816; b=PdZmzPAUGgDFSqtv2V1TTjQOCufaj4MjhWeLevAhmDC+3TF6D75BtAkEQpj0Sv1BDo gCW/BiHRRxGRHYsAdsK9h0DTMJdiYKHdQcbGQkHP6TTgYmWlA7T8kGyxV+t76GtcCDoN tIRSmYz/0uKWgQMVXEohWwo1Qxi4EsQu+IYCszs7HsWd1DmJF8XUFTu09qO+Ob8vV2jm b8w/48uweA98CMBiv7jtYxRLJnDj9sDJrJOXVLlLTpHRKXTtPZ4kmgdd0oWHqaTWYydl SwzfyY3umOEUnbUPq6n0dZeppPYZOW4GcL+iC4PjCemk+TInOMLwvdV7HmTa1kEWEf2U CELg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=MpJudeKV5Ui4HARsQdY55lk/lTEIl9PJNvc6bpTN1hk=; b=N9Ecfy+CyjiHOe0AjF1L/bEFwnl2Qg1DEJ7sj6sKWVkTWA8OQGcWnWzORR0ybiHyRE WzzmqIDQgajoYl0Amhz7vgik3QUUA4emVQpWlHC8XU0+rjK3bQwKae2JrEAzT8vzgWen OPfrEHJB82TT4t3uXkY9R3z+yRlDdRYgl9cIKSUHzZrtod9TMkA6MFpI757azDyaM8ZM FBr/fTH3uRSTGcSYIXZmLOhd0i505HMNEEuHlOkQ5Pst3n/JrIMK2ic7wZlKP58W26vP 9JKveq1apRYWlI3JKJSiq+qGAUPOYroGdJ24iUh0P6qXNz0OjkykYIV1ytyaNBWJ6xvq MJ7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m193-v6si4172716pfc.312.2018.09.05.19.55.57; Wed, 05 Sep 2018 19:56:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727621AbeIFH17 (ORCPT + 99 others); Thu, 6 Sep 2018 03:27:59 -0400 Received: from mga03.intel.com ([134.134.136.65]:42672 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726059AbeIFH17 (ORCPT ); Thu, 6 Sep 2018 03:27:59 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2018 19:54:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,334,1531810800"; d="scan'208";a="86400594" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 05 Sep 2018 19:52:34 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 5 Sep 2018 19:52:34 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 5 Sep 2018 19:52:33 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.205]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.143]) with mapi id 14.03.0319.002; Thu, 6 Sep 2018 10:52:33 +0800 From: "Tian, Kevin" To: Lu Baolu , Joerg Roedel , "David Woodhouse" CC: "Raj, Ashok" , "Kumar, Sanjay K" , "Pan, Jacob jun" , "Liu, Yi L" , "Sun, Yi Y" , "peterx@redhat.com" , Jean-Philippe Brucker , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , Jacob Pan Subject: RE: [PATCH v2 02/12] iommu/vt-d: Manage scalalble mode PASID tables Thread-Topic: [PATCH v2 02/12] iommu/vt-d: Manage scalalble mode PASID tables Thread-Index: AQHUQAHs3HUDSv3XyUCGZgqDJ7RwY6TiiUeg//+IGYCAAIcuYA== Date: Thu, 6 Sep 2018 02:52:32 +0000 Message-ID: References: <20180830013524.28743-1-baolu.lu@linux.intel.com> <20180830013524.28743-3-baolu.lu@linux.intel.com> <44298d5c-5720-a382-07d1-a90a072ff24b@linux.intel.com> In-Reply-To: <44298d5c-5720-a382-07d1-a90a072ff24b@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODQ2ZDhiMTUtMzk4Yi00ZGE4LWJkNjctYjc3NmUxZWI4YWI1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiRWNmdVwvUE85SXc2cWhlZjl2TXdueDROcytPeFwvNGxwU2VVMkxJd1BrYUJSQTZtc05iXC9yR1gzdUQ1RGV1TE1oTCJ9 dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBMdSBCYW9sdSBbbWFpbHRvOmJhb2x1Lmx1QGxpbnV4LmludGVsLmNvbV0NCj4gU2Vu dDogVGh1cnNkYXksIFNlcHRlbWJlciA2LCAyMDE4IDEwOjQ2IEFNDQo+DQpbLi4uXSANCj4gPj4g QEAgLTE0Myw4ICsxNDIsOSBAQCBpbnQgaW50ZWxfcGFzaWRfYWxsb2NfdGFibGUoc3RydWN0IGRl dmljZSAqZGV2KQ0KPiA+PiAgIAkJcmV0dXJuIC1FTk9NRU07DQo+ID4+ICAgCUlOSVRfTElTVF9I RUFEKCZwYXNpZF90YWJsZS0+ZGV2KTsNCj4gPj4NCj4gPj4gLQlzaXplID0gc2l6ZW9mKHN0cnVj dCBwYXNpZF9lbnRyeSk7DQo+ID4+ICsJc2l6ZSA9IHNpemVvZihzdHJ1Y3QgcGFzaWRfZGlyX2Vu dHJ5KTsNCj4gPj4gICAJY291bnQgPSBtaW5fdChpbnQsIHBjaV9tYXhfcGFzaWRzKHRvX3BjaV9k ZXYoZGV2KSksDQo+ID4+IGludGVsX3Bhc2lkX21heF9pZCk7DQo+ID4+ICsJY291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