Kaynağa Gözat

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.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Jerome Glisse 15 yıl önce
ebeveyn
işleme
4fa07bf146
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      drivers/gpu/drm/radeon/radeon_drv.c

+ 2 - 0
drivers/gpu/drm/radeon/radeon_drv.c

@@ -216,6 +216,7 @@ static struct drm_driver driver_old = {
 		 .mmap = drm_mmap,
 		 .mmap = drm_mmap,
 		 .poll = drm_poll,
 		 .poll = drm_poll,
 		 .fasync = drm_fasync,
 		 .fasync = drm_fasync,
+		 .read = drm_read,
 #ifdef CONFIG_COMPAT
 #ifdef CONFIG_COMPAT
 		 .compat_ioctl = radeon_compat_ioctl,
 		 .compat_ioctl = radeon_compat_ioctl,
 #endif
 #endif
@@ -304,6 +305,7 @@ static struct drm_driver kms_driver = {
 		 .mmap = radeon_mmap,
 		 .mmap = radeon_mmap,
 		 .poll = drm_poll,
 		 .poll = drm_poll,
 		 .fasync = drm_fasync,
 		 .fasync = drm_fasync,
+		 .read = drm_read,
 #ifdef CONFIG_COMPAT
 #ifdef CONFIG_COMPAT
 		 .compat_ioctl = radeon_kms_compat_ioctl,
 		 .compat_ioctl = radeon_kms_compat_ioctl,
 #endif
 #endif