From patchwork Fri Oct 10 20:07:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Semwal X-Patchwork-Id: 5149771 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2A2489F374 for ; Fri, 24 Oct 2014 21:25:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5BF6C20265 for ; Fri, 24 Oct 2014 21:25:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 800A6201C7 for ; Fri, 24 Oct 2014 21:25:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7164D6E745; Fri, 24 Oct 2014 14:23:37 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D0CA6E44E for ; Fri, 10 Oct 2014 13:08:56 -0700 (PDT) Received: by mail-pa0-f54.google.com with SMTP id ey11so2395554pad.13 for ; Fri, 10 Oct 2014 13:08:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MrF+Bx7kcHu9D0JjpjbRuZ9+XT2I3dEZdyUF4we0QPQ=; b=Q7OuzwLEFTqnAdN5DmnPAkdeP5Lc20x4xUFX8hxSyrlCTVembiwCakX/y6CV27jnH0 vcDEog4chSzjqG3ERzvjU+o6FCjaq9UdjmYxPsK2Q8MsIlSfSYjXb11EKHUfVrbhSaSy 0YoO0Y3ZhwtDCZm3cS4xuDgcO7ROs3ci6gTKYQTGAZwMRPz+itGF97hEf3NIey+mVMmh Zgj2J+akZhpvaOwNiVbGX59fGlCV/Wu8k0/wqHY5aCNFf8t80fp/70Oan6JTL3VBpOQ6 RVuVzFOJj18KuVHZkEKrzbWMIbf7ca8svvI/yAdeyoaCQ8H7pE4uwDAwqrBmGk1VK2Ga E1zw== X-Gm-Message-State: ALoCoQkn4cLnITrsygivNCWYX6/igkIFz8b4xdhMvAqcGz+R9o+h1NAJFn5tELT9CPsgfT46oXv4 X-Received: by 10.66.188.4 with SMTP id fw4mr7666956pac.67.1412971736091; Fri, 10 Oct 2014 13:08:56 -0700 (PDT) Received: from localhost.localdomain ([103.227.99.153]) by mx.google.com with ESMTPSA id ap5sm4365463pad.22.2014.10.10.13.08.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Oct 2014 13:08:55 -0700 (PDT) From: Sumit Semwal To: linux-kernel@vger.kernel.org Subject: [RFC 3/4] cenalloc: Build files for constraint-enabled allocation helpers Date: Sat, 11 Oct 2014 01:37:57 +0530 Message-Id: <1412971678-4457-4-git-send-email-sumit.semwal@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412971678-4457-1-git-send-email-sumit.semwal@linaro.org> References: <1412971678-4457-1-git-send-email-sumit.semwal@linaro.org> Cc: linaro-kernel@lists.linaro.org, Greg Kroah-Hartman , dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-media@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, SUSPICIOUS_RECIPS, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the build files for cenalloc, the constraints-enabled allocation helper framework for dma-buf. Signed-off-by: Sumit Semwal Cc: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman Cc: linux-media@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linaro-mm-sig@lists.linaro.org --- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/cenalloc/Kconfig | 8 ++++++++ drivers/cenalloc/Makefile | 3 +++ 4 files changed, 14 insertions(+) create mode 100644 drivers/cenalloc/Kconfig create mode 100644 drivers/cenalloc/Makefile diff --git a/drivers/Kconfig b/drivers/Kconfig index 1a693d3..f40d2ce 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -182,4 +182,6 @@ source "drivers/ras/Kconfig" source "drivers/thunderbolt/Kconfig" +source "drivers/cenalloc/Kconfig" + endmenu diff --git a/drivers/Makefile b/drivers/Makefile index ebee555..a04e516 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -161,3 +161,4 @@ obj-$(CONFIG_POWERCAP) += powercap/ obj-$(CONFIG_MCB) += mcb/ obj-$(CONFIG_RAS) += ras/ obj-$(CONFIG_THUNDERBOLT) += thunderbolt/ +obj-$(CONFIG_CENALLOC) += cenalloc/ diff --git a/drivers/cenalloc/Kconfig b/drivers/cenalloc/Kconfig new file mode 100644 index 0000000..9472d5d --- /dev/null +++ b/drivers/cenalloc/Kconfig @@ -0,0 +1,8 @@ +menuconfig CENALLOC + bool "cenalloc helper functions" + default n + select ANON_INODES + help + This option enables the helper allocation framework for drivers using + dma-buf buffer-sharing. It uses constraints of participating devices + to help find out best suited allocator. diff --git a/drivers/cenalloc/Makefile b/drivers/cenalloc/Makefile new file mode 100644 index 0000000..d36b531 --- /dev/null +++ b/drivers/cenalloc/Makefile @@ -0,0 +1,3 @@ +# Makefile for the cenalloc helper + +obj-y += cenalloc.o