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: 38638 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 55D54202DB for ; Fri, 10 Oct 2014 20:09:27 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id b15sf2603098eek.4 for ; Fri, 10 Oct 2014 13:09:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=OjSTfCoDgip9AudLnLbynF+iw4wuKbk+mH9yiJH2wM8=; b=GkQ6CtrpbBjcewBXQPfhEeTHTz2G009RJ+5cdJbmYOVvm60bwy1JVx80uf9lRdyQnF tak3L1A6CZ19cxVDHUofN5v84Cst5Au9GHgS3nYHYcqxC9OPmKEYa/vp2GsOLw/V/tda btkqHlYIR+7k5ZuFOrLlsSIypnlAgWLVmON1kjf+p4HY00M9Y4KBHCeqy1Co2kcfuDBZ ej+Vv1BqjaoKY4tzmGBy18Li04qcyjvzvKuko3jcuuTQL56+Q9H70AGcAvH1VdK1Wod8 ALFnwXKT0vGdoJ/hzbvnkAJHsOcU/SCcvPGwhBHxI8+m1b1WTfElT6vGE750FbURr63X tkiA== X-Gm-Message-State: ALoCoQmWIeROqsbnjxLkDkMJArw/8p1cJDDYae56BLQDolqlX/cHOeS5Ala13TasJ0mj+HVJAyjx X-Received: by 10.112.104.4 with SMTP id ga4mr1023365lbb.11.1412971766119; Fri, 10 Oct 2014 13:09:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.70 with SMTP id q6ls318641lah.62.gmail; Fri, 10 Oct 2014 13:09:25 -0700 (PDT) X-Received: by 10.112.201.72 with SMTP id jy8mr7238070lbc.78.1412971765919; Fri, 10 Oct 2014 13:09:25 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by mx.google.com with ESMTPS id xx3si10783389lbb.122.2014.10.10.13.09.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Oct 2014 13:09:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id pn19so3996111lab.14 for ; Fri, 10 Oct 2014 13:09:25 -0700 (PDT) X-Received: by 10.112.52.165 with SMTP id u5mr7112577lbo.80.1412971765778; Fri, 10 Oct 2014 13:09:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp492867lbz; Fri, 10 Oct 2014 13:09:24 -0700 (PDT) X-Received: by 10.69.18.235 with SMTP id gp11mr7534958pbd.89.1412971762560; Fri, 10 Oct 2014 13:09:22 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si4625350pdr.83.2014.10.10.13.09.21 for ; Fri, 10 Oct 2014 13:09:22 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755253AbaJJUJA (ORCPT + 27 others); Fri, 10 Oct 2014 16:09:00 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:42105 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755121AbaJJUI4 (ORCPT ); Fri, 10 Oct 2014 16:08:56 -0400 Received: by mail-pd0-f178.google.com with SMTP id y10so2270833pdj.9 for ; Fri, 10 Oct 2014 13:08:56 -0700 (PDT) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sumit.semwal@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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