Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2255358pxp; Fri, 18 Mar 2022 06:49:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFEE3XKbaj1IDYKxY5uhVfrXWcUDXSdkLst4yrC6OWxFmDDOiq15dvhmejDI4JTZwORQsh X-Received: by 2002:a17:902:a502:b0:151:8289:b19 with SMTP id s2-20020a170902a50200b0015182890b19mr10342037plq.149.1647611375735; Fri, 18 Mar 2022 06:49:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1647611375; cv=pass; d=google.com; s=arc-20160816; b=B18db5p1ooZdh8fukNSAXdMQH7yYyVjtGEczqSgTg7mszmfWzFP1cdGsor0INYPVHF 1eH6R+v16TNapm/XJpDBH80GAqZtUKipDDa8tJaSCcT1LlbUvtBCr9MIYF4Ex/TjRZn3 HAMXuwj7gnePSYCKJSjpzvC9N6p4InvjIOhIvCHfOXeaYuk6XARc+hthZBS6BpcY+zYS eCW2MDAjdPJrUqCsWe6SBJWz3euqCosy3Zj1Re2Oaa+FA81dkwu8aw4fqPxI91Drk2pG gq7UYGyGzg5EhFaJbUenhnCUrABNVBGOH9EnTOM/jGIGQ8nyHE99cEbKEj20YbXR9Y/T ntjw== 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=tsJrXXdvBosvrfpv+D4vJQ5zlxqW6SE/eE4xiQxSdyY=; b=yle0slbl7S8WbjNv2YQcI/GxWWuMMhNb9UEiVqvYw1e0gBZYjqy+srhyUUQkuiDSLd yWZIfUcaDI4r1YSC9E0BpmR3YzLt6gRYcatvhm2gx1v+w2Rkp6p4XUsGEcMcDCfP6mJf 0rzH6Xd6BQXAajbQTxUinH0XR0ze+D0oIb64ijWKxRa2622kMqD6MWeKRL2UghxoP1nZ O+keCyTpqe6MuT76ipeWPdCszTDHjL5UeUp05IxS+mZspPEJ+z9ta5mILRAOT5Bhzh9f 5VR+P5kHIMY8XCgDsVqiHC2ObWiJ9o4Lo3Dj5EgTGwCxiMTk++r/yRaOs31RJfvz47Hl jEHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TLfQLOWA; 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 n11-20020a170903404b00b00153b2d16439si1839540pla.65.2022.03.18.06.49.22; Fri, 18 Mar 2022 06:49:35 -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=TLfQLOWA; 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 S232739AbiCRGaR (ORCPT + 99 others); Fri, 18 Mar 2022 02:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232723AbiCRGaN (ORCPT ); Fri, 18 Mar 2022 02:30:13 -0400 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A120D1100 for ; Thu, 17 Mar 2022 23:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647584935; x=1679120935; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=tsJrXXdvBosvrfpv+D4vJQ5zlxqW6SE/eE4xiQxSdyY=; b=TLfQLOWAe9D8IK3/9DIShujhCOXUCljuSzcmikoKMOa0OzG9uVGJ6/yA hEai7M8pPFiyIXDCN5fdN6BPEVXrwJ8w9TDju9CpeFsOxfmuUu+IkqbOT N2j2O4AkS99sBvi8zpB+T1aMvrwK/+buzkI+cBZP1yIbwrhvBULeOi3O4 ezf/wPupVOHKV66Uubx3j/JLQhxCw7o9TTEB8VjsW2ZKxJqsr8PkPAbFh C59d815+shnVC7nbsod7Z89hqIF43jfTwHHbSV80w+02xAwsqvJTO5hiP 6msWXhbzfceZQ+VFqgGj906/KKPQucoKlfuZhWcYa/aAiga7RLZ6UfxXI Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10289"; a="317783683" X-IronPort-AV: E=Sophos;i="5.90,191,1643702400"; d="scan'208";a="317783683" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2022 23:28:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,191,1643702400"; d="scan'208";a="599372868" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga008.fm.intel.com with ESMTP; 17 Mar 2022 23:28:55 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 17 Mar 2022 23:28:54 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.2308.21; Thu, 17 Mar 2022 23:28:54 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.2308.21 via Frontend Transport; Thu, 17 Mar 2022 23:28:54 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.42) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Thu, 17 Mar 2022 23:28:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZNtwxJgESorwswTHRNIm8tR6vwURYo25Bfl8ILbkErfhX8dd4a71fNefZ7aXm6rQKPNLsLGH+Ot+H6syJc5nMlhfzLzOH/KjnYMkFIFEiGSxDvd2hqKYo+89Gyk0iu4RHImX+G+WpgsQ4NVYlomiWufahGsO4S7bpJUWF5WKsRbgyMZ/g89GeaV0BZqQiJWH3JMtfwVe+6JwEJpWwFWrspqzSXtY/IXPleln3is0dp250XGOYk0DvVgj/9Dqgh6SKUzNiHRkOFLvVRNr+f1P0BiHa/ZFst1O6FbksYdWB8JE59IB01VV8lc7d86eBjxNd7/c0rdO8gtL/T8AIUkl9Q== 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=tsJrXXdvBosvrfpv+D4vJQ5zlxqW6SE/eE4xiQxSdyY=; b=Z18nBNKcZpVOF3Bun6PdksvmQ5mOlAQbDDYSRdp2VAtOt1bzuyJpqoYwXleBc/n1W0FKRMNJQTCdOGpMMwZeTu3FWxytF9/hYTzIa/Bri3V2kthG+SKTT5HH+MpZo37Ebrt2/tVcitsbYO7heKwTv1mhi+tH5scdcI5lkT1p9EjTZ1BVV/Q9n34Mgqiej+kWDJQiQoPY+gKU5Nt9FI3Pr+rBQMziy4+6EK7gZ0e52ldpU/xtSZdJWAd93Rv8W287ObgWqsUUwJ91Fc428V5yinYXRzG7zAqlk09xky72pWIrcKO5gkJIJNlJKTCBFdHlcgI+MmHRgJu6KF+l0DDBxg== 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 DM6PR11MB4236.namprd11.prod.outlook.com (2603:10b6:5:1d9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.15; Fri, 18 Mar 2022 06:28:50 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::c8aa:b5b2:dc34:e893]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::c8aa:b5b2:dc34:e893%8]) with mapi id 15.20.5081.018; Fri, 18 Mar 2022 06:28:50 +0000 From: "Tian, Kevin" To: Jacob Pan , "iommu@lists.linux-foundation.org" , LKML , Joerg Roedel , "Jason Gunthorpe" , Christoph Hellwig , Lu Baolu , Jean-Philippe Brucker CC: "Pan, Jacob jun" , "Raj, Ashok" , "Kumar, Sanjay K" , "Jiang, Dave" , "Luck, Tony" , "Zanussi, Tom" , "Williams, Dan J" , "Liu, Yi L" Subject: RE: [PATCH v2 9/9] dmaengine: idxd: separate user and kernel pasid enabling Thread-Topic: [PATCH v2 9/9] dmaengine: idxd: separate user and kernel pasid enabling Thread-Index: AQHYOCoc0yAwyaed3UeriUV4DgPjS6zEr0tQ Date: Fri, 18 Mar 2022 06:28:50 +0000 Message-ID: References: <20220315050713.2000518-1-jacob.jun.pan@linux.intel.com> <20220315050713.2000518-10-jacob.jun.pan@linux.intel.com> In-Reply-To: <20220315050713.2000518-10-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-office365-filtering-correlation-id: a284abef-61a4-42d3-0f86-08da08a89105 x-ms-traffictypediagnostic: DM6PR11MB4236:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr,ExtFwd x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: acEJJoZee80l774CLyJDyvyg8E1m06UDZkbDUavYYV1uvzW/WJZeEZyNEp2kQsRr8Io0uoNL7lat8RDMIVq4kDqD03G8boxynbHlAYQVgow8FHpiZQF1SWNg+rXGm/boI4L75jTKi3jyl4veJNFIgaxS/a+wL4X1qOjztPZSdsYR42h0IIVFo8gIXqGOvmtD95KvKj5h6l0gSrJerC37lE38CAK1+nAqE8g+DRGGx8WdUIgnoh1S8hCLk7UwZzTizLqdr6WZXe1v8/rFalHwKNstDeBOyRSb+WYV70/vusVpVCGbgyhPB8RCsqgNmvBHYUyqM0puzCrQJxYmi9Za2PvQjYgL3eNmYnH8N8ITqFof/giIs/sYLJjteuGLBgV7VO+NeAqysNbQErek6qmwZqY9RaquRy8Oc8BYqqtPJbMjE57JGZbSWxwwWVyV5mxF5dHFPY3BbO5ewq+hS5adCg10Ao/1tQ/fLi41yEwOsZ2O7XDlNFLbeMm7FdIJSNvSfZuVSkCf2IuzXGizaVWO7E6ZpO4hYJtxdnVUQnQfbM8kgaj1IStEEC483dzp73yFxtjLhEkeZwnPxXDwGIBVu/fuXn8VYF+bp4Mteih6xjTv0CoP2Wi28GzCgp0EWWcPBkYGS7EMeL40JnXk8aoQZtJoq+a6twiusNeF0++VPHKz4TGIH5c6P+ltXxd1+VZSka9CYTXGv1GWmUwMhpxRpg== 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:(13230001)(366004)(76116006)(2906002)(508600001)(4326008)(8676002)(66946007)(64756008)(66446008)(66476007)(66556008)(55016003)(110136005)(33656002)(71200400001)(6506007)(86362001)(7696005)(9686003)(316002)(186003)(26005)(122000001)(82960400001)(38100700002)(38070700005)(54906003)(8936002)(52536014)(5660300002)(4744005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nTAVGEuZ2xLKW7t9whWATU6ijkg/Z6FfZaG5S62ortf0iZUEAU6KVZFHTyUZ?= =?us-ascii?Q?JUu2qaM9ucR1cUc1g1EJDv18TUITP/2OU6mqxSKSFv6TbS7KfCamI027mDrk?= =?us-ascii?Q?N+BRwchzeNB4rKwZ3ncyEJPLTi1dyYIv2qYuKJQkHmNpzaxChlPm7FXXpHwS?= =?us-ascii?Q?F1JJeIUHGgLZR5ip/12m9qltJ1VDDo2Y0o+LMWRQqaNbFvrh602kRWQVXAZL?= =?us-ascii?Q?bP8N7WXSpfNu2LoXYD6zjhuk2lGmVuWV+qHgUBpgDU3JxCqNn+dbx4Zo32Ks?= =?us-ascii?Q?cuRB0RNTudiNCl/JZ9aQ47xPomCduPygGOXYYzDYQ+9/QYnWh6saWCGRoOM6?= =?us-ascii?Q?c0ZYxOEq1z/Ntlq1Q5IsTH0M+EewCocTT3R263Ys4Nl2W36W45EBM2GR/8sw?= =?us-ascii?Q?+gmqr1PySLyV6RBL0DY5E8dlzkxv8LEt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RZVY5RYe/QFJU4D4fAmzlyapLYz5WzEPpN0lAr24Z459KiTsBhcOOCCpM?= =?us-ascii?Q?xVHN4VbFWMbimlPJpErOIkDCd7gkcANlr4HJ2VAXKk5iTXsTG6z+/mdiQGiv?= =?us-ascii?Q?E3Iamte8gGTj5vYh7j2n0b0stDrI+SFA?= 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: a284abef-61a4-42d3-0f86-08da08a89105 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Mar 2022 06:28:50.5027 (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: MyLXcb1fKMNz2RIsmkv4V+/eaZYq/oHCMJTWQCf3Ep2Spa1pH1yc8Ckd9fZbAp37xdq0y9l4MfFMRQH2jkRREQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4236 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: Jacob Pan > Sent: Tuesday, March 15, 2022 1:07 PM The coverletter is [0/8] but here you actually have the 9th patch... >=20 > From: Dave Jiang >=20 > The idxd driver always gated the pasid enabling under a single knob and > this assumption is incorrect. The pasid used for kernel operation can be > independently toggled and has no dependency on the user pasid (and vice > versa). Split the two so they are independent "enabled" flags. While you said kernel vs. user sva can be independently toggled you still only have a single option 'sva' to gate both in the end.=20 Thanks Kevin