From patchwork Tue Sep 4 08:22:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 11160 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 751A923F70 for ; Tue, 4 Sep 2012 08:23:07 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 57F98A187FF for ; Tue, 4 Sep 2012 08:22:17 +0000 (UTC) Received: by iafj25 with SMTP id j25so7997659iaf.11 for ; Tue, 04 Sep 2012 01:23:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to :date:message-id:x-mailer:in-reply-to:references :x-originalarrivaltime:cc: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:sender:errors-to:x-gm-message-state; bh=4PEEDRIEFtKlkS0HQSp10MYNryv9t7qQCTOeVeg8HPk=; b=AIPJ7Ajb2OlWxvaSzbncAfgm1l6l2/SsuKhHXic20LOSksMnkAoRTn89eKsDSe6kmF AMlkKoHXfglrMOih/c+NjLTWyZx7ROZSzJubupjNW3Y5gKSIGkiERnCMFbALagd07xmS Hg6VNKiQdyIeym+jnTmksoqlpEMp8iY7yXwr8t82KTw74y08g4Fm3vDwf22hF5CJWi98 m78Zu1qgJWAHjTWOT5CLUVCCbouImOIeXoy3mIyzw2KeMdr7pM4wBLix3Wv6qYUlrEyq 2w8DVKCzrhQelwauam4e1N9jYe+UsN3YanGhxhJHXf8xLrbHivFYkjI8xWS8saCOTxxg wjBw== Received: by 10.50.191.227 with SMTP id hb3mr3183121igc.43.1346746986332; Tue, 04 Sep 2012 01:23:06 -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.50.184.232 with SMTP id ex8csp175918igc; Tue, 4 Sep 2012 01:23:05 -0700 (PDT) Received: by 10.204.154.211 with SMTP id p19mr8018753bkw.12.1346746984127; Tue, 04 Sep 2012 01:23:04 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id im19si10265234bkc.112.2012.09.04.01.23.01; Tue, 04 Sep 2012 01:23:04 -0700 (PDT) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T8oPU-0005JR-Hf; Tue, 04 Sep 2012 08:23:00 +0000 Received: from na3sys009aog111.obsmtp.com ([74.125.149.205]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T8oPS-0005JB-Pt for linaro-mm-sig@lists.linaro.org; Tue, 04 Sep 2012 08:22:59 +0000 Received: from MSI-MTA.marvell.com ([65.219.4.132]) (using TLSv1) by na3sys009aob111.postini.com ([74.125.148.12]) with SMTP ID DSNKUEW6X6Vr/5TqkoHnWJl+QbFb5u+c2mg6@postini.com; Tue, 04 Sep 2012 01:22:58 PDT Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 4 Sep 2012 01:22:19 -0700 Received: from localhost (unknown [10.26.128.111]) by maili.marvell.com (Postfix) with ESMTP id F1CF14E522; Tue, 4 Sep 2012 01:22:18 -0700 (PDT) From: Zhangfei Gao To: Rebecca Schultz Zavin , "linaro-mm-sig@lists.linaro.org" , Haojian Zhuang Date: Tue, 4 Sep 2012 16:22:13 +0800 Message-Id: <1346746935-1149-2-git-send-email-zhangfei.gao@marvell.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1346746935-1149-1-git-send-email-zhangfei.gao@marvell.com> References: <1346746935-1149-1-git-send-email-zhangfei.gao@marvell.com> X-OriginalArrivalTime: 04 Sep 2012 08:22:19.0209 (UTC) FILETIME=[66621390:01CD8A76] Cc: Zhangfei Gao Subject: [Linaro-mm-sig] [PATCH v2 1/3] gpu: ion: update carveout_heap_ops X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQlcHuvELB+9M9hakHfGDOf5zQreg10gwqKVfSYdWOBY6xwz1FYAttcWSTRnOtGc2PM8+7N/ ion_device_add_heap fail without map_dma & unmap_dma Signed-off-by: Zhangfei Gao --- drivers/gpu/ion/ion_carveout_heap.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/ion/ion_carveout_heap.c b/drivers/gpu/ion/ion_carveout_heap.c index 5b6255b..13f6e8d 100644 --- a/drivers/gpu/ion/ion_carveout_heap.c +++ b/drivers/gpu/ion/ion_carveout_heap.c @@ -145,6 +145,8 @@ static struct ion_heap_ops carveout_heap_ops = { .map_user = ion_carveout_heap_map_user, .map_kernel = ion_carveout_heap_map_kernel, .unmap_kernel = ion_carveout_heap_unmap_kernel, + .map_dma = ion_carveout_heap_map_dma, + .unmap_dma = ion_carveout_heap_unmap_dma, }; struct ion_heap *ion_carveout_heap_create(struct ion_platform_heap *heap_data)