Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3734247ybx; Mon, 4 Nov 2019 01:59:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxpFEqz7CYVx6Jlfqq6Y9Gi+Wsiis2wyWnWC1yAYL6Ec7AW9OqchH4J3xGat7ozsEaUVV/Q X-Received: by 2002:a17:906:f209:: with SMTP id gt9mr4641758ejb.241.1572861569772; Mon, 04 Nov 2019 01:59:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572861569; cv=none; d=google.com; s=arc-20160816; b=HTZKSvCfBPHiFFjhaY6V1VbqGtGbU/Ixl38DihDWML/llAodT54sfI1Xmuuqp+54RG 7JRzW7ODkrXOArPi28mbe63SVfevGXMNneO/OitRxODaT0UdUWIZ3biW2dc6fZmqqsrd /N4adE7/IG3GMf5Xyg762VbUauQsyS/T4+DFn6y/f+eh2VKEoN8D8zx8OecRGYxdQROz tEdEK/bICWSI7u2GDt0+rrBxBrlSSTs60wVTfLdn3fqLqcl9Co3Nz+76I67BLqjboJaY 8xv1Mq3U86rNyxAHhmBgc9tDUhYBr5IrnY6p64VX9F/LiIVehCbuzED/HgYPLy2/RG+F +4DA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=A8BaA51G7E0NuLYNihqbtlcJ9Y7+alqjRVepHAHLBmg=; b=bo8+iABlTXxclkAmtv2vA2tcIOOgk0H2XIc8y248kUcvVUq4gSUi2lRC7Pdl30yq8S 9977rxIv53lGfeprlxIuaFIdtIcq9jzPQb+hqxu1dNGFNh5rEBsUeIgfzNdcRqh8GlA3 QHxKuVMtn70tnBkH9x/TnFehPopgPunul9lorNlOMzEtptcAYmW7bEfOFwot+PwLxnHb z3Pf3IE6Il5sSto1DBVrDZlDLu+q0+K5XbHNaogbi6Bemrea/gSuDVZ1AQJ9i5MR2vyf 27QV1MZnGE9+g6fRknfB06zLYRIXfUZN6uwyG8MdcTyMDte83fWbahAEZd0yJ+Saacfw jFDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=BrDaV6e5; 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 o5si1894960ejn.123.2019.11.04.01.59.05; Mon, 04 Nov 2019 01:59:29 -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; dkim=fail header.i=@ffwll.ch header.s=google header.b=BrDaV6e5; 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 S1727985AbfKDJ62 (ORCPT + 99 others); Mon, 4 Nov 2019 04:58:28 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46252 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727444AbfKDJ62 (ORCPT ); Mon, 4 Nov 2019 04:58:28 -0500 Received: by mail-wr1-f65.google.com with SMTP id b3so10485176wrs.13 for ; Mon, 04 Nov 2019 01:58:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=A8BaA51G7E0NuLYNihqbtlcJ9Y7+alqjRVepHAHLBmg=; b=BrDaV6e5i5vscg0RZjArHGnp85vXI7HBidGVQU4XfDed1jBLLwtq23rl+r4djHdbmw gZN2uH9rjlKhnmL5BpM01A3Qno/GirFRekFQv++FCnS1HIiPBKCmAbhs5VCkpY5cpZVN 4txXYq7R/2TyJy5kVThviy6eA+MRQyCmeiqkQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=A8BaA51G7E0NuLYNihqbtlcJ9Y7+alqjRVepHAHLBmg=; b=mqUjJFDzoFFtpn6IBGSnX5FDg0oybW7HZ2HkC49WzycURZjFWiXIFnU16D1mUtabKm zXA+IjMevz7YKUfVwyzfHDTclXVyVY3iImfGMxX5dZlWBEFBNy5cPuU0KIIDgdD7dOZ+ LzYG3rKG0RqHDPN/UPUdUPiXewA2AYo9brN+JjZv3VpX0qbZXBAUA5uoEY4Zq9PcFoyH 9q1rskIwAqkzuHghCXfTVSUKWSI7l7cwVywMeQlcR1F7DNR+1pP9jhaMeEJ+9KADA0m8 ngew8c6xCqkbcjGTNpsr5wQG9TVXzE+DLbzf/qey2EBSfrO3vLqBx7yiqVJVE2JEDOrs Z/gA== X-Gm-Message-State: APjAAAXYEcznmuHcBl30/Hpb9rtJfYzXk6QGPlKxPyblVSdmZh6owMTT utqbbvN9bm2/9VWHiMeIsHsdDw== X-Received: by 2002:a5d:5587:: with SMTP id i7mr22853426wrv.289.1572861506141; Mon, 04 Nov 2019 01:58:26 -0800 (PST) Received: from phenom.ffwll.local (212-51-149-96.fiber7.init7.net. [212.51.149.96]) by smtp.gmail.com with ESMTPSA id f8sm15010707wmb.37.2019.11.04.01.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 01:58:25 -0800 (PST) Date: Mon, 4 Nov 2019 10:58:23 +0100 From: Daniel Vetter To: John Stultz Cc: lkml , Sandeep Patil , Mike Rapoport , Chenbo Feng , Alistair Strachan , Liam Mark , Yue Hu , dri-devel@lists.freedesktop.org, "Andrew F . Davis" , Hridya Valsaraju , Andrew Morton , Pratik Patel Subject: Re: [RFC][PATCH 0/2] Allow DMA BUF heaps to be loaded as modules Message-ID: <20191104095823.GD10326@phenom.ffwll.local> Mail-Followup-To: John Stultz , lkml , Sandeep Patil , Mike Rapoport , Chenbo Feng , Alistair Strachan , Liam Mark , Yue Hu , dri-devel@lists.freedesktop.org, "Andrew F . Davis" , Hridya Valsaraju , Andrew Morton , Pratik Patel References: <20191025234834.28214-1-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191025234834.28214-1-john.stultz@linaro.org> X-Operating-System: Linux phenom 5.2.0-3-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 25, 2019 at 11:48:32PM +0000, John Stultz wrote: > Now that the DMA BUF heaps core code has been queued, I wanted > to send out some of the pending changes that I've been working > on. > > For use with Android and their GKI effort, it is desired that > DMA BUF heaps are able to be loaded as modules. This is required > for migrating vendors off of ION which was also recently changed > to support modules. > > So this patch series simply provides the necessary exported > symbols and allows the system and CMA drivers to be built > as modules. > > Due to the fact that dmabuf's allocated from a heap may > be in use for quite some time, there isn't a way to safely > unload the driver once it has been loaded. Thus these > drivers do no implement module_exit() functions and will > show up in lsmod as "[permanent]" > > Feedback and thoughts on this would be greatly appreciated! Do we actually want this? I figured if we just state that vendors should set up all the right dma-buf heaps in dt, is that not enough? Exporting symbols for no real in-tree users feels fishy. -Daniel > > thanks > -john > > Cc: Laura Abbott > Cc: Benjamin Gaignard > Cc: Sumit Semwal > Cc: Liam Mark > Cc: Pratik Patel > Cc: Brian Starkey > Cc: Andrew F. Davis > Cc: Andrew Morton > Cc: Yue Hu > Cc: Mike Rapoport > Cc: Chenbo Feng > Cc: Alistair Strachan > Cc: Sandeep Patil > Cc: Hridya Valsaraju > Cc: dri-devel@lists.freedesktop.org > > John Stultz (1): > dma-buf: heaps: Allow system & cma heaps to be configured as a modules > > Sandeep Patil (1): > mm: cma: Export cma symbols for cma heap as a module > > drivers/dma-buf/dma-heap.c | 2 ++ > drivers/dma-buf/heaps/Kconfig | 4 ++-- > drivers/dma-buf/heaps/heap-helpers.c | 2 ++ > kernel/dma/contiguous.c | 1 + > mm/cma.c | 5 +++++ > 5 files changed, 12 insertions(+), 2 deletions(-) > > -- > 2.17.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch