Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp68292ybg; Fri, 25 Oct 2019 16:49:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjS4s7s4GRjmwBW+yCrnnzobjaEq1AS2fhU6Bum+MFz0eXdotch07KIZdk5kii46/kCasp X-Received: by 2002:a05:6402:1252:: with SMTP id l18mr6968223edw.64.1572047382339; Fri, 25 Oct 2019 16:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572047382; cv=none; d=google.com; s=arc-20160816; b=AoG9oTahgBKI4CFUEWBH1FPnsWSfu87M2hHcUZ07XOL1baq6dleCt1saqpVmWGc+7D dkXqZIoRwsTLmOgtiD073PkYshLHVuH5/hYvxGqMEkoAZG5Y8pZY3+s6r2F8s/K+i+Jl NWx3qfW5BOg75ZU6COPtHmtfWn5GqUIeMWLAw0cx2cP8fsv4ez1nYwOeu7Hxv115t27W Q6HG3uLIYWVIq4dnLtQ+rpJQmbZKML+VQNVELbpWrORR5ZkvKzBcpykwBQ0M0aKScE3J f7XaRlV/COxn8tSH0xCGDHhq8XeUR2KE21WhSArTqRRdA1TlzKx8AuG5dyCpx+2IdtnT +2Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Bhq3e5+uTtbnGM7apONt9dMc+TmRaAuRWUEzjpFFxKA=; b=IdS2ZG/356nufcLN3NElsuXpFkVWzKTsU0opR67Z3sfyhR9adsGoJq82aLZ5lxF2Az RM0IyjHmMoUwLYbtE+kCO1Hy8wXywFtInHWIHEzA7mOVVjMgA6E2WqEZJLD8aizXQb6f 3nVrNH9CJ0dcpzi5i5KxHVUC/izG7z2ETfTQ6UgqWX50F2aDFihh0tXDOu5iA7+Xfyi1 qD635pKKJb1xPXopFqMvQD+SYw7nQEanwPxrhuL9PSaYdNovJw3P/zGn/WIgpbloKxlX 938fvcG5ueBzZA1xO8aUaCBNDvfeMMT9Yctvl6HkQGMHeULZpLEfZUg9sIBsGm97Apem 9yyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BYPTEufA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t16si2370847edd.269.2019.10.25.16.49.15; Fri, 25 Oct 2019 16:49:42 -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; dkim=pass header.i=@linaro.org header.s=google header.b=BYPTEufA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725997AbfJYXsl (ORCPT + 99 others); Fri, 25 Oct 2019 19:48:41 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36877 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbfJYXsk (ORCPT ); Fri, 25 Oct 2019 19:48:40 -0400 Received: by mail-pf1-f193.google.com with SMTP id y5so2680233pfo.4 for ; Fri, 25 Oct 2019 16:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Bhq3e5+uTtbnGM7apONt9dMc+TmRaAuRWUEzjpFFxKA=; b=BYPTEufAVLkHLG6Q3wf3G8dMHPiwZIiYsyj+S/697RWsfwa4c9jd2jJRLAAI6tNE5/ m6ooU4AS61vxB4eWwc/gMw0I6ZRirirCkWb6cNM3lEFq16sXWQZdsyUaXQyaNVlqWkRf BtdDVyXgRgcMr6T9KEd41anhcn1llPhz2mwydOKMwn6LTs2HQxcFMHkupJgq01MNgo4W 5oz3n0ihU4nVYVEMw1Fn/wbsQ0VwgkpToV06QLqlc6ZrZ6QQM1+oRzY6c1z3qMdbCpN/ /sWbw8DaH9fC5a72hETtdQHBjO7CoWh2mrjP+c5mf3RSONmIB2rOuPH3hdpu03xNcTGx VnOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Bhq3e5+uTtbnGM7apONt9dMc+TmRaAuRWUEzjpFFxKA=; b=cjC9ZyR/sQwRMpDbC97LC3WihukiQp7Mpxi6wDfhnphGL9nAczMTFZCzsHv4ethL/n Fs37nOeMtS8iXm1kwFO6rJXd85NO6OoUZ7jbkCR2TPgC1NsvI6k8kZhagCh0l1/aoz6i lhvHAwmgpG9Y5416UTbIXXVeeRSkeG43btmjqHN/EYGxeIlE2G/HyR0yCyH9Ng45SoI5 ql0J3eQ/B0XOtXbSJw9nMtAc3NW7NnZDbkwUFZnqjtSBNzSVqT7mNIDbXDuxMXLi5enM qC/qOOzMjws7sd8dd3iVouVH4yKnz1Rw/z/3a/hO8fFSiitoS5jmpbH8Nt7/OHYMSNcT 0Pyg== X-Gm-Message-State: APjAAAVPQDALn7ZRekHdCjm198LgIsdI3u6Tteyvcy8qhrHMZRYslAH4 A0JbgZ9N7S/x87pfaQ+/ziQXIDmQepQ= X-Received: by 2002:a62:4d04:: with SMTP id a4mr7431646pfb.71.1572047318043; Fri, 25 Oct 2019 16:48:38 -0700 (PDT) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id cx22sm2817179pjb.19.2019.10.25.16.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 16:48:37 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Laura Abbott , Benjamin Gaignard , Sumit Semwal , Liam Mark , Pratik Patel , Brian Starkey , "Andrew F . Davis" , Andrew Morton , Yue Hu , Mike Rapoport , Chenbo Feng , Alistair Strachan , Sandeep Patil , Hridya Valsaraju , dri-devel@lists.freedesktop.org Subject: [RFC][PATCH 0/2] Allow DMA BUF heaps to be loaded as modules Date: Fri, 25 Oct 2019 23:48:32 +0000 Message-Id: <20191025234834.28214-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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! 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