From patchwork Fri Jun 19 13:52:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 50111 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2609722903 for ; Fri, 19 Jun 2015 13:52:51 +0000 (UTC) Received: by lagh6 with SMTP id h6sf29599928lag.0 for ; Fri, 19 Jun 2015 06:52:50 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=6svAv/8n8mCgFK9T6ZC6ZJg2Z6Qh/a5L2TvBASTZvc4=; b=g2KsGKwC6Bo7JNwySCE6lMhBTzrRgKPvUy61yanOJwZWO3UmTxypebKVyv+5sOVZIz /DrsIdkkZRhmfCcCJnDF0wX3p5RQ46BvJ3hdPOVAjiOCjaq4kaLmn0ULLFz2PadFidVE QKhFywwHI+njf3L8seuXO+XaQoJFfE42hI3qSPgiNAL1e0cSfbl59UzrM3ZHHPUrYXaO MVH3UdOaOZxClqelH6NS7VkSMbF0xhnUHxfmDsonCG4ZNjKGKzfceunBZL0IBsSXzrpJ +n10AwAUw1RSDjAgaa6i+bN3yJqWf69P4opWf28P18rwBt/lAbWyTZ9t/+xmpQra4j6N 0sWQ== X-Gm-Message-State: ALoCoQmu/ub0MPQjerVRRoM53iHkU3FSjoB0VC43LyF90WC9LZ4M7UUdhOvUA+je1sagyLAbYVaJ X-Received: by 10.112.219.200 with SMTP id pq8mr15267710lbc.7.1434721970084; Fri, 19 Jun 2015 06:52:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.100 with SMTP id z4ls521754laz.57.gmail; Fri, 19 Jun 2015 06:52:49 -0700 (PDT) X-Received: by 10.112.12.102 with SMTP id x6mr10987696lbb.80.1434721969945; Fri, 19 Jun 2015 06:52:49 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id e1si9234605lam.23.2015.06.19.06.52.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jun 2015 06:52:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbbvz5 with SMTP id vz5so24529637lbb.0 for ; Fri, 19 Jun 2015 06:52:49 -0700 (PDT) X-Received: by 10.112.41.196 with SMTP id h4mr18031815lbl.36.1434721969822; Fri, 19 Jun 2015 06:52:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp609794lbb; Fri, 19 Jun 2015 06:52:49 -0700 (PDT) X-Received: by 10.194.22.105 with SMTP id c9mr17269882wjf.120.1434721967076; Fri, 19 Jun 2015 06:52:47 -0700 (PDT) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com. [209.85.212.179]) by mx.google.com with ESMTPS id z2si4781382wiy.27.2015.06.19.06.52.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jun 2015 06:52:47 -0700 (PDT) Received-SPF: pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.212.179 as permitted sender) client-ip=209.85.212.179; Received: by wiga1 with SMTP id a1so19822203wig.0 for ; Fri, 19 Jun 2015 06:52:46 -0700 (PDT) X-Received: by 10.180.77.136 with SMTP id s8mr6856918wiw.7.1434721966810; Fri, 19 Jun 2015 06:52:46 -0700 (PDT) Received: from wychelm.lan (cpc4-aztw19-0-0-cust71.18-1.cable.virginm.net. [82.33.25.72]) by mx.google.com with ESMTPSA id z9sm3855387wiv.9.2015.06.19.06.52.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jun 2015 06:52:46 -0700 (PDT) From: Daniel Thompson To: David Airlie Cc: Daniel Thompson , dri-devel@lists.freedesktop.org, Rob Clark , Benjamin Gaignard , Damien Hobson-Garcia , linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, John Stultz , Sumit Semwal Subject: [RESEND PATCH v2 v4.1-rc8 2/2] drm: prime: Document gem_prime_mmap Date: Fri, 19 Jun 2015 14:52:29 +0100 Message-Id: <1434721949-25732-3-git-send-email-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1434721949-25732-1-git-send-email-daniel.thompson@linaro.org> References: <1434721949-25732-1-git-send-email-daniel.thompson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.thompson@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.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , gem_prime_map is not currently described in the DRM manual, lets document it. Signed-off-by: Daniel Thompson --- drivers/gpu/drm/drm_prime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c index 6d2cf4fb4038..3b40a415f45d 100644 --- a/drivers/gpu/drm/drm_prime.c +++ b/drivers/gpu/drm/drm_prime.c @@ -309,7 +309,7 @@ static const struct dma_buf_ops drm_gem_prime_dmabuf_ops = { * Drivers can implement @gem_prime_export and @gem_prime_import in terms of * simpler APIs by using the helper functions @drm_gem_prime_export and * @drm_gem_prime_import. These functions implement dma-buf support in terms of - * five lower-level driver callbacks: + * six lower-level driver callbacks: * * Export callbacks: * @@ -321,6 +321,8 @@ static const struct dma_buf_ops drm_gem_prime_dmabuf_ops = { * * - @gem_prime_vunmap: vunmap a buffer exported by your driver * + * - @gem_prime_mmap (optional): mmap a buffer exported by your driver + * * Import callback: * * - @gem_prime_import_sg_table (import): produce a GEM object from another