Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1760089rwl; Fri, 31 Mar 2023 16:45:33 -0700 (PDT) X-Google-Smtp-Source: AKy350ZxwtsZjaxC09HQNYnQtBJf4GRpXdvDH787Uj6rxSrbjEnkfWaDmtITSmeNPDyUdHTOcaLW X-Received: by 2002:aa7:924e:0:b0:5e2:3086:f977 with SMTP id 14-20020aa7924e000000b005e23086f977mr7799782pfp.2.1680306333311; Fri, 31 Mar 2023 16:45:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680306333; cv=pass; d=google.com; s=arc-20160816; b=ly9W74JZPiQLmagj4CGy/OVaPaTvj1eF6jDY2JI0p5sUOOHw07nmAD1JjL5LtzSwzz duG9Oyt8jnSlLHyqfFUke2W+zctQFwkLhsGC7VEPqQGJFNX5tmIVTL3jBjRpdR3EuGs+ nyZvmhL9TUZ59PFYxeJ7jooJGbWFGdKjnzfyEtY5hryJ/OsYJ+YHxJKSQ965tqwYsMg9 +X6lR0YORZwLyBhN+mdfTeaSlOOU/0vuK8Pts5Q7sEjJh24R/OUHYYOhq22ajVpyC6bn vac0XHaIHJXxUu0zoSqckHOqeYfcrnHBw5uW+SuzHZp3gLZAxwt2sNgpSeBHdDjF61dw 2BbA== 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=eqPP138TaK57c1S9Lo+rZ6AhgwF9ukTPzloRCJ8xmkk=; b=qpwoPndFJph7cC+AkMMPQARB8IlzTkgSst/QDVmGeOzR6/WR+tKkMP206/tpZo/JW3 6CWjZlsCgFEJg8JMhGgxvrRM0VU15L6NCjfJ2QjjCHu+wsi2Gt/UNzVMkV5MhKrY2t+F x4A50vKV0J1RLYEMb15vmo/JrJGDed0tcPE9zf2pKYr77jRHFQMrrI4E52kLl5gRhyG7 mNlxU/sWfb3cfHMVzQyrG2oSM1fxwqQ68ksn5HQtoBaLlzPafvahOd5sOij66UIiELih 2c9UIiTFc2SRV4TrizPeJ9KFunMQq/kWQ53qIMXixMug3qtMUI3snFcDECIgJkxeGPSe DbZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cowDegOE; 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 w123-20020a626281000000b005a8d684c05dsi3013381pfb.271.2023.03.31.16.45.20; Fri, 31 Mar 2023 16:45:33 -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=cowDegOE; 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 S233153AbjCaXbS (ORCPT + 99 others); Fri, 31 Mar 2023 19:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbjCaXbQ (ORCPT ); Fri, 31 Mar 2023 19:31:16 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54F2D12CF0; Fri, 31 Mar 2023 16:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680305476; x=1711841476; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=eqPP138TaK57c1S9Lo+rZ6AhgwF9ukTPzloRCJ8xmkk=; b=cowDegOEOPSfatW5XQ1DDiZFbtgTCM60d0m2csbLvlL+c3Rfu/mxL4W8 zOaYrLyyGILRUulzac5OiVjvh9i6l/edC2Mb7atrYIIaG8IlRjYZnBBqK bWWYjoPOzTkgS71A3IqBupNGP3DV5WUl+2VyBp2laPmBDwyzvEb/t2Mdi eWYUk/4R9hZRKKkZXahV8jAOKdi53KOQPHvXa3T3v1cHv4MQaptMgxxCU h2IRJdrJbM4LOKlEScTDgggvCBaRGCnkLFjRyN+1xX4BKeWaNfv0UMhb1 hhSIn6YerD6V6Z69SSbCeo7yWODQbIxwNc2tg8/vc9dPucAZPP3hdDr1Y g==; X-IronPort-AV: E=McAfee;i="6600,9927,10666"; a="427855868" X-IronPort-AV: E=Sophos;i="5.98,307,1673942400"; d="scan'208";a="427855868" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2023 16:31:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10666"; a="931351334" X-IronPort-AV: E=Sophos;i="5.98,307,1673942400"; d="scan'208";a="931351334" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga006.fm.intel.com with ESMTP; 31 Mar 2023 16:31:15 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) 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, 31 Mar 2023 16:31:15 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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; Fri, 31 Mar 2023 16:31:15 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.177) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Fri, 31 Mar 2023 16:31:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=abTxpz0eyg5yD/4yPhUjhJLdileD7YwPZbBU7ptiFGan/s72lBp0angLpWOgKYEbOY2V3XF15ypHLmdB1XkW61heJgmpNcP2cDwGR+cUhZUNfGGjg9vPNcCXUTy05nAnegg5YcRcFhHuI+LlcCg49GmsOZz3/HsCznIWChxi3Mz+8OnlmyxlQMpOH4PoM/Xrg5q3d8whSD5hku+g10vBLHjtajEa0axrk7H5c5sbimfQFa9B9RbgYVH0h4hG/nGVJI2UfdwlNt6XV6Ph5L6As8MeTkpeoOJLDNDareof9hmJa+8Y7vzuoqLpuQgnybbSTlt6/06Klds2l/nRsI9e9A== 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=eqPP138TaK57c1S9Lo+rZ6AhgwF9ukTPzloRCJ8xmkk=; b=A3URgPE7HjooY+rWMwjIocH82XVZsbSvH2GZ0PQbI45tOwn/u8oJ9CuWb7Xd+ZIBwp9XipQSKGbxmVWHrKOIh973Z+Id+OD8ZiubeYf+B1zOub+NyXziGfrw9kFm3Th0DHPsddUhTWky/xRFfxJCe6ltlCeXDu/RqD2TEzkwUkDboOA1JppcBzWTt+FEu2L0axZzP1cJ47IibmZa0WO9WuDrVHgj3O/kuyoBapfMNJsSTvhgJrCVZvmkz8anSzdsSwxx/bBIq9mF7aVV9fkAg/oxdF+FR0ZVlTpEqwPeWP3qiRzk0CG9uKvkA0wzu551QZYtObYC732+tYxSvjBZAw== 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 IA1PR11MB6097.namprd11.prod.outlook.com (2603:10b6:208:3d7::17) by IA1PR11MB8199.namprd11.prod.outlook.com (2603:10b6:208:455::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.33; Fri, 31 Mar 2023 23:31:13 +0000 Received: from IA1PR11MB6097.namprd11.prod.outlook.com ([fe80::4381:c78f:bb87:3a37]) by IA1PR11MB6097.namprd11.prod.outlook.com ([fe80::4381:c78f:bb87:3a37%3]) with mapi id 15.20.6254.024; Fri, 31 Mar 2023 23:31:13 +0000 From: "Yu, Fenghua" To: Jacob Pan , LKML , "iommu@lists.linux.dev" , Robin Murphy , Jason Gunthorpe , Lu Baolu , Joerg Roedel , "dmaengine@vger.kernel.org" , "vkoul@kernel.org" CC: Will Deacon , David Woodhouse , "Raj, Ashok" , "Tian, Kevin" , "Liu, Yi L" , "Jiang, Dave" , "Luck, Tony" , "Zanussi, Tom" Subject: RE: [PATCH v3 7/7] dmaengine/idxd: Re-enable kernel workqueue under DMA API Thread-Topic: [PATCH v3 7/7] dmaengine/idxd: Re-enable kernel workqueue under DMA API Thread-Index: AQHZZCWaCgY3Jdq93USwu66veGT73K8ViPzg Date: Fri, 31 Mar 2023 23:31:13 +0000 Message-ID: References: <20230331231137.1947675-1-jacob.jun.pan@linux.intel.com> <20230331231137.1947675-8-jacob.jun.pan@linux.intel.com> In-Reply-To: <20230331231137.1947675-8-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: IA1PR11MB6097:EE_|IA1PR11MB8199:EE_ x-ms-office365-filtering-correlation-id: 821ce288-63db-4368-5ef6-08db32400427 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yuQMqe1te91UNKHEyem6WlPuWbCVfAA2xV03boAWkmKZw2emIPK1YE33HORo/q4NJ5WfCSZNdotX45smMxJqn9uBTu63cHtvbZqbHA9SehbAa6DVnv3JOC61WwYbDyNtPKS+6F25fal2uhI5xoFSKlUBrLw6b+BV+p+7pfU3Kf32drKKyRceeg0QEAtYfyOm0flwrsr9jTCYCaB0f0Z0+6S/w8ZAI//185WagjahG2w23gJUY9EM5yZ+cVpI/AKaesa8IyJm5Ep0AfmwdhJ9eKE1qSt+S9OqOWDPpHvYdEXLunm5FV2RBLVz/lb4ByIrMeit//+wm3l/6EDMXT/xBHCeBksW7TFQvGnjLI2B/lftHe7WsWCneqUD49yPQ5Y5Iagzcbot1NptC8X/2l3LyNTc0xz0H5scvsZc3ZFN0vVVKSx8ZAhFtwkmqo9MtxDqBX54Tqv0QlQ61Zj66pbldHTKWPC3yIIiUBifHkFqtFkO0Rjr6tl0HQqoMpA/PgtbZrP9Rfgeyzegc1pVOU6lCzBxFwSyrJrPRg1gIehJ00u+uRlZlKELlX1CvdqP4Kyfv782Aeg1/5kM4FlSbLh3TVI3kC+GCTDIq5On4SfLfn4= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:IA1PR11MB6097.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(366004)(396003)(376002)(346002)(136003)(451199021)(7696005)(54906003)(122000001)(66946007)(110136005)(71200400001)(478600001)(316002)(41300700001)(52536014)(66476007)(38100700002)(4326008)(5660300002)(82960400001)(4744005)(7416002)(8936002)(83380400001)(2906002)(38070700005)(66446008)(86362001)(66556008)(8676002)(33656002)(64756008)(9686003)(76116006)(26005)(6506007)(186003)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?lq0RjKYu4Fc5QPLEPaCP/hms2EDyNBbuSrusCg4NWs3oykVQ8Rhh/Nmx8KDh?= =?us-ascii?Q?6wkLvYrUbd20zQJaJ96yzOZIIVKC2H1t8pMGg3BTV4wb/CzVdLvcalR/rCr6?= =?us-ascii?Q?ggKhxryvf5OpLnhjA785E4N6/UmGcskzg7bCh14oEziRcUiDtmmi9+1cJ0/7?= =?us-ascii?Q?uT+mABVY6oMBmgnSVTBHP2rI8B9ZDmC8zsp81MAfOiAWHHLBKBijFIbQPL5g?= =?us-ascii?Q?t6qLznvED3mTV7h0X7TA7rhbTnRQkmpaxhFGbnJHVSIsQnF0T54QTYp7QFxg?= =?us-ascii?Q?aRmee0r2WykOxsk0DcomDo9D8eFD4UJ/m0sJhWI/YSmB8BH6SoA2o4xNniR5?= =?us-ascii?Q?c26x4zs/LDgzmxI1Et35+LMbNHvRRg3eheIyuz/mVpVcp1IDcW/UU/PDOwsB?= =?us-ascii?Q?HRGvsvIcB+3FQteEhJHwjhzrpZMh0ar8TuxL13yjBk7zYYHJohc4kMKOoXHi?= =?us-ascii?Q?YtPf8yUTwRnLVZfKWIG8pq9DBzrOFg7I6Gf8GNXcjjoVjZuaf47ubhBDZEd+?= =?us-ascii?Q?WT8UcfjK1RRsNWIB7cTH9P86+ftwa6yobfmQ7uwxUkDNZMMo6BPfQF0XyLZW?= =?us-ascii?Q?2XAS6LSDkzDjaGCQ6htw897FhJjXxncCBt/th7KEQCEmiAPB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aIIBjiQha/3uzMbtTNgslEJYlAzse?= =?us-ascii?Q?eqhaSltDvTAlIrWZBpT7tXKfBjpRMfoNTKvdsbl9?= 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: IA1PR11MB6097.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 821ce288-63db-4368-5ef6-08db32400427 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2023 23:31:13.1433 (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: 0l7SGDPsfILozzLJrsFjwbJDVZt7GvbWyhANoxZI8KaCZpRCFokltiWUghlzufNFb8uWDt8hhVRzRjaE1X/KYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB8199 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 Hi, Jacob, > Kernel workqueues were disabled due to flawed use of kernel VA and SVA AP= I. > Now That we have the support for attaching PASID to the device's default s/That/that/ > domain and the ability to reserve global PASIDs from SVA APIs, we can re-= enable > the kernel work queues and use them under DMA API. >=20 > We also use non-privileged access for in-kernel DMA to be consistent with= the > IOMMU settings. Consequently, interrupt for user privilege is enabled for= work > completion IRQs. >=20 > Link:https://lore.kernel.org/linux- > iommu/20210511194726.GP1002214@nvidia.com/ > Reviewed-by: Dave Jiang > Signed-off-by: Jacob Pan Other than the typo, Reviewed-by: Fenghua Yu Thanks. -Fenghua