From: Ilija Hadzic Subject: Re: [PATCH] kernel/drm: vblank wait on crtc > 1 Date: Tue, 22 Mar 2011 08:43:26 -0500 (CDT) Message-ID: References: <1300792324.3476.23.camel@thor.local> <1300793231.3476.37.camel@thor.local> Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1144747756-1300801406=:16791" Return-path: Received: from ihemail2.lucent.com (ihemail2.lucent.com [135.245.0.35]) by gabe.freedesktop.org (Postfix) with ESMTP id DF1BE9E819 for ; Tue, 22 Mar 2011 06:43:31 -0700 (PDT) In-Reply-To: <1300793231.3476.37.camel@thor.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Michel =?ISO-8859-1?Q?D=E4nzer?= Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1144747756-1300801406=:16791 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Sorry about overseeing additional comments. It definitely wasn't=20 intentional. On Tue, 22 Mar 2011, Michel [ISO-8859-1] D=E4nzer wrote: >> >> If _DRM_VBLANK_HIGH_CRTC_MASK were included in _DRM_VBLANK_FLAGS_MASK >> (or _DRM_VBLANK_TYPES_MASK, but that would make less sense), these >> changes shouldn't be necessary. >> >> HIGH_CRTC does not logically belong either flags nor types, but it's a=20 third thing and hence the separate mask. If I stashed it under either,=20 then this would really be an "abuse" (as Jesse nicely put it) of an=20 existing ioctl. This way it is just adding a new bit section/mask to a=20 filed that already has multiple of them. >> I'd suggest making _DRM_VBLANK_HIGH_CRTC_SHIFT either 21 (so >> _DRM_VBLANK_HIGH_CRTC_MASK is adjacent to _DRM_VBLANK_EVENT) or much >> lower, say 8 or even 4, as the flags are more likely to get extended >> than the types, if history is any indication. >> I can't have an opinion on that because I wasn't around (at least not in=20 the graphics subsystem world) to see the historic development of this=20 ioctl. However, I'd say that the motivation is rather speculative. However, from pragmatic angle, at this point the change is already in (it= =20 was in drm-core-next, last time in checked) and it is probably not a good= =20 idea to shift things around and thus potentially create multiple=20 incompatible combinations of user spaces and kernels (even if they are=20 just test builds). Especially that the suggestion is based more on what=20 *may* happen in the future evolution of this ioctl rather than some=20 funamental problem. Furthermore, we have heard on the list that at the end= =20 of the day, the "evolution" of this ioctl will be the basis for (later)=20 redesigning the new one and getting it better in many other aspects. If=20 that's indeed so, that's even less of a motivation to split hair. Unless I hear strong voice from others on the list to change the position= =20 of HIGH_CRTC mask, I am reluctant to touch it at this point. >> Also, >> >> #define _DRM_VBLANK_HIGH_CRTC_MASK (0x1F << _DRM_VBLANK_HIGH_CRTC_SHIFT) >> >> would make it obvious how these values are related and decrease the >> likelihood of divergence during development of the patch. > I agree, it's a "cosmetic" change, though, but it indeed improves the code= =20 readibility/maintainability, so I will submit a follow-up patch (again,=20 when I get some spare time to attend to this, given my day-job=20 engagements). > [...] > >>>> @@ -753,6 +755,7 @@ struct drm_event_vblank { >>>> }; >>>> >>>> #define DRM_CAP_DUMB_BUFFER 0x1 >>>> +#define DRM_CAP_HIGH_CRTC 0x2 >>> >>> Seems like a rather generic name, something like >>> DRM_CAP_VBLANK_HIGH_CRTC might be better. > will be in the follow-up patch mentioned above. ---559023410-1144747756-1300801406=:16791 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel ---559023410-1144747756-1300801406=:16791--