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=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 27640ECE58C for ; Mon, 7 Oct 2019 16:53:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 006582070B for ; Mon, 7 Oct 2019 16:53:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbfJGQxV (ORCPT ); Mon, 7 Oct 2019 12:53:21 -0400 Received: from verein.lst.de ([213.95.11.211]:39336 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728019AbfJGQxV (ORCPT ); Mon, 7 Oct 2019 12:53:21 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 471F668B20; Mon, 7 Oct 2019 18:53:15 +0200 (CEST) Date: Mon, 7 Oct 2019 18:53:15 +0200 From: Christoph Hellwig To: Mark Salyzyn Cc: Christoph Hellwig , Catalin Marinas , linux-kernel@vger.kernel.org, kernel-team@android.com, Andrew Morton , Yue Hu , Mike Rapoport , Will Deacon , Thomas Gleixner , Ryohei Suzuki , Doug Berger , Andrey Konovalov , Peng Fan , linux-mm@kvack.org, Robin Murphy Subject: Re: [PATCH] mm: export cma alloc and release Message-ID: <20191007165315.GA10317@lst.de> References: <20191002212257.196849-1-salyzyn@android.com> <20191003085528.GB21629@arrakis.emea.arm.com> <20191005083753.GA14691@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, Oct 07, 2019 at 09:50:31AM -0700, Mark Salyzyn wrote: > On 10/5/19 1:37 AM, Christoph Hellwig wrote: >> On Thu, Oct 03, 2019 at 09:55:28AM +0100, Catalin Marinas wrote: >>> Aren't drivers supposed to use the DMA API for such allocations rather >>> than invoking cma_*() directly? >> Yes, they are. > > We have an engineer assigned to rewriting the ion memory driver to use > dma_buf interfaces. Hopefully that effort will solve the problem of > requiring these interfaces to be exported so that that driver (and others) > can be modularized. > > Thanks for the reviews, drop this patch from the list and we will regroup, > and accept that standing code in the kernel can not be modularized for the > moment. How is that different from the "DMA-BUF Heaps (destaging ION)" series floating around?