From: Ilija Hadzic Subject: Re: [PATCH] xf86-video-ati: vblank wait on crtc > 1 Date: Tue, 22 Mar 2011 11:10:28 -0500 (CDT) Message-ID: References: <1300793415.3476.40.camel@thor.local> <1300803833.3522.18.camel@thor.local> <1300808587.3522.51.camel@thor.local> Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1691952160-1300809590=:16791" Return-path: Received: from ihemail1.lucent.com (ihemail1.lucent.com [135.245.0.33]) by gabe.freedesktop.org (Postfix) with ESMTP id 47C279E94B for ; Tue, 22 Mar 2011 09:10:36 -0700 (PDT) In-Reply-To: <1300808587.3522.51.camel@thor.local> Content-ID: 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-1691952160-1300809590=:16791 Content-Type: TEXT/PLAIN; CHARSET=X-UNKNOWN; FORMAT=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: On Tue, 22 Mar 2011, Michel [ISO-8859-1] D=E4nzer wrote: > > Not calling the ioctl doesn't imply returning immediately. > > Your changes only fix the bug you found (the X radeon driver calls the > ioctl when that doesn't make sense) when both the kernel and X driver > are updated, but it would be possible to also fix it when only the X > driver is updated. > At the risk of being called ignorant, I'll admit that I don't know how to= =20 fix it when only DDX is updated; at least not without introducing too much= =20 of the new stuff and even then, it won't be done right because for a=20 process to properly wait on vblank it must cross into the kernel because=20 that's where the vblank interrupts from the hardware are coming in. If it does not return immediately, then what is the process going to wait= =20 on if glxSwap is called and DDX realizes that it does not want to call the= =20 ioctl ? Does it just sleep ? For how long ? Do we need to fake out vblank= =20 sequence numbers and/or timestamps ? If you have a good idea, I'll listen, I'll try to understand, and I can=20 look into implementing it in the next iteration. However, that should not= =20 be the reason for delaying this fix. There are multi-screen applications=20 (including mine) that need proper functionality on higher-numbered CRTCs. > Then I suppose applying this patch is rock bottom of my priority list... > But, as it seems you'd rather argue in your changes than adjust them to > reviews, I can also just fix this part up after it goes in in the worst > case. > Deciding which patch to apply based on emotions does not serve good to=20 anybody, so let's "reboot" ourselves on this particular item. I am not arguing in my changes, I am just saying that formatting the log=20 message (where both formats are perfectly legitimate and it's only a=20 matter of taste) is something that can go in later and either I can submit= =20 the follow-up patch next time something else is in the file is changed or= =20 anyone else can change it to the taste (including you).... and if it's=20 changed I definitely won't argue it back because it won't be worth it. -- Ilija ---559023410-1691952160-1300809590=: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-1691952160-1300809590=:16791--