From patchwork Tue May 31 14:33:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9144961 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 0E6AE60752 for ; Tue, 31 May 2016 14:33:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 001742012F for ; Tue, 31 May 2016 14:33:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E902327811; Tue, 31 May 2016 14:33:47 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 8776B2012F for ; Tue, 31 May 2016 14:33:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 986D56E3AB; Tue, 31 May 2016 14:33:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.161.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id E89AE6E3AA for ; Tue, 31 May 2016 14:33:28 +0000 (UTC) Received: by mail-yw0-f194.google.com with SMTP id y6so19055607ywe.0 for ; Tue, 31 May 2016 07:33:28 -0700 (PDT) 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=e4aFY0CQQd/CEQiAH0ku2MIur6jGWS7StlCGxlYlVUE=; b=WjOD4mtZpmq4yPlGi1/xx4uA0WBpsCAOFSYFNhS2/byXXbZhdgjT+LXmzgCzg7Pk9U OH92QeLvfQJMXGTGGxgkwaE3yUyjY2YNYfMBYIdeAOrsh+ITBjhvevqW1BPQJNq+EaCP oDR1gXzKjxOWptGzZ4+ACf1mL43tVGHuU7Mk22Zs6JiwetYpGlSSUaCy1cT1AUtCoJmA YQi5S1l0m72kuALU0UGWF31RpoDDc/67qb6MJfwK8mgoii9TFi8vzhfU03b5PzdA5xCV FcfwbeTZPVWLM8UxCOxhCyiNJYu2PmFUzukmzTdrLj+93G8pw1ZIKeS8qirsfquK7Omn RI7g== X-Gm-Message-State: ALyK8tJstuk4jlA5kTYsHd+408Q+RblkIe5iug1Fwue2wdAE+r4+hSCTC4c4LOrdDRXCzw== X-Received: by 10.13.243.5 with SMTP id c5mr22556937ywf.40.1464705207701; Tue, 31 May 2016 07:33:27 -0700 (PDT) Received: from jade.localdomain ([201.82.24.203]) by smtp.gmail.com with ESMTPSA id o134sm16522659ywd.53.2016.05.31.07.33.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 07:33:27 -0700 (PDT) From: Gustavo Padovan To: Sumit Semwal Subject: [PATCH 2/2] dma-buf/sync_file: improve Kconfig description for Sync Files Date: Tue, 31 May 2016 11:33:16 -0300 Message-Id: <1464705196-24369-2-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464705196-24369-1-git-send-email-gustavo@padovan.org> References: <1464705196-24369-1-git-send-email-gustavo@padovan.org> Cc: Dave Jones , Gustavo Padovan , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan We've got a complaint saying that the description was quite obtuse and indeed it was. This patch tries to improve it. Cc: Dave Jones Signed-off-by: Gustavo Padovan --- drivers/dma-buf/Kconfig | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig index 9824bc4..7e2d2c4 100644 --- a/drivers/dma-buf/Kconfig +++ b/drivers/dma-buf/Kconfig @@ -1,11 +1,20 @@ menu "DMABUF options" config SYNC_FILE - bool "sync_file support for fences" + bool "Explicit Synchronization Framework" default n select ANON_INODES select DMA_SHARED_BUFFER ---help--- - This option enables the fence framework synchronization to export - sync_files to userspace that can represent one or more fences. + The Sync File Framework adds explicit syncronization via + userspace. It enables send/receive 'struct fence' objects to/from + userspace via Sync File fds for synchronization between drivers via + userspace components. It has been ported from Android. + + The first and main user for this is graphics in which a fence is + associated with a buffer. When a job is submitted to the GPU a fence + is attached to the buffer and is transfered via userspace, using Sync + Files fds, to the DRM driver for example. More details at + Documentation/sync_file.txt. + endmenu