From patchwork Wed Mar 20 17:33:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 15442 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 431F923E3E for ; Wed, 20 Mar 2013 17:34:18 +0000 (UTC) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by fiordland.canonical.com (Postfix) with ESMTP id 3CC73A18C8D for ; Wed, 20 Mar 2013 17:34:17 +0000 (UTC) Received: by mail-ve0-f171.google.com with SMTP id b10so1642857vea.16 for ; Wed, 20 Mar 2013 10:34:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:date:message-id:x-mailer :in-reply-to:references:subject:x-beenthere:x-mailman-version :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-gm-message-state; bh=8MVQtZnSj2Mpod3UL0QuhvH1Fm/v6MA39Wj3oluDBRg=; b=oH+Ww5+zsywGAW0k824iuT5bH+FHmT6aax47MVRTjXAnhznSKEoxrH18VRqjmCyasL 4OWJKp2ZlvlWsrK/SM0Zs/Fm6DUyGWtVV202VRhXf67VIjGDKBdR/mpKIH0kROkqCz5o VkZ/djtyTHxfkMhY9UrQ2EZNJYcMEyPBSggjfxOBvdVUIOYZN/5tYmZbMJyFvDnHFtYn DbQFM5bSXN70UJxxgdaraqo7EwpXzk5VNISpv04eVa4BgcRuCkPNMVA9N8EOrbopCWf0 IYIb6lJoAJTh/QgVn+hhA8Fbb2Zd1tAZxVnBU8juwBeRl1/ovKSGM7Xb2T0BPRQ0Zu2C lz5w== X-Received: by 10.220.154.199 with SMTP id p7mr9159829vcw.46.1363800856676; Wed, 20 Mar 2013 10:34:16 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.233.198 with SMTP id ty6csp23752vec; Wed, 20 Mar 2013 10:34:16 -0700 (PDT) X-Received: by 10.14.215.193 with SMTP id e41mr74019565eep.32.1363800852784; Wed, 20 Mar 2013 10:34:12 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id t43si3877528eeg.130.2013.03.20.10.34.02 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 20 Mar 2013 10:34:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1UIMtd-0002g3-85; Wed, 20 Mar 2013 17:33:53 +0000 Received: from mail-wg0-f45.google.com ([74.125.82.45]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1UIMtb-0002fX-FJ for linaro-mm-sig@lists.linaro.org; Wed, 20 Mar 2013 17:33:51 +0000 Received: by mail-wg0-f45.google.com with SMTP id dq12so1603572wgb.24 for ; Wed, 20 Mar 2013 10:33:52 -0700 (PDT) X-Received: by 10.194.176.165 with SMTP id cj5mr6246054wjc.37.1363800832193; Wed, 20 Mar 2013 10:33:52 -0700 (PDT) Received: from lmenx321.lme.st.com (lya72-2-88-175-155-153.fbx.proxad.net. [88.175.155.153]) by mx.google.com with ESMTPS id c15sm4556331wiw.3.2013.03.20.10.33.51 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 20 Mar 2013 10:33:51 -0700 (PDT) From: Benjamin Gaignard To: linaro-mm-sig@lists.linaro.org, rebecca@android.com Date: Wed, 20 Mar 2013 18:33:34 +0100 Message-Id: <1363800815-2955-3-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1363800815-2955-1-git-send-email-benjamin.gaignard@linaro.org> References: <1363800815-2955-1-git-send-email-benjamin.gaignard@linaro.org> Subject: [Linaro-mm-sig] [PATCH v9 2/3] gpu: ion: add private field in ion_heap and ion_platform_heap structure X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Unified memory management interest group." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-mm-sig-bounces@lists.linaro.org Sender: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQlbh1NaGQmiF+mNeW1nt1p7tW1QklNsdUUyB/unkHwbWvW/XN2rCD70SC1k4cfh7hnxG3VC copy private field from platform configuration to internal heap structure. Signed-off-by: Benjamin Gaignard --- drivers/gpu/ion/ion_heap.c | 1 + drivers/gpu/ion/ion_priv.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/ion/ion_heap.c b/drivers/gpu/ion/ion_heap.c index 225ef94..3ec6357 100644 --- a/drivers/gpu/ion/ion_heap.c +++ b/drivers/gpu/ion/ion_heap.c @@ -162,6 +162,7 @@ struct ion_heap *ion_heap_create(struct ion_platform_heap *heap_data) heap->name = heap_data->name; heap->id = heap_data->id; + heap->priv = heap_data->priv; return heap; } diff --git a/drivers/gpu/ion/ion_priv.h b/drivers/gpu/ion/ion_priv.h index 50568147..c79a942 100644 --- a/drivers/gpu/ion/ion_priv.h +++ b/drivers/gpu/ion/ion_priv.h @@ -132,6 +132,7 @@ struct ion_heap_ops { * @task: task struct of deferred free thread * @debug_show: called when heap debug file is read to add any * heap specific debug info to output + * @priv: heap private data * * Represents a pool of memory from which buffers can be made. In some * systems the only heap is regular system memory allocated via vmalloc. @@ -151,6 +152,7 @@ struct ion_heap { wait_queue_head_t waitqueue; struct task_struct *task; int (*debug_show)(struct ion_heap *heap, struct seq_file *, void *); + void *priv; }; /**