android_kernel_xiaomi_sdm845/drivers/video/matrox
Krzysztof Helt 537a1bf059 fbdev: add mutex for fb_mmap locking
Add a mutex to avoid a circular locking problem between the mm layer
semaphore and fbdev ioctl mutex through the fb_mmap() call.

Also, add mutex to all places where smem_start and smem_len fields change
so the mutex inside the fb_mmap() is actually used.  Changing of these
fields before calling the framebuffer_register() are not mutexed.

This is 2.6.31 material.  It removes one lockdep (fb_mmap() and
register_framebuffer()) but there is still another one (fb_release() and
register_framebuffer()).  It also cleans up handling of the smem_start and
smem_len fields used by mutexed section of the fb_mmap().

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-30 18:56:00 -07:00
..
g450_pll.c matroxfb: rectify jitter (G450/G550) 2007-08-11 15:47:40 -07:00
g450_pll.h
i2c-matroxfb.c matrox maven: convert to a new-style i2c driver 2008-08-12 16:07:29 -07:00
Makefile
matroxfb_accel.c video: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:42 -07:00
matroxfb_accel.h
matroxfb_base.c fbdev: add mutex for fb_mmap locking 2009-06-30 18:56:00 -07:00
matroxfb_base.h fbdev: fix integer as NULL pointer warning 2008-05-23 08:11:07 -07:00
matroxfb_crtc2.c fbdev: add mutex for fb_mmap locking 2009-06-30 18:56:00 -07:00
matroxfb_crtc2.h matroxfb: color setting fixes 2007-07-17 10:23:13 -07:00
matroxfb_DAC1064.c video: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:42 -07:00
matroxfb_DAC1064.h matroxfb: rectify jitter (G450/G550) 2007-08-11 15:47:40 -07:00
matroxfb_g450.c fbdev: change asm/uaccess.h to linux/uaccess.h 2007-10-16 09:43:17 -07:00
matroxfb_g450.h
matroxfb_maven.c matrox maven: convert to a new-style i2c driver 2008-08-12 16:07:29 -07:00
matroxfb_maven.h
matroxfb_misc.c video: use get/put_unaligned_* helpers 2008-04-29 08:06:28 -07:00
matroxfb_misc.h
matroxfb_Ti3026.c video: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:42 -07:00
matroxfb_Ti3026.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00