Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3346962ybd; Tue, 25 Jun 2019 00:41:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwx2Wht85da74rAYkGYQPgy6QHoHIoWbg4+bqQWMCU9YwSNNciid+cmew4PB3x2zOHP6AE0 X-Received: by 2002:a63:ba08:: with SMTP id k8mr22043439pgf.378.1561448508366; Tue, 25 Jun 2019 00:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561448508; cv=none; d=google.com; s=arc-20160816; b=Dn+twoxRaLle+mY7Iyo7LByLFqSX6Kwks8QArrSe49LSS5kaj19pL/MTqr64Hy9F4U FD4FJeHPylosbuJpGOaZCGw8m5xr0plSyuD7Ce5HGLGfAB+kz8kXb8Cc3lHDSetMFJr5 tNgs0i9pZ1VpTsu8zfGRyvXSMei/lDnThwtBJ4a7WeYZuj4TDHB1ggk6cCmMZRM0wO0z C5t2OSCW992dwMRopBK7gx0hs0DvBjtmS5f9dMDMpQ5NY1+52JQHyYmkehaWgPgdsckA /d7BP3F8yiMAXFaSksEH6nMJRWTsS9liSJJwcOWLQOYbqjH1Sig4vv5UZ3/fFoWez06N /MpA== 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=v5FvCUlV/lSNjcpSHMaIM+hGlLCiMtyaRb4ItJcaQVM=; b=eXqTQVqyFD2mNfJ4p0lrXQf3y3IttwR1HLLpnSDVLU0LHlKaD9dMfS96YYeShisi05 C3JUgdznpVsH3S4N9YKoPvRvQQFfTBEqca43eRen1bLPQsqO7XzID23eoFV2Iy8XPpgr JqBUAM9z/M25kirhM4/h64v0rEBv7J1iAnykD216RXIfnPppXZjw/po6xvptCHJHufpa CTWbiJBqHQZOKslUUJHipOsNKz++DTHGCh2+0wt0+zLvxfrNp0nXnc60YESMjjpxsH9J J/Yr65YDhMCWEQvoN12atOHwCvBjk1vWQPRvO52L3wIUNgVVu+V/yOZ725ZL/iJtUL7e uvhg== 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 v20si13648501pff.26.2019.06.25.00.41.32; Tue, 25 Jun 2019 00:41:48 -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 S1729366AbfFYGdB (ORCPT + 99 others); Tue, 25 Jun 2019 02:33:01 -0400 Received: from verein.lst.de ([213.95.11.211]:59903 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729004AbfFYGdA (ORCPT ); Tue, 25 Jun 2019 02:33:00 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id B569268B02; Tue, 25 Jun 2019 08:32:28 +0200 (CEST) Date: Tue, 25 Jun 2019 08:32:28 +0200 From: Christoph Hellwig To: Geert Uytterhoeven Cc: Christoph Hellwig , Greg Ungerer , linux-m68k , Linux IOMMU , Linux Kernel Mailing List Subject: Re: [RFC] switch m68k to use the generic remapping DMA allocator Message-ID: <20190625063228.GA29561@lst.de> References: <20190614102126.8402-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Jun 17, 2019 at 08:53:55PM +0200, Geert Uytterhoeven wrote: > Hi Christoph, > > On Fri, Jun 14, 2019 at 12:21 PM Christoph Hellwig wrote: > > can you take a look at the (untested) patches below? They convert m68k > > to use the generic remapping DMA allocator, which is also used by > > arm64 and csky. > > Thanks. But what does this buy us? A common dma mapping code base with everyone, including supporting DMA allocations from atomic context, which the documentation and API assume are there, but which don't work on m68k. > bloat-o-meter says: > > add/remove: 75/0 grow/shrink: 11/6 up/down: 4122/-82 (4040) What do these values stand for? The code should grow a little as we now need to include the the pool allocator for the above API fix.