From patchwork Wed Jul 27 12:38:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9249763 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2FE13607D8 for ; Wed, 27 Jul 2016 12:39:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21D7726253 for ; Wed, 27 Jul 2016 12:39:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16B15271FD; Wed, 27 Jul 2016 12:39:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28FC526253 for ; Wed, 27 Jul 2016 12:39:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A50996E6C1; Wed, 27 Jul 2016 12:39:07 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id BD43C6E6B3 for ; Wed, 27 Jul 2016 12:38:38 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id x83so6257276wma.3 for ; Wed, 27 Jul 2016 05:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+FbkV9trFcNNRTrmzOkwoLRQdFND8f0vbDTsQDahB+g=; b=Bybb5GnL5JUQxp8SCWr13t83qoEW3MvKqGeYBaJymPkYCFlwOMhIVKDWc8whuThCV7 jTfyjDAMvOHk6hZtEOBFuRhGCFYBsUKP0hDYEobzJUeQqPb4qWy4It8+WcXWPHJMKV8m TJrLaGWMZqae+B9oYoCr1XxR8KEFIIyNMFKyk= 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=+FbkV9trFcNNRTrmzOkwoLRQdFND8f0vbDTsQDahB+g=; b=lWveuuATfIKDF4bIk0dvzg9ZldzCLIVFdZGWe2eGd4C6AqEWer1bIgDp/usRzrEYSU sjFFwDEzDLaHE63Zc7kzd83UYC4w30/90umeyw3//jJU/E93eGlp3uSFHeZ/vMn59ziD xu8ILWmx2GWdU+aLLf0BSjtU/Z4TPNWrkA9iO32f8RnohtqtGJxJrzKT7KOn34KoMQHC R8SgQUyALMe0OK7SQGWpoSNARplnwIf8GjhzEXmeDjZRvYBo2wohV+aNPyLNnI9L+8YI XXcT5Qsz4dUU3FquSskX47T5SOaLu8+46TjRXYKbwJdaxJA3h+E5ZD6FaXWOFujjiGxZ lUCw== X-Gm-Message-State: ALyK8tJ2iv6V3mbM2VDI7X8GIG6edKV64zLACLYjMD0NEC02TikX3nqQ7s1W0gOACxuJbA== X-Received: by 10.28.0.203 with SMTP id 194mr53630235wma.29.1469623115840; Wed, 27 Jul 2016 05:38:35 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56b5:0:ac27:b86c:7764:9429]) by smtp.gmail.com with ESMTPSA id p23sm6979002wme.8.2016.07.27.05.38.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jul 2016 05:38:35 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Wed, 27 Jul 2016 14:38:16 +0200 Message-Id: <1469623097-26044-11-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1469623097-26044-1-git-send-email-daniel.vetter@ffwll.ch> References: <1469623097-26044-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter Subject: [Intel-gfx] [PATCH i-g-t 10/11] lib: Update ioctl_wrappers functions X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP We probably should nuke a bunch of the local_ defines again ... Signed-off-by: Daniel Vetter --- lib/ioctl_wrappers.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 818853ee3951..ddd71af98e04 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -1352,6 +1352,7 @@ uint64_t gem_mappable_aperture_size(void) /** * gem_global_aperture_size: + * @fd: open i915 drm file descriptor * * Feature test macro to query the kernel for the global gpu aperture size. * This is the area available for the kernel to perform address translations. @@ -1574,6 +1575,9 @@ off_t prime_get_size(int dma_buf_fd) /** * prime_sync_start * @dma_buf_fd: dma-buf fd handle + * @write: read/write or read-only access + * + * Must be called before starting CPU mmap access to a dma-buf. */ void prime_sync_start(int dma_buf_fd, bool write) { @@ -1590,6 +1594,9 @@ void prime_sync_start(int dma_buf_fd, bool write) /** * prime_sync_end * @dma_buf_fd: dma-buf fd handle + * @write: read/write or read-only access + * + * Must be called after finishing CPU mmap access to a dma-buf. */ void prime_sync_end(int dma_buf_fd, bool write) {