Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1521566rwd; Sat, 20 May 2023 23:52:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7SA5p1NBAjSZyTqGiTQ+CqFOSUtofM7rZ6Nrrfpgw05MVswOTp7af1f7tHwvB/n6h3kxGj X-Received: by 2002:a05:6a21:32a9:b0:104:ffd0:232a with SMTP id yt41-20020a056a2132a900b00104ffd0232amr8941368pzb.8.1684651965989; Sat, 20 May 2023 23:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684651965; cv=none; d=google.com; s=arc-20160816; b=KjhpC7JfGAFmEhcWspJeb1GEoY2vinxKpXslbUHBz5pk6CBFm4K+cX6t484SSat8sK QrPE9/7O2Tyrigk+pg/gVBFtY69CvDp2pxhuRdFjw8GEk1/BhHpRRpw8guaQIE0Oz14W GxJ5bRU9rUOiXOSgZjktZLGwUAQde1Yj00ZsCaxYUyVutY9BuTDRkYPIo5N5dqoOPrys rPHP/XAjff95uwn3RY9+dkVxcYD5LVwY/k9d2aRTk9AtEgeMrOSRmTn9KbkovPkw+5s1 M0fOHYqPaMk/1/leJpHs7+t3Ywt6qaGPxYFNLHgi4L5mAGQgtbBq/tKBnBmy6ZSyTU7n icBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=zsn4rwMNZMsJ6N9I/XU+8vkfaA1TcLmlYO1gX1HXjpY=; b=fmTh/VCBaetT/lIAQ05HHMSJvPbcMZyD8ZjUZn0/js4SeZ+qeAOH51jMboNPTKSs9c GzsPAAZnn7FArUluVFoTdz7zOv9TT15OA960/YZ4Q5KRhTwnBZ+D1r7r1GUMQ87K4oFJ KPv4MCUKVYpVR8YHbDrtcJkIEJ7D+wBfJKrGTmdLONHBi3X96POh3enq2pPVZzCQSdfd 10S1Cq3hljBBzN3wT3rtWm5AU5+s31Ig3fjZSscP9ful26X4zQe2f70jwRee3aaPWjOf OmWBlJakzepJNZiT5xkacF7E0c4mgG5kBpNmQxiHvGLIfpp9aPRMEhVGANuWcgfBzYJh jcPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TGy1hh7l; 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 n28-20020a63721c000000b0053b8c480279si437214pgc.52.2023.05.20.23.52.30; Sat, 20 May 2023 23:52:45 -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=TGy1hh7l; 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 S229519AbjEUG3y (ORCPT + 99 others); Sun, 21 May 2023 02:29:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjEUG3w (ORCPT ); Sun, 21 May 2023 02:29:52 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 858EB124; Sat, 20 May 2023 23:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684650591; x=1716186591; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=/Q8Gd2GY1jd4ghoLFlo6kfcmDpadDjTFnWDXPbpPLBI=; b=TGy1hh7l3OsXa5UlQRnWfmOmOAP3nnwkehywJL809CgeHaFiXuYSpfK/ W5N1EGt/J+VZ4VMO7qcRGnMySuEks774ya2LgWKO1BxO4R17g9d1crE5E JWLVb3cbxnRNGZVpQ/96IyBBNbCnYmEyDbyRTGnIoDhKsonkd7hx7RE0F j6VXPwfYAO2HnHe1xtdeoCaYrzM8FbvM0jxRz1YL9zreSe9M3hoPyCw1h peMIgpu6HfHfpYPa9z7du56dDsuhsZ+BNudR/9DgdllV/WTc799gUvq6K KK3kyDihVqZi5b5Fts770JbZ0+hBbSh5qcVbqzoCPtadRRZJ3Pov5ydts g==; X-IronPort-AV: E=McAfee;i="6600,9927,10716"; a="439030608" X-IronPort-AV: E=Sophos;i="6.00,181,1681196400"; d="scan'208";a="439030608" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2023 23:29:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10716"; a="697256587" X-IronPort-AV: E=Sophos;i="6.00,181,1681196400"; d="scan'208";a="697256587" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by orsmga007.jf.intel.com with ESMTP; 20 May 2023 23:29:46 -0700 Message-ID: <175e0393-735f-3dde-b086-fb5bc514ddee@linux.intel.com> Date: Sun, 21 May 2023 14:29:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: baolu.lu@linux.intel.com, Robin Murphy , 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 v6 4/4] dmaengine/idxd: Re-enable kernel workqueue under DMA API Content-Language: en-US To: Jacob Pan , LKML , iommu@lists.linux.dev, Jason Gunthorpe , Joerg Roedel , dmaengine@vger.kernel.org, vkoul@kernel.org References: <20230519203223.2777255-1-jacob.jun.pan@linux.intel.com> <20230519203223.2777255-5-jacob.jun.pan@linux.intel.com> From: Baolu Lu In-Reply-To: <20230519203223.2777255-5-jacob.jun.pan@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 On 5/20/23 4:32 AM, 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. > > Link:https://lore.kernel.org/linux-iommu/20210511194726.GP1002214@nvidia.com/ > Reviewed-by: Dave Jiang > Reviewed-by: Fenghua Yu > Signed-off-by: Jacob Pan Reviewed-by: Lu Baolu Best regards, baolu