Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1FDBC433F5 for ; Wed, 8 Dec 2021 04:56:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244338AbhLHFAB (ORCPT ); Wed, 8 Dec 2021 00:00:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239819AbhLHFAA (ORCPT ); Wed, 8 Dec 2021 00:00:00 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7CA4C061574; Tue, 7 Dec 2021 20:56:28 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 7F555B81113; Wed, 8 Dec 2021 04:56:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E346C341C3; Wed, 8 Dec 2021 04:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638939386; bh=C9Fxg4lH/TpRohy6FBCFxRHJq6QxdHRXmdORxmA2LQg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sqcCBB0TqyOBe1PKMXTJnGrJfgXFaWGreXTj4jacVfPnKGUQdsx2+nFCt6aL8AWCe gtaOqSRy8mIQSsB9Z1Uv6Jn0CtQ0xxwjqe9Ti1AqmdRSAJ2wmhcEdA5Oqc8wbp80tz zwRSIObMdfzqEZARgmGqbIaLCXu+YC30LG2braUKc+iaNTCQAdAGQ0n0COlSAwPH7W LNtk2YVvMJTRCDCVfBPMAHA1KG5uRv0WP3xJ06LgzZSpPQdm8cdmIxvLsj1ooSWMqU JY2qXKWq26CuKIsAcA3w9CH9PFTdFkD+uScKtG7iAGiebvHqBxMUoVX7QHjcBVE/Pe gXTHxbjRH/83g== Date: Wed, 8 Dec 2021 10:26:22 +0530 From: Vinod Koul To: Dave Jiang Cc: Jacob Pan , iommu@lists.linux-foundation.org, LKML , Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , Greg Kroah-Hartman , Jean-Philippe Brucker , Jacob Pan , Lu Baolu , Raj Ashok , "Kumar, Sanjay K" , Tony Luck , Yi Liu , "Tian, Kevin" , Barry Song <21cnbao@gmail.com>, "Zanussi, Tom" , Dan Williams , "dmaengine@vger.kernel.org" Subject: Re: [PATCH 4/4] dmaengine: idxd: Use DMA API for in-kernel DMA with PASID Message-ID: References: <1638884834-83028-1-git-send-email-jacob.jun.pan@linux.intel.com> <1638884834-83028-5-git-send-email-jacob.jun.pan@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-12-21, 16:27, Dave Jiang wrote: > > On 12/7/2021 6:47 AM, Jacob Pan wrote: > > In-kernel DMA should be managed by DMA mapping API. The existing kernel > > PASID support is based on the SVA machinery in SVA lib that is intended > > for user process SVA. The binding between a kernel PASID and kernel > > mapping has many flaws. See discussions in the link below. > > > > This patch utilizes iommu_enable_pasid_dma() to enable DSA to perform DMA > > requests with PASID under the same mapping managed by DMA mapping API. > > In addition, SVA-related bits for kernel DMA are removed. As a result, > > DSA users shall use DMA mapping API to obtain DMA handles instead of > > using kernel virtual addresses. > > > > Link: https://lore.kernel.org/linux-iommu/20210511194726.GP1002214@nvidia.com/ > > Signed-off-by: Jacob Pan > > Acked-by: Dave Jiang > > Also cc Vinod and dmaengine@vger Pls resend collecting acks. I dont have this in my queue -- ~Vinod