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 31034C6FD1D for ; Fri, 17 Mar 2023 10:10:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbjCQKKp (ORCPT ); Fri, 17 Mar 2023 06:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjCQKKg (ORCPT ); Fri, 17 Mar 2023 06:10:36 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA46A6C8B6 for ; Fri, 17 Mar 2023 03:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679047835; x=1710583835; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=5qovmi0rIYUnlTi1MdOdXtkrta66GTF5hNrzZHNCG/w=; b=WY42ytdjlATZJA7m8LfER1lLn6P7TdpayeOewhX7cbYBAq3RkfnOHBqB JIOZlkQNO4yoURTbXT+O5o0Md3YZf0FVPpizxWuXEHrNYwEb3P584sxeN WxV64rkyCYF86f0P6aowYjoAz6iRe5lnpjTi48OR74nGwN3kvWmli7gEq R1ilTHzmTd73uRS7ZuUHsPWzD34+1G3YatD91qmh6YHgjvy3OaS9F6mKz Ea2RYnTsuKJaWeJLJz1Do0e4zA4ubfCmDQvRgWri50jnLGlQiddggB+Fq zKKiWvke9mNB2Q+EcQUzBcc+B5CGA+Msq3ZOIhK03Z9AyXe7FNTFxoG5A w==; X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="340592164" X-IronPort-AV: E=Sophos;i="5.98,268,1673942400"; d="scan'208";a="340592164" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2023 03:10:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="682631861" X-IronPort-AV: E=Sophos;i="5.98,268,1673942400"; d="scan'208";a="682631861" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga007.fm.intel.com with ESMTP; 17 Mar 2023 03:10:34 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 17 Mar 2023 03:10:34 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 17 Mar 2023 03:10:33 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 17 Mar 2023 03:10:33 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.177) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Fri, 17 Mar 2023 03:10:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FqMtIunBIdEFCbqWbroQOty/fDHmMAEIBlwFLkkaH8mjDUZyyCiiBS+cVVmixjEpnHmf4RjQI4ZQgm+Q95Q3sNIrNPdK4K+wiUmG3CdmAX5MczYTslOKkhB5S6poK3Q5jVSNeOZ8X/avgd/2Z9ILoWsGP0qjRaJxyvIW7vLWSYABMMD0cfMXUumLSI+aWpC2WSPu6gqvoBYzXrMjH8baH6MRSuaqOroqJ4nP6Mvnxr+XPCO3wgDbmdHqg9CqsSUccaAUl3ssTv/inAUuMs+AaYmvDf7UfMHI7D7Cn4w0Kn7bdvJlo5cB3S0zBkIlv2ewlvUS0bUcp0+MVn27ZrfiHQ== 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=5qovmi0rIYUnlTi1MdOdXtkrta66GTF5hNrzZHNCG/w=; b=lYVpQVZ6tTOGhWhbhtL7SiiFmjyW86jB35ETmRYl1/lyEWxpp4kmL6FO78oMOqNsB1RTKepqOmQD2ByD1HJwh6n3r7vy687KVtuSlqAPXjX+aMJEQOvXRC6i2LHOXlkm344FpcsHjvqlI8eUiol8shhnfzAIvJ3pgARbksXC9+MSmtm9o7a+NkoLSoCznxJPbS/fQljLvOtn2QrhAEqMnTkhU7TRiVBdDb2ia8lodd6CttKKF1gF2HQWsyxFSDniRkDw/aUvdOd/Af1O8LmmpNvhsWbOndPWigYkDWHcuMfVWBiN5PvEQsFGxH0j8MumdU0Yp2rKd8VhE77vQ/7W2A== 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 CH0PR11MB5266.namprd11.prod.outlook.com (2603:10b6:610:e1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.35; Fri, 17 Mar 2023 10:10:31 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::1aac:b695:f7c5:bcac]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::1aac:b695:f7c5:bcac%8]) with mapi id 15.20.6178.035; Fri, 17 Mar 2023 10:10:31 +0000 From: "Tian, Kevin" To: Jason Gunthorpe , Robin Murphy CC: Jean-Philippe Brucker , Nicolin Chen , "will@kernel.org" , "eric.auger@redhat.com" , "baolu.lu@linux.intel.com" , "joro@8bytes.org" , "shameerali.kolothum.thodi@huawei.com" , "linux-arm-kernel@lists.infradead.org" , "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "Liu, Yi L" Subject: RE: [PATCH v1 02/14] iommufd: Add nesting related data structures for ARM SMMUv3 Thread-Topic: [PATCH v1 02/14] iommufd: Add nesting related data structures for ARM SMMUv3 Thread-Index: AQHZUnWUiZWK9pEL2E+1+XYbwxtqR67ydQKAgAASmACAADzzgIAAKxqAgAErXACAAAkLAIAACQyAgAABpQCACpw3wA== Date: Fri, 17 Mar 2023 10:10:30 +0000 Message-ID: References: <364cfbe5b228ab178093db2de13fa3accf7a6120.1678348754.git.nicolinc@nvidia.com> <20230309134217.GA1673607@myrica> <20230309182659.GA1710571@myrica> <82f5b94b-01fe-5c99-608c-f7d124247b7c@arm.com> <029bb2f5-78d5-a3f2-1ae7-97fc7147611d@arm.com> In-Reply-To: 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_|CH0PR11MB5266:EE_ x-ms-office365-filtering-correlation-id: e5d724e7-fc04-4b36-ccf4-08db26cfd6f6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Jts1WHmB3oP/VLP2aY/kersjY6IKK1vUG1iA3q5PaVlsEw9+msr7ISTST1iLe0hasf4+s+HDTTPWzO55SrmGc0X6ighfg+0rs9UxghGnZj0Wc7oFzwxVbeghUQ1r1W3ed6lDY4xo5CG2XvMlg1oFXKr0QSsbTYFvxh3thNeKWk+7IuLAWknaY+fmigdUJAfAr+80cfa3g0AHzrqvSXEnkLt7pIa3nRrViUf6phXMneOgphHiutNO2h3ODJ0iqy4B522PpBrmB/ZVq74YQa6DEBp/sUvu944f5EHc+snd0nmAkmiifSwh2wm/9Omk2vUGTAYHHw3BeE2D4+URRvXQz2mVQ+YfjfiSN2CeQJIxKyAKOutlUMmBLsHir7uCV7SijFsdd3qBws3FqH2kYuEgbFJVr/LirmzLcnHmIp3KZhKBxvVIx+cqvYFyTZsLRF+L+FS+tW00pTE2/ht3jODarcu4wJTs4NrT9JDqdmqyMPjuQlFY4stOZH8klARF73t5v8qxIQcFHNEKDtCiWTDCeN3uM1bLZbAY2Ni7PqARWhAMOQDPbimJ64dcriQC05IbIU+rDAB/pZVQJo12t1t7dkl+SEsHCiz9hIKqo1MmTPaCTpGGnVh4wTDPO7o3ethNTyvceSogL7iSVLHpp8AkdftxjNlW+7vN6GqkQtmdd54x62gnzygEFF2tfSOmpz5w 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)(366004)(346002)(39860400002)(396003)(136003)(376002)(451199018)(38100700002)(33656002)(122000001)(86362001)(82960400001)(38070700005)(2906002)(8936002)(5660300002)(7416002)(52536014)(110136005)(71200400001)(478600001)(55016003)(316002)(4326008)(41300700001)(7696005)(76116006)(8676002)(66446008)(66556008)(64756008)(66476007)(66946007)(83380400001)(9686003)(186003)(26005)(6506007)(54906003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?dndwVmZC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TXEvNzlJRDRVMS9RMkZ5UXI4?= =?utf-8?B?eFM2TWt6R0tzUXkvN0FxOUhjSi9XcHBIZXVCMldpb0FKNlczcWd4Mi9UVHJR?= =?utf-8?B?N2lHQW13ZllOa0doaHVOeFlOZWVlQUUyS1pzRU9RVXRwYkNWU2orNEVjeGJM?= =?utf-8?B?Ylo4RWoxa0tibXN1WSthWGh4N2xObkoyT1VPeFJLN0hTcHNkdjdCVCs2aEp1?= =?utf-8?B?ZTdxeldqVFNLdkN0dVVVcDgvMWJMOURHOTZocG04blJKbGlmU1M3bllPUmtS?= =?utf-8?B?WVI3a0FUTHNYS1NtY0RTa2pWSkVHM3NwbUNJUXgvT1dETHhYeWFod1lmUnVX?= =?utf-8?Q?FjABS+WlDGgKii+Ua0nOuSLVF?= 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: e5d724e7-fc04-4b36-ccf4-08db26cfd6f6 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Mar 2023 10:10:30.9172 (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: tJIdqHCjbOdJIer6a70uP97Vn+duqihAu+j4uVr/BOmV4Be81gdXH7tHZiyRK6PmFISmAEeGkWEJ73UJo7zGUQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5266 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBKYXNvbiBHdW50aG9ycGUgPGpnZ0BudmlkaWEuY29tPg0KPiBTZW50OiBTYXR1cmRh eSwgTWFyY2ggMTEsIDIwM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