linux/include/drm
Arnd Bergmann 58374713c9 drm: kill BKL from common code
This restricts the use of the big kernel lock to the i830 and i810
device drivers. The three remaining users in common code (open, ioctl
and release) get converted to a new mutex, the drm_global_mutex,
making the locking stricter than the big kernel lock.

This may have a performance impact, but only in those cases that
currently don't use DRM_UNLOCKED flag in the ioctl list and would
benefit from that anyway.

The reason why i810 and i830 cannot use drm_global_mutex in their
mmap functions is a lock-order inversion problem between the current
use of the BKL and mmap_sem in these drivers. Since the BKL has
release-on-sleep semantics, it's harmless but it would cause trouble
if we replace the BKL with a mutex.

Instead, these drivers get their own ioctl wrappers that take the
BKL around every ioctl call and then set their own handlers as
DRM_UNLOCKED.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-05 11:54:40 +10:00
..
i2c drm: Import driver for the sil164 I2C TMDS transmitter. 2010-08-02 10:21:13 +10:00
ttm drm: move ttm global code to core drm 2010-08-04 09:46:06 +10:00
Kbuild Merge remote branch 'korg/drm-vmware-staging' into drm-core-next 2009-12-18 09:53:50 +10:00
drm.h drm: move ttm global code to core drm 2010-08-04 09:46:06 +10:00
drmP.h drm: kill BKL from common code 2010-08-05 11:54:40 +10:00
drm_buffer.h drm: Add generic multipart buffer. 2010-02-23 09:46:20 +10:00
drm_cache.h
drm_core.h
drm_crtc.h drm/fbdev: fix cloning on fbcon 2010-05-18 17:40:22 +10:00
drm_crtc_helper.h drm/kms: add crtc disable function 2010-07-07 18:38:32 +10:00
drm_dp_helper.h
drm_edid.h drm_edid: There should be 6 Standard Timings 2010-05-18 15:56:14 +10:00
drm_encoder_slave.h
drm_fb_helper.h drm/fbdev: rework output polling to be back in the core. (v4) 2010-05-18 17:40:11 +10:00
drm_fixed.h drm: move radeon_fixed.h to shared drm_fixed.h header 2010-05-18 18:21:33 +10:00
drm_global.h drm: move ttm global code to core drm 2010-08-04 09:46:06 +10:00
drm_hashtab.h
drm_mem_util.h drm/ttm: use drm calloc large and free large 2010-03-15 10:31:43 +10:00
drm_memory.h
drm_mm.h drm: implement helper functions for scanning lru list 2010-07-07 12:29:51 +10:00
drm_mode.h drm: add "auto" dithering method 2010-07-21 11:19:45 +10:00
drm_os_linux.h
drm_pciids.h drm/radeon: add new pci ids 2010-08-05 08:47:00 +10:00
drm_sarea.h
drm_sman.h
drm_sysfs.h
i810_drm.h
i830_drm.h
i915_drm.h drm/i915: add HAS_BSD check to i915_getparam 2010-06-01 11:21:09 -07:00
mga_drm.h
nouveau_drm.h drm/nouveau: Add getparam for current PTIMER time. 2010-05-28 16:06:21 +10:00
r128_drm.h
radeon_drm.h drm/radeon: add basic zmask/hiz support (v4) 2010-08-02 11:54:26 +10:00
savage_drm.h
sis_drm.h
via_drm.h
vmwgfx_drm.h drm/vmwgfx: Allow userspace to change default layout. Bump minor. 2010-06-03 13:13:36 +10:00