Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4301071ybx; Mon, 4 Nov 2019 11:04:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwIKoN+x5k1k789/2rLMnIlBUcDABMDIXCANzNH5kqFhyp7MZwpFbopnzBhXcTTeEUWqpMU X-Received: by 2002:a50:fe96:: with SMTP id d22mr31703862edt.227.1572894258725; Mon, 04 Nov 2019 11:04:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572894258; cv=none; d=google.com; s=arc-20160816; b=e44igBC+ODy0UMdpHvp7GF+zBO7TSVumW2jv/SXcOk1T9wRKAL97RXwnIc1gDHrkqw BfIFzTX4mdSBBpa5OcPLgJ/cLjDaFhUCnZUZOT6mlJIdzejINfgW0Dj2KLqsgcWAqlRc 2W14dKYWKQ4DA5awQJsticxn+ptTD64xmPuFn+xIGJFCrlFgufoyXdDBfRS56CqXUIxT Stk8+E6WDaRdHDGvCfb8l2/pTIv7uTSkzSsrBJrxcHJFO8c670R7aaRqgLHXyFkLK+zA IVM+VMyRuIE9qhCgk2IQfaX6t5BceHMcqcc7Qgo3kPtMXbWbixwSGBv1utU7dCrG5Tyw zgzw== 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:dkim-signature; bh=Ksr/h9CCVfqZZQjRKQaKSNEP4lA439YVqkZQJ3uCxu4=; b=GJoXlnIC3+DhmLy2omJsoVBNYyOqVENuM1j6pG0N/hXMTlQtpB7awCLbGgidbByqmv IujUNhS3iNOf5747vLsKCF8rBhHUzYiC5cXm4IAs0dI8ZWS4pQ+ZTM9bHduUmVxzTVv5 RJCjuMIOViJVhWrX7qyOkl/32AZMQVxgixIot75y3V/Ad0XLT4BRa0XVu034x1yKVrR0 dHBTmAqvZ54IOcaHt/g3wbHadHlgSE56bk/6pdsa6SUOEnSm1FFNT4DFdTW8UH6g82dP ohLr0UHzoBUIkarZ3fx5zBU6KkxaVgEF2/jEuAfnfyoCPpLJN8pa13AmGMzgZsGfiiQg Vvrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CkMQKmnO; 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 r11si11525938ejr.1.2019.11.04.11.03.55; Mon, 04 Nov 2019 11:04:18 -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=pass header.i=@linaro.org header.s=google header.b=CkMQKmnO; 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 S1728778AbfKDTAW (ORCPT + 99 others); Mon, 4 Nov 2019 14:00:22 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:43152 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727998AbfKDTAV (ORCPT ); Mon, 4 Nov 2019 14:00:21 -0500 Received: by mail-oi1-f195.google.com with SMTP id l20so3032796oie.10 for ; Mon, 04 Nov 2019 11:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ksr/h9CCVfqZZQjRKQaKSNEP4lA439YVqkZQJ3uCxu4=; b=CkMQKmnOy6i1xFV6dMi8Bspp2+SiqjFCPxIRLAHuZecPhMXOwhJ0ejY623f5E2L3n8 BjP9BeUUlCqWt2o6uBCqmUg2OQ38lNyqN7+o7tRZbrWJDjzFnfedi5+KAsRIakiIYnxS MFP+ZnbOqfvvJhOCHS8mHURidBYca+h47mZLk0d/OQVIGJk9dPEc8ryZ6XWdeVXza8bw W/gF61xyTqrCzN4Nnr6/QQDt2PqWxlGtnCImJjErygRstjnpOeT0/y8S1KCkvMYKejoP ErUpYl/s8Fwd7vKYzpdkexc+TxgX1fMlNd2vs7wICk2khqMalQuMN7qYcNgsYQZzfH4s sSoA== 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=Ksr/h9CCVfqZZQjRKQaKSNEP4lA439YVqkZQJ3uCxu4=; b=cR+KZorzjSshjvEfem5VfSqczd4/grdMHRHQ1FOu/r3PZOLHFpQ2eJGIYyrHO+qrv9 w4jFD0Wkp4Bd1y6AeqwWJ2kzhz/Av0nHzeojWcfm3lGfanLeGqelVn8wLmpDlmuV1YsX yVp1fL268ifS3jM9XYW81yHjld0TS7g2nbSgy78HpzhaMqH8L1/mXk5zXXGzb6d2cFlS aEwdk6Dbxmua0F/OxSJfnxAbTBraEtyDKzw+0uD7yOXKBnknaXcuzWOiK5Kf/qEjf55+ O4WnAtdZwR8hHMOiUX3LK8XkdQK/WWaQfqN2ddSro+HUnUon7hLIEACyRfsWKPxKgKqr vxEA== X-Gm-Message-State: APjAAAUG3YPyq6WpvN+tttwERfDnUIltLKvMGVbZ34WmbaZglI2ouLZ+ NSlAXaK0bMZkPE8mXB+DcDw6xhykAulbL/YPQoHVzWav X-Received: by 2002:aca:1210:: with SMTP id 16mr489352ois.128.1572894020603; Mon, 04 Nov 2019 11:00:20 -0800 (PST) MIME-Version: 1.0 References: <20191025234834.28214-1-john.stultz@linaro.org> <20191025234834.28214-3-john.stultz@linaro.org> <20191104102445.GE10326@phenom.ffwll.local> In-Reply-To: <20191104102445.GE10326@phenom.ffwll.local> From: John Stultz Date: Mon, 4 Nov 2019 11:00:08 -0800 Message-ID: Subject: Re: [RFC][PATCH 2/2] dma-buf: heaps: Allow system & cma heaps to be configured as a modules To: Daniel Vetter Cc: lkml , Sandeep Patil , Mike Rapoport , Chenbo Feng , Alistair Strachan , Liam Mark , Yue Hu , dri-devel , "Andrew F . Davis" , Hridya Valsaraju , Andrew Morton , Pratik Patel 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 On Mon, Nov 4, 2019 at 2:24 AM Daniel Vetter wrote: > On Fri, Oct 25, 2019 at 11:48:34PM +0000, John Stultz wrote: > > Allow loading system and cma heap as a module instead of just as > > a statically built in heap. > > > > Since there isn't a good mechanism for dmabuf lifetime tracking > > it isn't safe to allow the heap drivers to be unloaded, so these > > drivers do not implement any module unloading functionality and > > will show up in lsmod as "[permanent]". > > dma-buf itself has all the try_module_get we'll need ... why is this not > possible? Let me look into that. Thanks for the pointer. thanks -john