From: Ilija Hadzic Subject: Re: vblank problem (and proposed fix) on crtc > 1 Date: Fri, 4 Mar 2011 19:27:37 -0600 (CST) Message-ID: References: <1299251679.14068.83.camel@thor.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from ihemail4.lucent.com (ihemail4.lucent.com [135.245.0.39]) by gabe.freedesktop.org (Postfix) with ESMTP id 87BB49E70A for ; Fri, 4 Mar 2011 17:27:40 -0800 (PST) Received: from umail.lucent.com (h135-3-40-63.lucent.com [135.3.40.63]) by ihemail4.lucent.com (8.13.8/IER-o) with ESMTP id p251RbY6000904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 4 Mar 2011 19:27:38 -0600 (CST) Received: from umail-ce2 (umail-ce2 [135.3.40.63]) by umail.lucent.com (8.13.8/TPES) with ESMTP id p251Rbep007756 for ; Fri, 4 Mar 2011 19:27:37 -0600 (CST) In-Reply-To: <1299251679.14068.83.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: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org (this is a cumulative response to all comments that came in on this thread). My opinion is that extending the existing ioctl is better than introducing the new one given that they will be doing the same thing. Also there are fewer kernel changes so it's safer (it opens fewer opportunities to screw up and it will be easier to review and vet the changes). We probably shouldn't start the new vs. not-new ioctl debate, since even those who advocate the former seem to agree that my proposal is a pragmatic one. I agree that it is not a good idea to "spam" the old kernel with 'unsupported type value', so I'll add a hook to the DDX to check the version and not issue the ioctl at all if it is requested on a higher CRTC. I think that's better than falling back to the old style and issuing the system call on (potentially wrong) CRTC #1 because that can block the application (and I'd rather see it proceed without attempting vblank synchronization, then block). I'll modify my patches to include the above stated check and retest when I get a little time and post them to this list. In the meantime, if anyone wants to venture into using the patches as I sent yesterday, please report the experience. On my end things seem to be working well, my specific problems are solved and it doesn't look like I broke anything, but more ppl. test, the better. That will take care of ATI DDX and general support in DRM; I presume that someone will follow up on other DDXs (I only deal with Radeon GPUs at the moment, so I am not familiar with other DDXs). -- Ilija