Skip to contentSkip to conversation

drm/radeon: async event synchronization for drmWaitVblank

PATCH In review Jerome Glisse 3 participants 3 messages May 6, 2010 – May 7, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon: async event synchronization for drmWaitVblank

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.

---
 drivers/gpu/drm/radeon/radeon_drv.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_drv.c +2 -0
index 4b05563..b3749d4 100644
@@ -216,6 +216,7 @@ static struct drm_driver driver_old = {
 		 .mmap = drm_mmap,
 		 .poll = drm_poll,
 		 .fasync = drm_fasync,
+		 .read = drm_read,
 #ifdef CONFIG_COMPAT
 		 .compat_ioctl = radeon_compat_ioctl,
 #endif
@@ -304,6 +305,7 @@ static struct drm_driver kms_driver = {
 		 .mmap = radeon_mmap,
 		 .poll = drm_poll,
 		 .fasync = drm_fasync,
+		 .read = drm_read,
 #ifdef CONFIG_COMPAT
 		 .compat_ioctl = radeon_kms_compat_ioctl,
 #endif
Signature · 1 line
1.7.0.1
#1 lore raw
Quoted 23 lines · Jerome Glisse

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.

---
 drivers/gpu/drm/radeon/radeon_drv.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_drv.c +1 -0
index 4b05563..b3749d4 100644
@@ -216,6 +216,7 @@ static struct drm_driver driver_old = {
 		 .mmap = drm_mmap,
 		 .poll = drm_poll,
 		 .fasync = drm_fasync,
+		 .read = drm_read,
 #ifdef CONFIG_COMPAT
 		 .compat_ioctl = radeon_compat_ioctl,
 #endif

drivers/gpu/drm/radeon/radeon_drv.c static struct drm_driver kms_driver = { · line 311

Quoted 7 lines
drivers/gpu/drm/radeon/radeon_drv.c +1 -0
@@ -304,6 +305,7 @@ static struct drm_driver kms_driver = {
 		 .mmap = radeon_mmap,
 		 .poll = drm_poll,
 		 .fasync = drm_fasync,
+		 .read = drm_read,
 #ifdef CONFIG_COMPAT
 		 .compat_ioctl = 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.

Signature · 6 lines
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
Quoted 27 lines · Michel Dänzer
Quoted 26 lines · Jerome Glisse

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.

---
 drivers/gpu/drm/radeon/radeon_drv.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_drv.c +1 -0
index 4b05563..b3749d4 100644
@@ -216,6 +216,7 @@ static struct drm_driver driver_old = {
 		 .mmap = drm_mmap,
 		 .poll = drm_poll,
 		 .fasync = drm_fasync,
+		 .read = drm_read,
 #ifdef CONFIG_COMPAT
 		 .compat_ioctl = radeon_compat_ioctl,
 #endif
@@ -304,6 +305,7 @@ static struct drm_driver kms_driver = {
 		 .mmap = radeon_mmap,
 		 .poll = drm_poll,
 		 .fasync = drm_fasync,
Quoted 9 lines

drivers/gpu/drm/radeon/radeon_drv.c static struct drm_driver kms_driver = { · line 311

Quoted 4 lines
drivers/gpu/drm/radeon/radeon_drv.c +1 -0
+		 .read = drm_read,
 #ifdef CONFIG_COMPAT
 		 .compat_ioctl = 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