From patchwork Fri Apr 15 01:29:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 8844151 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5B1889F71A for ; Fri, 15 Apr 2016 01:30:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 91866202EB for ; Fri, 15 Apr 2016 01:29:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 63A702034C for ; Fri, 15 Apr 2016 01:29:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 90BA06EB61; Fri, 15 Apr 2016 01:29:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5AE2F6EB59 for ; Fri, 15 Apr 2016 01:29:53 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id fs9so31279944pac.2 for ; Thu, 14 Apr 2016 18:29:53 -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=OYouUQYiRX5AUedVEagNnmQ12Vnxmmy5LMeHUMZ8PS8=; b=cbGBpi6JsIaMOahdusm/o+x6vMClqdQDQly5T5z2Q6LfWk5Flpzb19aW4PS2eWAkWu 2Iqa9tKkkXyc6fU30utK8ShEDHw6C6pkJya1pF+9VD2/cL3s2UZYtyPw/xPBF2KCkmAA YRda2ZCKT1yjk0fUEfEPyz3rVVYUVKc7NqltYgu8GgeECpDjvW7RZkfRCvIZ5QUiMkPE dvj9/Gr0coacAJKJmYgXixitc7M/HIc1LIGlxQkHEyOz22AB62xJDKV0M/MFcC8nghrg lC8Lh19UOaJmKPYWRA9X/wHsIxn0Unw7iSNj0SlU7KP9cOfgR4LcbIFLRYm4WHZUnr6X T6SA== X-Gm-Message-State: AOPr4FVqDI1MvBcKcugjDxIQ0SZKNwzgw4RikBUquF/pkr6ys0I1G+9Pm8ZpSq3sWjnUrw== X-Received: by 10.66.123.105 with SMTP id lz9mr25664579pab.37.1460683792730; Thu, 14 Apr 2016 18:29:52 -0700 (PDT) Received: from jade.localdomain (c-73-241-147-137.hsd1.ca.comcast.net. [73.241.147.137]) by smtp.gmail.com with ESMTPSA id 132sm10740538pfw.35.2016.04.14.18.29.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Apr 2016 18:29:52 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [RFC 6/8] drm/fence: create DRM_MODE_ATOMIC_OUT_FENCE flag Date: Thu, 14 Apr 2016 18:29:39 -0700 Message-Id: <1460683781-22535-7-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1460683781-22535-1-git-send-email-gustavo@padovan.org> References: <1460683781-22535-1-git-send-email-gustavo@padovan.org> Cc: marcheu@google.com, Daniel Stone , seanpaul@google.com, Daniel Vetter , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , linux-kernel@vger.kernel.org, Riley Andrews , laurent.pinchart@ideasonboard.com, Gustavo Padovan , John Harrison , m.chehab@samsung.com 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-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan This flag tells drm_atomic_ioctl that we want to get a per-crtc out-fence fd back. Signed-off-by: Gustavo Padovan --- include/uapi/drm/drm_mode.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index 7a7856e..39905cc 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h @@ -582,13 +582,15 @@ struct drm_mode_destroy_dumb { #define DRM_MODE_ATOMIC_TEST_ONLY 0x0100 #define DRM_MODE_ATOMIC_NONBLOCK 0x0200 #define DRM_MODE_ATOMIC_ALLOW_MODESET 0x0400 +#define DRM_MODE_ATOMIC_OUT_FENCE 0x0800 #define DRM_MODE_ATOMIC_FLAGS (\ DRM_MODE_PAGE_FLIP_EVENT |\ DRM_MODE_PAGE_FLIP_ASYNC |\ DRM_MODE_ATOMIC_TEST_ONLY |\ DRM_MODE_ATOMIC_NONBLOCK |\ - DRM_MODE_ATOMIC_ALLOW_MODESET) + DRM_MODE_ATOMIC_ALLOW_MODESET |\ + DRM_MODE_ATOMIC_OUT_FENCE) struct drm_mode_atomic { __u32 flags;