Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp2298314qtg; Mon, 3 Apr 2023 14:53:20 -0700 (PDT) X-Google-Smtp-Source: AKy350ZFBCdnKxvQp5fEuGihbIVIA0L25NemTGO5k2Pg0nVbfNTHYZSQZlpJZG4q+fmftCpI7eKt X-Received: by 2002:a17:903:2302:b0:19b:dae0:c97d with SMTP id d2-20020a170903230200b0019bdae0c97dmr690769plh.32.1680558799925; Mon, 03 Apr 2023 14:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680558799; cv=none; d=google.com; s=arc-20160816; b=f78ne1md/KvNM1McQ5EM9SaWSFdlwIeK7qwS6MSbUSySK/yqQ3mxY1hw6t1rMtWNU6 SHs7ZlMX52oAdRFKQ5P5D9l+OPyEFNIpHkrp6MFVrkwT4KnUF6y7X2j7XzvdBUT+u3CC UWz7yAl+RQInA2oXQNF6iMgi1XTyNLNZMTYlD1oMghEDjhqpqt1iTIoii6vlx/BO9TKO oM27HOzeOb+InaH4mBWMGPRpyx8uj7ZdFtvvzeOE4Vqw+MMwA67CgL5BBLIXAuhJhbhQ qbLvk5ManB38Fs5xpCx+Cx3Pd/o+D0+Q5UGbu3FaAYtDJslv/bdVbSxo+SUVcoxuqhpD AImg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Y2ikUR/sdy/10KnrRtWVsLXJcxKgePhw2AJ8axtoMMM=; b=SIXX5KAPv2yHV7a01/CliUhlISBfilohG3nZ3oth08o8EyW2ITAXSZaq9n7CNupZfz Vwm+DaA0tVrzCVeIGqkiztF8Jugm71/M4TPzWE+a3p+hXSUnyDPvo82qZaLqL6in8B86 1l0Um3rX4Z1ROPCuHu1O12UitH+N4+NEOkXP7fpuzXifc1TkTfvz0KpeYjYMvptb/plb LaVmFODXVZ1oT77+cqENf9qmxRdcoVMOUPSwrkGRCQl1ua1HsArI/txsk4mY5pHIrykG LWSYzUXhWfUIt7duCFJl3Yr5GKFl+GY6eoWpf4uEevSFeQXBCqkQdJfrN4Vc8oKQxZI8 YKlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PUqcUPif; 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 i184-20020a6387c1000000b00513b65be3a4si8683934pge.211.2023.04.03.14.53.08; Mon, 03 Apr 2023 14:53:19 -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=PUqcUPif; 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 S233484AbjDCVws (ORCPT + 99 others); Mon, 3 Apr 2023 17:52:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233317AbjDCVwr (ORCPT ); Mon, 3 Apr 2023 17:52:47 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F4E390; Mon, 3 Apr 2023 14:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680558766; x=1712094766; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1Q6bBL05Vw7AlHWmpx/OKhrtmQt1bapS87ipU3nNQfo=; b=PUqcUPifv9u2B4XKYKcrkUocQ7Y1EDdtI/GXpkInh8O3LCT1A1yPfIHx 2QnBq/Imy2GASM0sLCXepfjD61aMKFkxgGCp6GY9OibnOJDlyalTiKCkc 8tEtxl3uR1W2InW8Dz9tQWk6sVHpndTy2iVb8A+sjNjhaTncQoidWRgJH gzs29IPZXSk6aY11ez7mX6qEA4+uo6CBshspDK71BIkeeTJkky1QPfRKg FkrHPWcRtS/DPZDZHH767iLzKjaabsLz6xINx2tJG2Gv6Wxlrnm6Gq9NI 9HgWG4WMeSslpmm47Fii4Nqjol3W93X81FJYyULW6cCj+jv31T+1CJCDo A==; X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="343718530" X-IronPort-AV: E=Sophos;i="5.98,315,1673942400"; d="scan'208";a="343718530" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 14:52:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10669"; a="932202378" X-IronPort-AV: E=Sophos;i="5.98,315,1673942400"; d="scan'208";a="932202378" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.24.100.114]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 14:52:43 -0700 Date: Mon, 3 Apr 2023 14:56:49 -0700 From: Jacob Pan To: "Yu, Fenghua" Cc: LKML , "iommu@lists.linux.dev" , Robin Murphy , Jason Gunthorpe , Lu Baolu , Joerg Roedel , "dmaengine@vger.kernel.org" , "vkoul@kernel.org" , Will Deacon , David Woodhouse , "Raj, Ashok" , "Tian, Kevin" , "Liu, Yi L" , "Jiang, Dave" , "Luck, Tony" , "Zanussi, Tom" , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v3 7/7] dmaengine/idxd: Re-enable kernel workqueue under DMA API Message-ID: <20230403145649.2d3db18a@jacob-builder> In-Reply-To: References: <20230331231137.1947675-1-jacob.jun.pan@linux.intel.com> <20230331231137.1947675-8-jacob.jun.pan@linux.intel.com> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 Fenghua, On Fri, 31 Mar 2023 23:31:13 +0000, "Yu, Fenghua" wrote: > Hi, Jacob, > > > Kernel workqueues were disabled due to flawed use of kernel VA and SVA > > API. Now That we have the support for attaching PASID to the device's > > default > > s/That/that/ will fix, for real this time :) you pointed it out before. > > 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. > > > > 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. > > > > 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 Thanks, Jacob