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: 26396 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1XcgVU-0005oB-8n; Fri, 10 Oct 2014 22:09:44 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.72/mailfrontend-5) with esmtp id 1XcgVS-0004Ke-6t; Fri, 10 Oct 2014 22:09:43 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755205AbaJJUI7 (ORCPT + 1 other); Fri, 10 Oct 2014 16:08:59 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:62433 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755195AbaJJUI5 (ORCPT ); Fri, 10 Oct 2014 16:08:57 -0400 Received: by mail-pa0-f53.google.com with SMTP id kq14so2298849pab.26 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=GMTf3WfMLftW6rHyvDEISsnRbEet4OH1Np5CD3W+i/GAtZ62/AGiuVjlTKhZy2l+cl H8liSD2dZnxpk7XY7pBCb/W5ia/HjPr+yeo4vNt6+5uAU86BdGrE6IDsu1YwwCFLA+Z8 h6FhlM81lYTkhXDt8XR6YvLMxTAtY4SpMQTrYYxuK7APm3SNjKCNZHkJ8AHt2xgYivcZ bTaEmY9BH+x3s+Ry+Higkmgr3fUoZM82wGxPWqQm44bh0v1DLwFdXw8z2hwjYD1TjqAH 6lYatq4dyriy7XFBw2AAvO2R4kkQ0QvXDLBvmX3gAaZv2XvVrZoZADOJzbNWWC6GwDEc mvXQ== X-Gm-Message-State: ALoCoQlmuzVUAAUTHO3RcBpfgIuCrjXyANpZ26qoGKTWbCibvD9gfk5tXlITdm1Lnkv6wZOZ6Ij9 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 Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linaro-kernel@lists.linaro.org, Sumit Semwal , Greg Kroah-Hartman 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> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.10.10.200321 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' 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