Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3354495ybd; Tue, 25 Jun 2019 00:51:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlH40PoiNvAXzusavomlmqNomgbbUc6GzvT1/AXSqt6+O4A3ww6q2sFBqFpDN3FA5hw4Zn X-Received: by 2002:a17:90a:2666:: with SMTP id l93mr29847764pje.16.1561449099180; Tue, 25 Jun 2019 00:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561449099; cv=none; d=google.com; s=arc-20160816; b=Qc704taWNHT627ocZa99t2UbGfEh65XLfE5wkCoHeMLPQ3dBNAnEgLxKv78X/tkJYe n27ZkhvwISHS52N8AmR7rdx3qkaQmUtyFg9EuwXYKivI0Oin/lcSlCmYcUMchsFzpL4V YZyFyCRJG4q6c1ar+Alu4deb10xXiEUly7d4taxAo/y/jVsb5GELguIG701sxB9ylOPU N1XT/qDmI486sCGGGCz2o8zHVuDfK4gFZ20v0Vy3bIAgQLTvc7IrRbQVXRtemTSS+sma aJo4Zs6yGDmNtmimifrJRO/YmRPkA8nqDckWxYB7ziAKgSBOJkcxpcw/OZCmMbduXPZq d1Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=1Qkw0w8lvC08c786EpQGX2PIdXmdvbYBqHXJse34m3o=; b=NiKwOOb6lNWlIUCJPk/kNzIUnkxAW7quNTqnghnNUlgGmmIf/WnwoLcT2Th7RSKSyF D4qrzeY9pAoomMb9qsDKiBKFIfgRv7Ffqpvz+4xfh1LImYDyrLdA0yuqHR8JjJ2hj2hO H8FPp/7ejVs1RKwD7WkB3p43Nz4M3F/aeelWiuoNjoaJqM8nXbXSilUo0BPPEK6X3EQI 7gBb90W9V03v3F9gYfLdM9DqceoCX+zmTWGIfLEAARxWW20x227TGlwVsP/bt716Ok7Z hzqurRqqeKkRsuzS16PVB6zkWDS7xNJ35Q/nddoxhee0lBS6cdhZs/OMQRhwedGsD484 iY/Q== 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 q11si12794231pgb.78.2019.06.25.00.51.23; Tue, 25 Jun 2019 00:51:39 -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 S1726805AbfFYH1B (ORCPT + 99 others); Tue, 25 Jun 2019 03:27:01 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40695 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbfFYH1B (ORCPT ); Tue, 25 Jun 2019 03:27:01 -0400 Received: by mail-ot1-f68.google.com with SMTP id e8so16226022otl.7 for ; Tue, 25 Jun 2019 00:27:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1Qkw0w8lvC08c786EpQGX2PIdXmdvbYBqHXJse34m3o=; b=gvVX5CZyFWHbYmXHjH4/MtD5/k+9SoaguBjYui8eWO5/gSr/8S47ewJAeFvy/vXOOy /ey4NlVB8dE/AUCG8COBU0T6ZDZ9e1ySPOExWcYgUBi7zsYXGAhlenWIpCcO7CUKBpMm 5oCo4v7H+eMJvqYUcbpbenYDVCwIU6qLQvJxW77K8xc0ys5q6urslrnUBcJnOuwXJViB TkAMhBwWy7J/YLW5DENmAuqPHK0Un5bheXVMJbuItJli8i0jfLDWV+k6vYCrfL06GQDJ 4jpRmOwpCmsvg5TQGbc3rYdMc0GDqy40aP1d3jKOwheZNX/ogzaRfXebmc3bZfZfj8b4 o6zA== X-Gm-Message-State: APjAAAVjDbL87Z5vS+HQTVxqHvoR/GO2BHdJdOsNJ8JxPJ5Ml/gxSiNJ r6UOyOY8IZ+DwuR8QLtQ9KehPje+puDxoxmb+kA= X-Received: by 2002:a9d:529:: with SMTP id 38mr16990865otw.145.1561447620546; Tue, 25 Jun 2019 00:27:00 -0700 (PDT) MIME-Version: 1.0 References: <20190614102126.8402-1-hch@lst.de> <20190625063228.GA29561@lst.de> In-Reply-To: <20190625063228.GA29561@lst.de> From: Geert Uytterhoeven Date: Tue, 25 Jun 2019 09:26:48 +0200 Message-ID: Subject: Re: [RFC] switch m68k to use the generic remapping DMA allocator To: Christoph Hellwig Cc: Greg Ungerer , linux-m68k , Linux IOMMU , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Tue, Jun 25, 2019 at 8:33 AM Christoph Hellwig wrote: > On Mon, Jun 17, 2019 at 08:53:55PM +0200, Geert Uytterhoeven wrote: > > 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. OK, thanks! > > 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. Last 3 values are "bytes added/removed (net increase)". So this increases the static kernel size by ca. 4 KiB. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds