Merge remote branch 'korg/drm-fixes' into drm-vmware-next
authorDave Airlie <airlied@redhat.com>
Wed, 6 Oct 2010 01:10:48 +0000 (11:10 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Oct 2010 01:10:48 +0000 (11:10 +1000)
necessary for some of the vmware fixes to be pushed in.

Conflicts:
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/i915/intel_fb.c
include/drm/drmP.h

1  2 
MAINTAINERS
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/drm_info.c
drivers/gpu/drm/drm_vm.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_fb.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
include/drm/drmP.h

diff --cc MAINTAINERS
Simple merge
index 3ea0692ce59a984fb8e2145c15bae06386c5a93a,5663d2719063de9231ca6cc153b63b30422e17aa..ea1c4b019ebf96290c0768202d7277cda47ba0f9
@@@ -142,9 -148,12 +142,9 @@@ int drm_gem_object_init(struct drm_devi
                return -ENOMEM;
  
        kref_init(&obj->refcount);
-       kref_init(&obj->handlecount);
+       atomic_set(&obj->handle_count, 0);
        obj->size = size;
  
 -      atomic_inc(&dev->object_count);
 -      atomic_add(obj->size, &dev->object_memory);
 -
        return 0;
  }
  EXPORT_SYMBOL(drm_gem_object_init);
Simple merge
Simple merge
Simple merge
index 7dc50acd65d7698a4219d3fd325160777c10ddb2,56ad9df2ccb58925bdd74a2f3b64bac01360f562..b937ccfa7bec9a037ae7b6fddf6d635552a4aba1
@@@ -224,8 -237,12 +224,10 @@@ static void intel_fbdev_destroy(struct 
        drm_fb_helper_fini(&ifbdev->helper);
  
        drm_framebuffer_cleanup(&ifb->base);
-       if (ifb->obj)
+       if (ifb->obj) {
 -              drm_gem_object_handle_unreference(ifb->obj);
 -              drm_gem_object_unreference(ifb->obj);
++              drm_gem_object_handle_unreference_unlocked(ifb->obj);
 +              drm_gem_object_unreference_unlocked(ifb->obj);
+       }
 -
 -      return 0;
  }
  
  int intel_fbdev_init(struct drm_device *dev)
index e645f44e43020c45984e576bf64b4f767ada9a9b,a96ed6d9d010b82cfc58ed41ec6240f99d5a9103..5c845b6ec4920806b49e96d5f91c49f3f0fff511
@@@ -722,7 -796,10 +796,8 @@@ static struct drm_driver driver = 
        .irq_postinstall = vmw_irq_postinstall,
        .irq_uninstall = vmw_irq_uninstall,
        .irq_handler = vmw_irq_handler,
+       .get_vblank_counter = vmw_get_vblank_counter,
        .reclaim_buffers_locked = NULL,
 -      .get_map_ofs = drm_core_get_map_ofs,
 -      .get_reg_ofs = drm_core_get_reg_ofs,
        .ioctls = vmw_ioctls,
        .num_ioctls = DRM_ARRAY_SIZE(vmw_ioctls),
        .dma_quiescent = NULL,  /*vmw_dma_quiescent, */
index bb5c41893c00f6f31d4742cb9e6824af60d6b241,4c9461a4f9e67b4b3e67c5bb73192aed44695079..274eaaa15c36a86ee48a6b743f6c9d7cfb36b010
@@@ -1151,6 -1174,9 +1151,7 @@@ extern int drm_release(struct inode *in
  extern int drm_mmap(struct file *filp, struct vm_area_struct *vma);
  extern int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma);
  extern void drm_vm_open_locked(struct vm_area_struct *vma);
 -extern resource_size_t drm_core_get_map_ofs(struct drm_local_map * map);
 -extern resource_size_t drm_core_get_reg_ofs(struct drm_device *dev);
+ extern void drm_vm_close_locked(struct vm_area_struct *vma);
  extern unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait);
  
                                /* Memory management support (drm_memory.h) */