From: Jerome Glisse Subject: Re: [PATCH] drm/radeon: async event synchronization for drmWaitVblank Date: Fri, 7 May 2010 11:50:04 +0200 Message-ID: <20100507095004.GA6017@barney.localdomain> References: <1273164734-26824-1-git-send-email-jglisse@redhat.com> <1273218732.3953.31.camel@thor.local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from protox.org (nox2.protox.org [95.130.11.66]) by gabe.freedesktop.org (Postfix) with ESMTP id 892A09E76A for ; Fri, 7 May 2010 02:50:11 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1273218732.3953.31.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: Jerome Glisse , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Fri, May 07, 2010 at 09:52:12AM +0200, Michel D=E4nzer wrote: > On Don, 2010-05-06 at 18:52 +0200, Jerome Glisse wrote: = > > Bring radeon up to speed with the async event synchronization for > > drmWaitVblank. See c9a9c5e02aedc1a2815877b0268f886d2640b771 for > > more information. Without this patch event never get delivered > > to userspace client. > > = > > Signed-off-by: Jerome Glisse > > --- > > drivers/gpu/drm/radeon/radeon_drv.c | 2 ++ > > 1 files changed, 2 insertions(+), 0 deletions(-) > > = > > diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/rade= on/radeon_drv.c > > index 4b05563..b3749d4 100644 > > --- a/drivers/gpu/drm/radeon/radeon_drv.c > > +++ b/drivers/gpu/drm/radeon/radeon_drv.c > > @@ -216,6 +216,7 @@ static struct drm_driver driver_old =3D { > > .mmap =3D drm_mmap, > > .poll =3D drm_poll, > > .fasync =3D drm_fasync, > > + .read =3D drm_read, > > #ifdef CONFIG_COMPAT > > .compat_ioctl =3D radeon_compat_ioctl, > > #endif > > @@ -304,6 +305,7 @@ static struct drm_driver kms_driver =3D { > > .mmap =3D radeon_mmap, > > .poll =3D drm_poll, > > .fasync =3D drm_fasync, > > + .read =3D drm_read, > > #ifdef CONFIG_COMPAT > > .compat_ioctl =3D radeon_kms_compat_ioctl, > > #endif > = > At least the KMS DRM minor should be bumped for this and checked by the > X driver before enabling the DRI2 functionality that needs it, otherwise > clients trying to use that functionality will hang. > = I need another interface change before using this functionality i will bump minor with the new interface i will send patch today. Cheers, Jerome