Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBFCEC678D4 for ; Fri, 3 Mar 2023 05:36:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbjCCFgL (ORCPT ); Fri, 3 Mar 2023 00:36:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjCCFgJ (ORCPT ); Fri, 3 Mar 2023 00:36:09 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CFD715C8D; Thu, 2 Mar 2023 21:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677821767; x=1709357767; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=5GM+P7l/W/RVx+yQ1o288tG4sVBvOwkgbdznC4Xsyx4=; b=mZai8cyZSWSz2Ce8tkro1xpAqbyQBpl9MLzocXMVEzDPBAgskKAVQCxK mle0YLefXlW+BYkud7+S5KeRqN7dr2yjGm6H69Rq/o6lUBEgUelv8qWHK WyNjg76RrtI0yGbDQD2y0KqJE34vTO/HqBt3zTj4ttu+IK5EqO1snZTk3 rE3b6sO5oMn62IfeCs8ehvc6Di8RR8djLrFpaV83J9OSoX4OLdZaPkhXY 9GGHPWfc8cjYO94vOCbxc0idIw0n9NWfZzkSchxlVL0E0/Vmb6ZRBSGPf AIPbK8nES+A15GmVM5MzvxlrEDCKIHQf2myHskhyOAtfYqjAg40Qjq5Uw w==; X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="318783354" X-IronPort-AV: E=Sophos;i="5.98,229,1673942400"; d="scan'208";a="318783354" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 21:36:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="764292686" X-IronPort-AV: E=Sophos;i="5.98,229,1673942400"; d="scan'208";a="764292686" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by FMSMGA003.fm.intel.com with ESMTP; 02 Mar 2023 21:36:03 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.2507.21; Thu, 2 Mar 2023 21:36:03 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 2 Mar 2023 21:36:03 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.170) 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.2507.21; Thu, 2 Mar 2023 21:36:02 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KMziXUt4pa+saNPN///9lqlqtWvsn74Q8aKaAb5uKFIlGevky+yI7yOqG0sL0671FJbz9Nugb3dljUSy/2p1GOvFmv0+u4hii1EfWfh5Ypo4fDtmZ//VV2FE22OxaMwMA8jH5vlQtsnJKmarhhoIWnhbYMoTbQMgPd/6eyF/SXCE0yXFhAi6vtE8g9ydTMYL7bAu0/TD1Diefurma1bkeOXDzoqaFZrwSZT+UUahA9gRxlBZ+3v6vbHpcFss1QE/P3CgDF3oad1qnAHgV68D7POny4BbfsVyQZe91eh2OrmAYt/K5U6Pwz8AFKKNU3MQAD3qqI1L05VcskzwJqWJ1w== 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=5GM+P7l/W/RVx+yQ1o288tG4sVBvOwkgbdznC4Xsyx4=; b=mSQom6ii/uYJZxzuwZOMSW774YIqebgdABKY5vuyhhueCgun2VqCGOMnq6C6N9pK03NfbjS2foND5OC98OffDMoxIdHdqN9bRGq0BafUbuhKO1lftPv8fYIjt2BAeuSTHAqOGVpsyqH+dqkDpBiNcJ5LBSPW4Zs9DYt/A1hcw6HNlLRTt+3b3C/uhsswPJfkE629KCNUsDpcGLJ2EZAvw9TRH+rYLxyB1pHws8jK1SS5MC67p+Kqgx4vaqCJNZ7g79fgoZAXzhBKxNNqjon/CrEuIkEW4JLb2rIQaAcAqKuZPXDY5zTKSghwwaoxUSDsvbjj0KzR9v7rP+5Smb9JZA== 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 DM4PR11MB6336.namprd11.prod.outlook.com (2603:10b6:8:b9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.25; Fri, 3 Mar 2023 05:35:59 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::1aac:b695:f7c5:bcac]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::1aac:b695:f7c5:bcac%9]) with mapi id 15.20.6156.019; Fri, 3 Mar 2023 05:35:58 +0000 From: "Tian, Kevin" To: Baolu Lu , Jacob Pan , LKML , "iommu@lists.linux.dev" , Jason Gunthorpe , Joerg Roedel , "dmaengine@vger.kernel.org" , "vkoul@kernel.org" CC: Robin Murphy , Will Deacon , "David Woodhouse" , "Raj, Ashok" , "Liu, Yi L" , "Yu, Fenghua" , "Jiang, Dave" , "Luck, Tony" , "Zanussi, Tom" Subject: RE: [PATCH 1/4] iommu/vt-d: Implement set device pasid op for default domain Thread-Topic: [PATCH 1/4] iommu/vt-d: Implement set device pasid op for default domain Thread-Index: AQHZTKHOquacUFj9QkCYXpGTEWy1oa7nhycAgADP6oCAAAT4AIAAAWnggAAdQYCAAA+5wA== Date: Fri, 3 Mar 2023 05:35:58 +0000 Message-ID: References: <20230302005959.2695267-1-jacob.jun.pan@linux.intel.com> <20230302005959.2695267-2-jacob.jun.pan@linux.intel.com> <2c9115d0-f251-c284-63d6-73714edc96b4@linux.intel.com> <7f8983c8-b703-4960-67b5-97f4053329db@linux.intel.com> In-Reply-To: <7f8983c8-b703-4960-67b5-97f4053329db@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_|DM4PR11MB6336:EE_ x-ms-office365-filtering-correlation-id: 6eb3ced2-fdfc-4445-8302-08db1ba92aa0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RLuhHianQITN/ifP+5BKMEce3hyeI7ztMfKBnQxTi3o/Pvl87dQVdSXThtvXyIyX21BtnimhA4z2MawFwNeTCrvGjEGEIzO6RJ/LhTAFjfeAVMuB1bfjFVT9/BoNcqMZlHDv12DRFTZMEQPGLhSOHk2o5VYkCJrrwH3HeDniHUCxTggTsnz5PqWQRs7Ofj4JytVSoTJpHFO2rEysLljLECidu74AQKm2yfqIq6Qt4xCLurDzfl5/Undi0NNcnWBNOfEjjFRhsRdCSAnGUGkXrpZ5u263jR7GIW1NY6gxacchp/byyM6p43A9Qp7j8N9rTBWUoWnrEktNIjrCtMZm5ddMFb4YJ4F1k3rG8ZxSGzohCp1ONlNjIbAmOKKQnmF8jJhUYqa4TrfwtPc5qfbkosOODBhMirSM4tK+FFh1oVmlcwSTlwLjrZutOJYW2BrjldGXvotxvsBtyVmmiLTa1JwHXlW1VUjoN6BlhQqYXdb0j8hTtYBxV1jW6/W/kVAdGBGHSgf6jFhnIerwDykfYE2PCNus2PfPHG073gDKzDU9LUxZHw6onsnNygWrYPUy7Iq8nOWi4zdttgYqof4KHgrR1+HMPyyRYDLkYlfjKzB3xnSwsbd0ctVQbmdaN5H9PIdfa+E0MjxulkFgGCwxgz9xfeIwPExEyVig/wHSQkXMOqEV0PNvz1uVVNPJqcLI7OKtlHbz5xAyuGRgcH/5mQ== 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:(13230025)(396003)(376002)(366004)(39860400002)(346002)(136003)(451199018)(53546011)(9686003)(6506007)(26005)(186003)(86362001)(33656002)(38070700005)(55016003)(82960400001)(38100700002)(122000001)(41300700001)(66446008)(52536014)(4326008)(66476007)(64756008)(66946007)(8676002)(7416002)(66556008)(76116006)(5660300002)(8936002)(2906002)(71200400001)(7696005)(478600001)(54906003)(316002)(110136005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?QVByUk1oNm1rakRMTVgycC9YdWJkSEgrR3FoMDhBTnVvVERJOXhoWlJOZXNa?= =?utf-8?B?dVoxLzZiMExkbHlOcVl4SWU1Und0U1VFZURRdjNSbzRCSkxLdDlOSVdpNElT?= =?utf-8?B?MDhCZmJEUHRzWjU0WkxCeWx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?B?YnBwQ3U4N1JraTNMODNrRmxZSitxNVBSTHZ1UFNjTE9rRWNUSmFDc0VKVnpo?= =?utf-8?B?dnBON3haUHFKbkcxN1JNSG1keFVqTDdiM2hBdzgwSG8xQjZEejYvc1hyWkNW?= =?utf-8?B?RVlISStvKzJaS2dKdVdDWHpTazFKL2Y1TmxoRmxWekdtdVNvWnFzdXBWdmli?= =?utf-8?Q?xCsqfSDgRg0cTuOYdnatyYL9c?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 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: 6eb3ced2-fdfc-4445-8302-08db1ba92aa0 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2023 05:35:58.1018 (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: KeRCRn5wch0pPXOc734KG+Um1puRic+DbmvCerdnNuTjBf6a/KHDzz64Wxx6wnxq0yYAjf83wCrBhWWQk9w8/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB6336 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBCYW9sdSBMdSA8YmFvbHUubHVAbGludXguaW50ZWwuY29tPg0KPiBTZW50OiBGcmlk YXksIE1hcmNoIDMsIDIwMjMgMTI6MzggUE0NCj4gDQo+IE9uIDMvMy8yMyAxMTowMiBBTSwgVGlh biwgS2V2aW4gd3JvdGU6DQo+ID4+IEZyb206IEJhb2x1IEx1IDxiYW9sdS5sdUBsaW51eC5pbnRl bC5jb20+DQo+ID4+IFNlbnQ6IEZyaWRheSwgTWFyY2ggMywgMjAyMy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