From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 911C5C43141 for ; Wed, 13 Nov 2019 20:11:38 +0000 (UTC) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 287E32068D for ; Wed, 13 Nov 2019 20:11:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 287E32068D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=davemloft.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 17719D49; Wed, 13 Nov 2019 20:11:38 +0000 (UTC) Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 39BDBCF6 for ; Wed, 13 Nov 2019 20:11:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from shards.monkeyblade.net (shards.monkeyblade.net [23.128.96.9]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 46EC18CF for ; Wed, 13 Nov 2019 20:11:34 +0000 (UTC) Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E89F91203B429; Wed, 13 Nov 2019 12:11:32 -0800 (PST) Date: Wed, 13 Nov 2019 12:11:32 -0800 (PST) Message-Id: <20191113.121132.1658930697082028145.davem@davemloft.net> To: laurentiu.tudor@nxp.com Subject: Re: [PATCH v3 0/4] dma-mapping: introduce new dma unmap and sync variants From: David Miller In-Reply-To: <20191113122407.1171-1-laurentiu.tudor@nxp.com> References: <20191113122407.1171-1-laurentiu.tudor@nxp.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 13 Nov 2019 12:11:33 -0800 (PST) Cc: ruxandra.radulescu@nxp.com, madalin.bucur@nxp.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, leoyang.li@nxp.com, iommu@lists.linux-foundation.org, camelia.groza@nxp.com, ioana.ciornei@nxp.com, robin.murphy@arm.com, hch@lst.de X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: iommu-bounces@lists.linux-foundation.org Errors-To: iommu-bounces@lists.linux-foundation.org From: Laurentiu Tudor Date: Wed, 13 Nov 2019 12:24:17 +0000 > From: Laurentiu Tudor > > This series introduces a few new dma unmap and sync api variants that, > on top of what the originals do, return the virtual address > corresponding to the input dma address. In order to do that a new dma > map op is added, .get_virt_addr that takes the input dma address and > returns the virtual address backing it up. > The second patch adds an implementation for this new dma map op in the > generic iommu dma glue code and wires it in. > The third patch updates the dpaa2-eth driver to use the new apis. The driver should store the mapping in it's private software state if it needs this kind of conversion. This is huge precendence for this, and there is therefore no need to add even more complication and methods and burdon to architecture code for the sake of this. Thank you. _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu