Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp482262rwl; Thu, 23 Mar 2023 19:56:34 -0700 (PDT) X-Google-Smtp-Source: AKy350aebtn5iv3UEfGo6MGH/7XiT+/5KPquxECFALJx8/wMXeaHrWcMNdxzTIi/hjMdfrdzylvH X-Received: by 2002:a17:906:738a:b0:924:7f98:7c55 with SMTP id f10-20020a170906738a00b009247f987c55mr1095939ejl.48.1679626594259; Thu, 23 Mar 2023 19:56:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679626594; cv=pass; d=google.com; s=arc-20160816; b=h0KTQ+rvYEtLn0MLSvjuy8+Nz4iQ0bWkQUbndZ6mf6fg6H30d4R+DL3/fCc0IcoqR8 us9JAqtwczQzilSnJe03gSuR00/rsQ27SWZwgWZHvXwqcS4nLSFMcMZThGzDFDHVr130 FomveDICWvMo4dy0m626fGE0ETgpDuYm89AZAgFvmpFq712tIwmjGK+0eddQmn7fWx32 bnl+hZrUzrccPVbkSeGqfX8N9MIDleME+suNgzNiuhehyeQlASb+MJMpozBHVGaqUbu1 JLlBSK6Jj7sB6lqPwuwqT9x3vR7z6hjcOfdF+iKrvTKSZo+BbgVtq/f0EUop7F7i2Cii 4Wwg== 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=saXE6G/0fJgVaSIZSw42wplsfMPFVi0zr8fKAJSSfS4=; b=pRQ/2U40FECzroVVEwKt5XYA5U0N2cj4JtTCYj1s2Slmg3Ds7grmqgKbHzonaPpwMR 47AN/WJ6GyRuwr6c2ldvagyyeo8eccFZmfCxoLMg5Ro0NwyfrqZHn1ILV6fSu8ZrxqBS ZFFz/CXxC3kob/LNrTaYlUNcSZpIf2jLr+4fC5jJwh7xiFsdsINeGrDuBbvSh4xGi+Z/ fhCYwkfL+OvjW3Vrk18TEpGnPwcajybQDIuO7egkgNvlDk6P/nHO8ekCHB99n0LA0IqC OE867Fm5HCSXT2K3Ms5xTPYquzov5drZUYWmA0qSzagxXm5HiSNRcNUiiG5afJmTIuGV MfAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=daenh8fs; 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 qw2-20020a1709066a0200b0093de5b42854si1172986ejc.778.2023.03.23.19.56.10; Thu, 23 Mar 2023 19:56:34 -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=daenh8fs; 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 S231317AbjCXCph (ORCPT + 99 others); Thu, 23 Mar 2023 22:45:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbjCXCpf (ORCPT ); Thu, 23 Mar 2023 22:45:35 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB4BF1633E; Thu, 23 Mar 2023 19:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679625934; x=1711161934; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=saXE6G/0fJgVaSIZSw42wplsfMPFVi0zr8fKAJSSfS4=; b=daenh8fskRw6iXhoU6nXvUp+96WSi9vFcfECaEeMAj75tTOUMOaP+rLD rte1xHRWJK/F7V0khEBszN2yfEYZVXXLW/gL3S+5LHbBdGfGjqh7U2aFL mrmAvJYftCOzBmnUYBgtkAYxceO3vZdhhT4GuCWpk6v+nokGySqy4dSZW RDu+zzzQqyvs7Eo157SejWdkbTnARxW7mpkODyrjRpmmF3eqiwjMl3ZZN WM3UtEyrltgE7kTnd/6XU+JAH4AuYEn7qTdU5f84B6B4beM4GNBUyiL0t vSrgSEUWNvuegAuB1uP1ltvNafWyrv/I+nrPve7y1cNnWCm4FD+Tcc7c6 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="339711094" X-IronPort-AV: E=Sophos;i="5.98,286,1673942400"; d="scan'208";a="339711094" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 19:45:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="856710675" X-IronPort-AV: E=Sophos;i="5.98,286,1673942400"; d="scan'208";a="856710675" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga005.jf.intel.com with ESMTP; 23 Mar 2023 19:45:33 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 23 Mar 2023 19:45:33 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 23 Mar 2023 19:45:32 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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 via Frontend Transport; Thu, 23 Mar 2023 19:45:32 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) 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; Thu, 23 Mar 2023 19:45:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VSUF2wSheCCMHTcNYaWtg0BmyoyREQCVbHuW8dB+g/DPYan0GjxGtSvPE7rAvGQa2rrXcs9ttwnU//wrmWc4AtPuizjxQMqiLC1keMeokwgg2it8SiAqDjrBTyRAivdnH/9A4naVwrQoa/oPj7MSOepJGTL7xCPBvxpClBP4mwyxdxDu+a082csSKK0yhmjZyZfiIpf9fJVu7zn3y5TOcCyqiVJxIRmCdUmDW1bP1VRQ2yVJ7HT4/R2lW0OVpp/zQ5HMTbR6dmc410ICcbggfxnEoH0S0vYvoTFV1cnkVX1BsmtvhzsjUQDLY9uCUZgtg0/48K/6xml6tebD3WzUOg== 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=saXE6G/0fJgVaSIZSw42wplsfMPFVi0zr8fKAJSSfS4=; b=PpAyZzcJexCClWRVPCb9e8X9cujY56+UELlkterG5gAppPSoYLMe2uZsuiD+bjyMGaMKqjEB+ftXxU16k2fBhSEcUUL7xjFDJg1WU9vV70iO2UWXXg1BYhEM6a09txV1/G5/1mMkcpbrv4T14n/FfUEujaGk6RAN0WRG0s3sSEKJcjTDuPn70cq9A/DeNAmzIpXkvcGRdRTWjF6hhDOJn/b5keDJLOpF2e4DulXIkIjfRFhkE1ZTuB14g4o+PPoJHc7MkipG5CCEbu9PV+Q4TENSIBAT0Xhs6iadAYyVX3DKRMwEAe8gEoGdh7MWhOqdgKRYTWUYdIYKpzuvAK+tpA== 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 CH3PR11MB8363.namprd11.prod.outlook.com (2603:10b6:610:177::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38; Fri, 24 Mar 2023 02:45:27 +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.038; Fri, 24 Mar 2023 02:45:27 +0000 From: "Tian, Kevin" To: Jacob Pan , LKML , "iommu@lists.linux.dev" , Jason Gunthorpe , Lu Baolu , Joerg Roedel , "Jean-Philippe Brucker" , Robin Murphy , "Hansen, Dave" , Thomas Gleixner , X86 Kernel , "bp@alien8.de" , "H. Peter Anvin" , Peter Zijlstra , "corbet@lwn.net" , "vkoul@kernel.org" , "dmaengine@vger.kernel.org" , "linux-doc@vger.kernel.org" CC: Will Deacon , David Woodhouse , "Raj, Ashok" , "Liu, Yi L" , "Yu, Fenghua" , "Jiang, Dave" , "Kirill Shutemov" , "Luck, Tony" Subject: RE: [PATCH v8 3/7] iommu/sva: Remove PASID to mm lookup function Thread-Topic: [PATCH v8 3/7] iommu/sva: Remove PASID to mm lookup function Thread-Index: AQHZXPl9t9KqYcxIK0KSMfXuqEaNzK8JO1ow Date: Fri, 24 Mar 2023 02:45:27 +0000 Message-ID: References: <20230322200803.869130-1-jacob.jun.pan@linux.intel.com> <20230322200803.869130-4-jacob.jun.pan@linux.intel.com> In-Reply-To: <20230322200803.869130-4-jacob.jun.pan@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_|CH3PR11MB8363:EE_ x-ms-office365-filtering-correlation-id: 26372a7e-a353-42b7-ed1b-08db2c11d353 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RE8I6z0dXWU1TirjS/z4Ddov22Ch0hM9nnRodWd+BR6yc1GyENkNRvy8qhTXTUm+jBgznnLvzIO7BpA43W087kJscFlUdx0B5LrwaUOOh4QiWTQyai1i5qu9i1rBhrcO72YIiyVJoks/D910aGsnccW6bS0wyYAoh++2TYuSK+jW18gx4mUGma+SyO05fh134mhR4sCuKc6LVxOxUk7aE1D1TxDDKubo61Di/Z3LIdLy9FrQC9znHGN6gVX7LZoAn+YWBpbS69wByP75ATvCNnaN6Ao6wlcwKJeC9xdAR17zI5zNAHKCnNCD4NQsEgs4a+JUuflAVXnEyiohhIROT6FNnJcWzfyJTBI1Gz4+Vs1SbNeHFLZ76UiUDW+gTRo1AgZ9X3LjPz7vsrgFu1M2YEkCIsuHVHR0CRLTNtsqOdNuX/INgqVUnspkEMBIhKHmCLE1qmu/jDnciV/xzlnnU44bwiTJO1eHzlFA8AGWnO7VSrJgbkeDvX62nFpRjRhHBXUck6DCZ216FBXj/0wDQBReCz01dmrM7qAbcJud0nUbPpHmiifs57GouVjQv+i+/yLiqvRzd7ZmOEnmWokCm6osp7nUxub8NK0QlfSV4GWeSBhroWLXklc7o1/91zXZZvU+IhLmOkgbNBJzazUau7v5Z2DazOKB3uP64lUYCKQJ75KOIGgesBor6Ryt0gUGL7f9fkWqhz1Y1AusqlC1oIRxlCzq+l4CSpv80GgjFDw= 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)(136003)(376002)(366004)(346002)(396003)(39860400002)(451199018)(38070700005)(55016003)(921005)(38100700002)(2906002)(71200400001)(478600001)(9686003)(186003)(86362001)(33656002)(110136005)(7696005)(54906003)(76116006)(64756008)(52536014)(66446008)(8676002)(4326008)(66556008)(66946007)(66476007)(26005)(6506007)(8936002)(316002)(4744005)(7416002)(122000001)(82960400001)(5660300002)(41300700001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?fkvPB++stE/9HHeDPNNyTn0hFkm4xPrZa34y2z0z1lr55YceDnkwq33OpSDO?= =?us-ascii?Q?nS1ISl1kuqjum5xCRx+XFGU2yqrygo/bcOz5tYR0kDaMGpWb+qudK/X6bOYy?= =?us-ascii?Q?It9ImZGiDgUx4mdIsiymvY4ugnRA2Tkdi4QE2VmnUXXr1NlHW6GLMo8ifsIx?= =?us-ascii?Q?iQqTT2k4iDOuZOw31HD7LsEhgCTwY1AhDjz5AGs72e9mFXAmtzu9wt0wj/Rj?= =?us-ascii?Q?6in6JZoPElpWOjloEXC/+eZyys+N0leR9N5V173uvpu6+zeB4hYxAdcHd46G?= =?us-ascii?Q?du/3bVaO8tJq/D91QmY/e1TvmCF3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cmd8c+gy3PmNIQC4eLHprPfmhQSbhFSnrJ2AKwIHK/npeH4DfZz7is5uCD?= =?us-ascii?Q?xnM6uMHaF5jyTQHjvYX4T2REdeBrjUKlDxVjU/WZiYLFdI4sBt53PiWO44e8?= =?us-ascii?Q?HoJHJqlHOdJjGdpiWxieo7vjz2Q4r/+Ei6uEoBYsb9J6NCc7dqkxl95X5LyH?= =?us-ascii?Q?A1Uqzx80YmXoIYsWmZcQDsP6MFgn62xg17xj5wBh7XnRTgo7wnPEvtIxslpQ?= =?us-ascii?Q?LEnL2vamNXvkTrx5RqWMgGjZ4Gh/el6ieZl4n+GyryV81eWJERjyTef/AiAi?= =?us-ascii?Q?woygQAS2SlWMuEVlB4wcj52cyCSsLccT/qGKQWLeO1KPYsIKYCV1fro4soEm?= =?us-ascii?Q?9JSyfIu4pqAE4E3h0WKacfszFFIam7uKA6S+H8dM?= 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: 26372a7e-a353-42b7-ed1b-08db2c11d353 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Mar 2023 02:45:27.4147 (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: rS+xReUIYRwzZIf7pjH6CcWgLFNKnX+7z5yQxlNLDMB7QSoZNBbK5VyOqTELRdYcsAMXbst0111dsO9u6TT9fQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8363 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable 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: Jacob Pan > Sent: Thursday, March 23, 2023 4:08 AM >=20 > There is no user of iommu_sva_find() function, remove it so that PASID > allocator can be a simple IDA. Device drivers are expected to store > and keep track of their own PASID metadata. >=20 > Reviewed-by: Lu Baolu > Signed-off-by: Jason Gunthorpe > Signed-off-by: Jacob Pan Reviewed-by: Kevin Tian