Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1092239rwo; Wed, 2 Aug 2023 08:35:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlELUQZmX52TAnFUBTYRiuYd6Aqz3fmrum7SwOEnGj7Fb5RYdu7nFjNcfCOx8ZZe4oVD4nsE X-Received: by 2002:a05:6512:3d0c:b0:4fb:73ce:8e7d with SMTP id d12-20020a0565123d0c00b004fb73ce8e7dmr7061331lfv.15.1690990550192; Wed, 02 Aug 2023 08:35:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690990550; cv=pass; d=google.com; s=arc-20160816; b=k6mykLCZhE4SR8vCwRFkUz2CjLSidDtZnag/V6Q2vOg9yzYCwGe3gh2LxbiSQx5XPh RSeFfLlDZea/iEtsmM+SRZLKmKeHiYuT/Qp6qhP6AN+S7qiovT1Ws/3CP565uj4WiTwg /MNnrSllL92Ec+kPpa0RhYL9n8hUd+P2C9gNZvKGXe85AyB9sLf1U6R3F/hdhRUeFkFT bf3/yx5HaYokJDcdzWnZ2Zh5/buXMIsQj4hYulrZCEW0Zu/gKDJPkQCSfC1xL1zT0VG5 YLGU+gB+10YvU1Eia6HFNccIFXdAlIEeC/eHWajEFBeM2M6EmXY0dnHNfiygtvIFSms3 YPQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=C43Q6LwHoP8qd47g2u1mY48J+7Vt0aXRt186oem9ixM=; fh=qneQT9GbYGW3BIllyL97DS/8zlKzcoJhoOryHjMN37s=; b=wCPpAxe425xCdGiqkGDrVmuQwGc5S1E87m8EtIOZ3IMvqsvPBaaCKaafrThvZaU0Vl /tzAq2X7M5YZUrCgZWT3w+VXCdOM2evUPDzvJ/abXW6uzDzmzGhUS2wT/Ax/xCP+XYze OryZZtV5Peuyi9vZOzU3lWq5T1ke3SdV0I96W34z8G8naGlfxC/+CY3nGpd2IDALUetC BiCYJseyd9urN51ygU2+U2lWp2jOShMHl48HbLLao9wqKTndOC9g5jZBqIb3ge7VKnVm ZA87W9l1Vk+m9OWX/FYr+m3gYzwtfPlTLp+8BY7dMyjGAPTXiY9w6FTRHo6+/b3EP1o5 F4uA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=esCbSthR; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020aa7ccd3000000b0052227300386si6873844edt.290.2023.08.02.08.35.25; Wed, 02 Aug 2023 08:35:50 -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=@Nvidia.com header.s=selector2 header.b=esCbSthR; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234562AbjHBOwY (ORCPT + 99 others); Wed, 2 Aug 2023 10:52:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233900AbjHBOwW (ORCPT ); Wed, 2 Aug 2023 10:52:22 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2051.outbound.protection.outlook.com [40.107.93.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72271E43 for ; Wed, 2 Aug 2023 07:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ml4ic6jKTA/DlVl/150XU980ABMZSgurQczVOhv9E0X9022A/mCAxkv/nodaU4q85cYzOd+cZZWsQUIpZ0N80OFV0XU1XSy+db4JqbD5N8Bh4nDFfJh3hAxG3BT2NzholwJh+EXD0mmtYZ2i7Ktfwd5gG0CX9YFnsNwvrZWG+tz8VT7XiPVaU1ksXyfIoyNjDYEpT/gBGc35ChRMoTYinXHUyZJBPsm1eajksBmjZpkIyDUDaGqeqE6AafnUy6rPBlM4nqRuTAKGHtga5Wa1ittnHzwlyVsnWrsE8eDPSX5hVr807iFVG4wNwETJKyJoWrY1lx7b9NMLkUds8a1OTg== 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=C43Q6LwHoP8qd47g2u1mY48J+7Vt0aXRt186oem9ixM=; b=E0aQCaVP1HpUP8AjRdjs4h2qjqfFuXdhQM6/T45YgoINlijjXpftgI28s7bpbGcgdK9wOuuEEP9gkIWj9wD/qzufg2bsdCS28qNUwAnI73/nm/Gp8WpRmD7gI2G/hKqWpq8hxAtvQlAsAlo8+qNOfwZ8b7ec9e2Flq/fjcyMcvb7MWKXBkRJfLq3L5gQit38GGiydOAPa2qxryIo9stcO1nG8v9UJl/MsP2+yWOflJFrPQOi6Ggf90dl6B+Q3jSreQ8HNATKBFXzZZJWvMl15BhAZx5UEjd2jwmtj91sREBVyDglhT68YfnO9JnztM+qeaNZQp3tKTE5Ys/Ab6UTtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C43Q6LwHoP8qd47g2u1mY48J+7Vt0aXRt186oem9ixM=; b=esCbSthRlFUuTE3PFuxiiMZN/9zSqXRzpMe3eTdKJvVwjDWpjX2qIjm5QXfDyovu0JtpOfDD9dPpSgOFYz2e/XWtSVmz4fsL+J9oA3ul7f7nnxkj5pFfFTEMBx04Ed8lwxgnbNRV70vXQo8uVJKz4pVlaPJ81an/jTDfzSrTHOREvqHFC9VY28rGqkiREjIa96mTDhf9GsrSYHHndRlR7XeqXl+igKN8G3qyDsY59a3wBLtGp2TQrCsLBWzEICGkKaLQOiay1Jzvim3HoEBkf7aICatGNEV19JY6kwg8dGRV642RkRb95uZEPk67KhMf4S2KZGMeZ/X/sZD3nMencA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) by DM4PR12MB5938.namprd12.prod.outlook.com (2603:10b6:8:69::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.45; Wed, 2 Aug 2023 14:52:16 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::5111:16e8:5afe:1da1]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::5111:16e8:5afe:1da1%6]) with mapi id 15.20.6631.045; Wed, 2 Aug 2023 14:52:16 +0000 Date: Wed, 2 Aug 2023 11:52:14 -0300 From: Jason Gunthorpe To: Jacob Pan Cc: LKML , iommu@lists.linux.dev, Lu Baolu , Joerg Roedel , Jean-Philippe Brucker , Robin Murphy , Will Deacon , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , Tony Luck Subject: Re: [PATCH v11 0/8] Re-enable IDXD kernel workqueue under DMA API Message-ID: References: <20230724222538.3902553-1-jacob.jun.pan@linux.intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230724222538.3902553-1-jacob.jun.pan@linux.intel.com> X-ClientProxiedBy: SJ0PR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:33b::32) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|DM4PR12MB5938:EE_ X-MS-Office365-Filtering-Correlation-Id: 65458f4c-92dd-4ad6-3104-08db93681040 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QXuigfnFCgq6RwK3hWrZpquoGhNUmOYv7Rh6V8G4XAo3yJ0juvnr3B1XetF32lGOAsHeRv33nOgGZppQkn+U151+RHlSmmGZlzAffZFaaWF5T7D5T9EpfM00QjorM+kUdSBwb5KBBBXdkBYHwD3jlcy499M3AgWnp3oGy6TrNllNHZVzxkJeUljWaggWxX8TuXKpaPd7ui2co+zVkE4gjcxiGrP9hqLIuS35iMoh325dcS3X9FvbqyEHJH2XICsDfkBYuUrgo4c515JgaCgk/yj+fLf+kPbFzWE5LIwzBckvVVBNvDx5Lw7y4GvU/AlFtkFX9l8bIzDaqO+vjOh55j/iN85x6Pm8DnqJFYjsNOGVfzcdi/csgvvOCr2CFu66P1PT+2TXwGqaRDBfpTo853wjSB0E4GYWxEos5Bs7Ia8lQReHNBWaCfxvKXhhB2enx5Tr6qya9LgK7DmSne4Df3gyIvgge7DHFrGoUcqtJ0sbKMJAvGcgOQfj3XQsKQLDQC9UtQIUlUv47CjuqGBd+C8+WYnCRncqF2zgH8AV4raNwQILQl4y0PnCltBPnxNjw4yOJK2vwYGlsQVrISrJZmFnjcC8bD0JGeaofOiH6oUPfK0RwsY28HrbHVPGCcbYDNvAOZnPVdX2/Hi80Y6Icg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(366004)(136003)(396003)(39860400002)(451199021)(4744005)(478600001)(86362001)(6512007)(966005)(36756003)(6486002)(316002)(8676002)(8936002)(41300700001)(5660300002)(6916009)(4326008)(66556008)(66476007)(83380400001)(7416002)(54906003)(2906002)(38100700002)(66946007)(26005)(2616005)(186003)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?p9+CPYrqyFn2lnUd47/L2j2BDwZAxe3vRhdwIN+GTyG2bxq7BfBCRWibdxgP?= =?us-ascii?Q?OuWeqJ2+iwxH61Bz4Mxai+k1vbEfmTfgxhagJ3rM0BP+XZaN9KFcY/41MhSn?= =?us-ascii?Q?XxHvu0iR6rYhdvYV6yuHdq5AcsF+tugDNJblYSmo9pcip0lfuqQQGiDitRBc?= =?us-ascii?Q?7aOUnyTYA/iRtX89p924Hzqxhfyqq3trlK5jM4gPNir7+MvYmsm/a7n0dagB?= =?us-ascii?Q?Xab6YMSOhDjGrXD72wdLKuts0bEpuO5+rVWbxOWnaLga6JlcL8JhaWwoVmnF?= =?us-ascii?Q?nYVRHH9lVGFaopEjcYCkgIc7skL46Dq7bTY61rEsQ5dbd8QWi8CaAzEq7M1k?= =?us-ascii?Q?2qNuTEHP+z3Ubz1Si4g6pC/ej9uKICzieOtc/0Pm874qpBjgfkwcvsapf/xG?= =?us-ascii?Q?0py7kHPEMXNbDbWi9929P+cr25tW4DTSsCSEH2XXDNs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BxIBgckqjdXyub5aoCnyI+r19oG/UIIkdpwzLMuDZwaWRFrN+In2tOQZG/?= =?us-ascii?Q?b+Cf269niESdV1jwymNML5D/gK3lH0Am32V5a+0qibRcMwq5t7i3BP+cY23N?= =?us-ascii?Q?Pf54q4x22boIVoDg1za+0hlJ2RrN52UReKBG5lq4eCK7VRj+meCDldx2eQmq?= =?us-ascii?Q?5YNoB0g1ulZjfPevkYuxcANM03CfQG0Tl8tsWsNyIf0/opN9wyLm141C3AFj?= =?us-ascii?Q?VGEvRsskFC2wAC6jD7EXMnWZQPGt3Bk1oC9dqjJZ?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65458f4c-92dd-4ad6-3104-08db93681040 X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2023 14:52:16.3091 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kAR/PKSfv4KUircv77GrdDELsvH+eUWzCe39MBcopQLTKJL/IEfmeJXr5cB+gaOy X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5938 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 On Mon, Jul 24, 2023 at 03:25:30PM -0700, Jacob Pan wrote: > Hi Joerg and all, > > IDXD kernel work queues were disabled due to the flawed use of kernel VA > and SVA API. > Link: https://lore.kernel.org/linux-iommu/20210511194726.GP1002214@nvidia.com/ > > The solution is to enable it under DMA API where IDXD shared workqueue users > can use ENQCMDS to submit work on buffers mapped by DMA API. > > This patchset adds support for attaching PASID to the device's default > domain and the ability to allocate global PASIDs from IOMMU APIs. IDXD driver > can then re-enable the kernel work queues and use them under DMA API. > > This depends on the IOASID removal series. (merged) > https://lore.kernel.org/all/ZCaUBJvUMsJyD7EW@8bytes.org/ If the vt-d driver bits are fine I think this series is OK Thanks, Jason