Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5302770rwd; Tue, 23 May 2023 22:56:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ43pnmSA5OqzcFH5fHHNZd1ry6srM9kHR2Yui+oLCxbD1RAtCjhDte5VYKZkrpSej5u45tW X-Received: by 2002:a05:6a00:158e:b0:64d:3e99:83a5 with SMTP id u14-20020a056a00158e00b0064d3e9983a5mr2290983pfk.26.1684907788209; Tue, 23 May 2023 22:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684907788; cv=none; d=google.com; s=arc-20160816; b=hIuMehVELGOuwfUf3/g1MmJR6s0nyMMnPTXmMDa9D4b3EDrgFTIruF8tPv6gNeQHFL ogFZUQ1YWHarSjI1uEBI7JNN8DWP1U+ogGIAxkiZHmPaU3IvGDF9l3p5lkMtDtESnIey 2rN6veMierN4tIM+6zklKjH0YLxkplMYzREgxaemCE5x8xL1sYSsLo+ePZVnR8CRK6Co 7PoA3OrRsoBXC53cL7iWALJJxWirF2C75RhMre6D/rgfWDy1G0noP+qZbaXaf/sO5jSm XebdBXK/nQs+qEKieW7fY2UFumbRi77qOxYsl1ohBfKKK6m5woBPkDwwt475lEcYEskp 5MiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JrqKi/5EnDrz1eUoIvRYUvKlP03M0yoUfyR9vkQwrUY=; b=Rtmapbbk5C1zbTqy9hLGB8fPLEe2pa3zCMCfCum5bHIhAFOwdIbAbl/TeUZE/0vG1G dcyLbZagTBT2wz99DU16TTFWPfGy4f8bBA41c0z2Zy5FKOLkix88ZtUra/8C1SiV8bre 7fA7wFIdqEJ+qDc+vaqGyJmz+lGkNH1pqbVgxZAY15+iG5vS8NqcraO2ginWHmXd5PMY WXEfMUjXrwvPjH/2D5z7AYVryEM7y2nb9MjcRG6zzHzaCEY48+hoooiE3HbZ26WW/lYc zy6QNVBC4O9R/WLLpLCvooajOrwVBge+mePgTAclBAdtdPDeKoogBVjhssL9MMjnob8a IvTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eHUMXZt2; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020aa79acb000000b0063b7c4435bcsi201294pfp.50.2023.05.23.22.56.15; Tue, 23 May 2023 22:56:28 -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=@kernel.org header.s=k20201202 header.b=eHUMXZt2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239480AbjEXFoi (ORCPT + 99 others); Wed, 24 May 2023 01:44:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239474AbjEXFog (ORCPT ); Wed, 24 May 2023 01:44:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2B6E13E; Tue, 23 May 2023 22:44:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3C5A360EB2; Wed, 24 May 2023 05:44:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD4DBC433EF; Wed, 24 May 2023 05:44:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684907074; bh=BAIEHKqWdw+wiFDljo7B9HdVaW+uTTTgwVeC0xa0/ao=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eHUMXZt2BKIzx0FxwovB47fimiy4gupnFQON8FyBp2umdWGOZJafZc2PciYaqPyL/ 18/1fL5ttqnT/pVs2mnirkPLZaR7vEGCYJAfxGasl9Oaqk36/cmhC6+qVHnvFsNwix jHW3+XsOPA7BXqjtSHcd1cV+s55xQqL9m9yiEewEHh9Xp6Dj5D1U70pTbUColbo40T EkZt2OFrJ7BcbbG5hAeHme6kRcSsJM1k25BMINl4kR1fDwumiAXY89WwtFOWypCFai bpfdDbfFFCxixf7IMvy2mZiteUnRCZD9VY1Rtp1JT4Gl9YLPxGApALXwKf/kRJZHA7 NddS8fUQz49hQ== Date: Wed, 24 May 2023 11:14:29 +0530 From: Vinod Koul To: Jacob Pan Cc: LKML , iommu@lists.linux.dev, Jason Gunthorpe , Lu Baolu , Joerg Roedel , Robin Murphy , Jean-Philippe Brucker , dmaengine@vger.kernel.org, Will Deacon , David Woodhouse , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , Dave Jiang , Tony Luck , "Zanussi, Tom" , narayan.ranganathan@intel.com Subject: Re: [PATCH v7 4/4] dmaengine/idxd: Re-enable kernel workqueue under DMA API Message-ID: References: <20230523173451.2932113-1-jacob.jun.pan@linux.intel.com> <20230523173451.2932113-5-jacob.jun.pan@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523173451.2932113-5-jacob.jun.pan@linux.intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 On 23-05-23, 10:34, Jacob Pan wrote: > 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 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. Acked-by: Vinod Koul -- ~Vinod