Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2305953ybc; Wed, 13 Nov 2019 12:14:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyDIbLVTo7VxCw/2CpzKiJ0MOppXOBoJPzOAwaW1IB825sYC9F7soswbbDvUfyVTy2GztQL X-Received: by 2002:aa7:d842:: with SMTP id f2mr5653763eds.262.1573676078267; Wed, 13 Nov 2019 12:14:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573676078; cv=none; d=google.com; s=arc-20160816; b=XZL1Lg1TRMgk0r+qNlIX0caM4dMoeVSX7Vaa+EqDreT5OOnNHpfyg/JEClIY29AaOW U4WWhwoxG7y0IvGC19MH8sTzJEyzqnIGz20K8Ak9P/PDih+eYKKyteYad8JUZU/RDXGV A+5YdnhSDw2xsyw7Xr1BsGQ8afPxJYnE83EDTN50RHGzBlVgg9hWfNnNpdXjPIN61qWL rR23OwVIZ34qfCn5Fd7wKZk7s3pnvrkCqLy71EDQDfz6SvQu+EtXdudrP/ZfyaKotIcX 870ebwaqXKKPfk7pZdYclPU/cSf0zE8WTOLd+UfN2baEaqtwm26gQXan9IkOXxq1xJce umlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=JVG35528EmpMOrSTHrjvoJh8EOq7F3rAHeh01pr3oY8=; b=dETvgOn38anxeRJ19XjPPnLc0xuLmpGDcpLPEXJexBMhNFUbi6MeV7mcVud7Q6rbjb GVGh0QpMpvjnTzNEq1eOHNct1x5O1dFeiv6R1tRsiOmoROGv5fwTJ/oS6QWS56xtu7Dk evnO3Bh2o8euhzT1fiT0iiCSeYuy9EFcAg215AD9GhFz42f4YktUWeIAbx026g26o+re 3SWlPgSK2D8SJc5QfpUt/IhonoPVdfq145niRwlrqIyOlk9TaOLBEi4bUYt8wh1svcIU vaufvuJUGUmkBm1WRK3R2IAW7RMd7cO9yZyWqJpN/ghYTB29HXCzYgn27wxKGU5SoGbz aGjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qw26si1876776ejb.103.2019.11.13.12.14.13; Wed, 13 Nov 2019 12:14:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726605AbfKMULe (ORCPT + 99 others); Wed, 13 Nov 2019 15:11:34 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:37236 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726155AbfKMULe (ORCPT ); Wed, 13 Nov 2019 15:11:34 -0500 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 Cc: hch@lst.de, robin.murphy@arm.com, joro@8bytes.org, ruxandra.radulescu@nxp.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, netdev@vger.kernel.org, ioana.ciornei@nxp.com, leoyang.li@nxp.com, diana.craciun@nxp.com, madalin.bucur@nxp.com, camelia.groza@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 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.