From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752000AbcDOTF5 (ORCPT ); Fri, 15 Apr 2016 15:05:57 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36720 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbcDOTF4 (ORCPT ); Fri, 15 Apr 2016 15:05:56 -0400 Date: Fri, 15 Apr 2016 12:05:53 -0700 From: Gustavo Padovan To: Rob Clark Cc: "dri-devel@lists.freedesktop.org" , Linux Kernel Mailing List , Daniel Stone , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Riley Andrews , Daniel Vetter , Greg Hackmann , John Harrison , Laurent Pinchart , Sean Paul , =?iso-8859-1?Q?St=E9phane?= Marchesin , Mauro Carvalho Chehab , Maarten Lankhorst , Gustavo Padovan Subject: Re: [RFC 6/8] drm/fence: create DRM_MODE_ATOMIC_OUT_FENCE flag Message-ID: <20160415190553.GE23954@joana> Mail-Followup-To: Gustavo Padovan , Rob Clark , "dri-devel@lists.freedesktop.org" , Linux Kernel Mailing List , Daniel Stone , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Riley Andrews , Daniel Vetter , Greg Hackmann , John Harrison , Laurent Pinchart , Sean Paul , =?iso-8859-1?Q?St=E9phane?= Marchesin , Mauro Carvalho Chehab , Maarten Lankhorst , Gustavo Padovan References: <1460683781-22535-1-git-send-email-gustavo@padovan.org> <1460683781-22535-7-git-send-email-gustavo@padovan.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2016-04-14 Rob Clark : > On Thu, Apr 14, 2016 at 9:29 PM, Gustavo Padovan wrote: > > 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) > > just to be pedantic / bisectable, perhaps this should be squashed in > to patch that actually starts using this flag? Otherwise there is an > intermediate state in git where the flag is accepted but ignored.. Sure, I totally agree. Gustavo