Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp849964ybi; Fri, 31 May 2019 09:45:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVG1z3ogOJfpuBqpaCjd7jtEaNJ2/+S1TLl33w93Jct+Y2kNKuriryTD1XaWKIbim1xZc8 X-Received: by 2002:aa7:8752:: with SMTP id g18mr11186491pfo.240.1559321129609; Fri, 31 May 2019 09:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559321129; cv=none; d=google.com; s=arc-20160816; b=PMWnmvjNucHu0LTAJv5bOU28Gw1KHJmWN+ax4Pd6c3ZlaYY4PtmPvXauvEquBahiWR HU4aKHUXFt4QA9eqmjUtNYtsO45HDL/EHl1RBmnsyaYB9R/aU+YoU9LewQc524rnpf2o 567RI2ppFD61986lwAPX97XJRpXZ6K51En5WxuWDwdGFfBwfHEUDF3QsnhuelGL+ZmUb 4O5tIkm2WYn7Va01VuNDxPez5z4zhIbUqD7hGoOOAzs8zu7r1ozzysxIaOPgmFl/Grx7 CUjYokWaojLoZkyAYkJeDZJmAab0nwKw2TH03BzeTiJyydM8UM7mN4eLHyIXtEWtdsqD B2yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Z6KyJjbYfSth8+PFb9oNowQwxMjj2V1mWV6OTWvb+ho=; b=nc000IeudsFwBYVYgYd+MruTnK+8o1bZhMiP/++gft01aUsTfTALc3jW2H2vlcNJ0/ /Y70KywmCbiSyw0Pszg0hXZkgw4qrWYtogmdQk2FRIogYCEsSZmbD6mhO1lqv8+n91D5 I/2o0JW0zv55YcQBAh/GpEutzOTae9ZB9yYs/RL58BvHl/ZpQ+ESvTVJbTmCynF0DWmC w0S1Xgl0NETxZUw00QYW8NTuEi987TI0vXmUezmvZQil3Nycm6SVdO8A7mBS7RfWvGfi a9JLg8Cl9K3YNkJPcxjzbkpR8HrcQwCQps2mOArqJQcPcpX1oiOwWfoz5XEDnMBs8e7V 52CQ== 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 1si6706021pgw.226.2019.05.31.09.45.08; Fri, 31 May 2019 09:45:29 -0700 (PDT) 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 S1726808AbfEaQnz (ORCPT + 99 others); Fri, 31 May 2019 12:43:55 -0400 Received: from verein.lst.de ([213.95.11.211]:41831 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726531AbfEaQny (ORCPT ); Fri, 31 May 2019 12:43:54 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 50CCA68AA6; Fri, 31 May 2019 18:43:28 +0200 (CEST) Date: Fri, 31 May 2019 18:43:27 +0200 From: Christoph Hellwig To: Laurentiu Tudor Cc: Christoph Hellwig , Greg KH , "stern@rowland.harvard.edu" , "linux-usb@vger.kernel.org" , "marex@denx.de" , Leo Li , "linux-kernel@vger.kernel.org" , "robin.murphy@arm.com" , "noring@nocrew.org" , "JuergenUrban@gmx.de" Subject: Re: [PATCH v7 0/5] prerequisites for device reserved local mem rework Message-ID: <20190531164327.GB27525@lst.de> References: <20190529102843.13174-1-laurentiu.tudor@nxp.com> <20190529113427.GC11952@kroah.com> <20190529113758.GA9399@lst.de> <5b8164b3-74a3-9ba4-8c28-61a14ec57a39@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5b8164b3-74a3-9ba4-8c28-61a14ec57a39@nxp.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 29, 2019 at 02:06:12PM +0000, Laurentiu Tudor wrote: > Thanks, hope this time everything is fine. I've applied it to the dma-mapping tree now. > When you get the time, please let me know your ideas on the next steps. I think the next step is to move the call to dma_alloc_from_dev_coherent from dma_alloc_attrs into the ->alloc instances. The only onces that really need it for now are the generic and legacy arm dma-direct code, and drivers/iommu/dma-iommu.c as well as the ARM DMA API code, as those are the ones use for architectures that declare coherent regions. The other iommus are not used on OF platforms (at least that's what my analysis said a while ago, feel free to double check it)