1. 01 4月, 2009 2 次提交
  2. 06 2月, 2009 1 次提交
    • A
      fbmem: don't call copy_from/to_user() with mutex held · 1f5e31d7
      Andrea Righi 提交于
      Avoid calling copy_from/to_user() with fb_info->lock mutex held in fbmem
      ioctl().
      
      fb_mmap() is called under mm->mmap_sem (A) held, that also acquires
      fb_info->lock (B); fb_ioctl() takes fb_info->lock (B) and does
      copy_from/to_user() that might acquire mm->mmap_sem (A), causing a
      deadlock.
      
      NOTE: it doesn't push down the fb_info->lock in each own driver's
      fb_ioctl(), so there are still potential deadlocks elsewhere.
      Signed-off-by: NAndrea Righi <righi.andrea@gmail.com>
      Cc: Dave Jones <davej@redhat.com>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Johannes Weiner <hannes@saeurebad.de>
      Cc: Krzysztof Helt <krzysztof.h1@wp.pl>
      Cc: Harvey Harrison <harvey.harrison@gmail.com>
      Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1f5e31d7
  3. 16 1月, 2009 1 次提交
  4. 22 12月, 2008 1 次提交
  5. 20 10月, 2008 1 次提交
  6. 21 8月, 2008 1 次提交
    • I
      fbdefio: add set_page_dirty handler to deferred IO FB · d847471d
      Ian Campbell 提交于
      Fixes kernel BUG at lib/radix-tree.c:473.
      
      Previously the handler was incidentally provided by tmpfs but this was
      removed with:
      
        commit 14fcc23f
        Author: Hugh Dickins <hugh@veritas.com>
        Date:   Mon Jul 28 15:46:19 2008 -0700
      
          tmpfs: fix kernel BUG in shmem_delete_inode
      
      relying on this behaviour was incorrect in any case and the BUG also
      appeared when the device node was on an ext3 filesystem.
      
      v2: override a_ops at open() time rather than mmap() time to minimise
      races per AKPM's concerns.
      Signed-off-by: NIan Campbell <ijc@hellion.org.uk>
      Cc: Jaya Kumar <jayakumar.lkml@gmail.com>
      Cc: Nick Piggin <npiggin@suse.de>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Hugh Dickins <hugh@veritas.com>
      Cc: Johannes Weiner <hannes@saeurebad.de>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Kel Modderman <kel@otaku42.de>
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Cc: <stable@kernel.org> [14fcc23f is in 2.6.25.14 and 2.6.26.1]
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d847471d
  7. 25 7月, 2008 2 次提交
  8. 28 4月, 2008 1 次提交
    • A
      fb: add support for foreign endianness · e4c690e0
      Anton Vorontsov 提交于
      Add support for the framebuffers with non-native endianness.  This is done via
      FBINFO_FOREIGN_ENDIAN flag that will be used by the drivers.  Depending on the
      host endianness this flag will be overwritten by FBINFO_BE_MATH internal flag,
      or cleared.
      
      Tested to work on MPC8360E-RDK (BE) + Fujitsu MINT framebuffer (LE).
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: <Valdis.Kletnieks@vt.edu>
      Cc: Clemens Koller <clemens.koller@anagramm.de>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e4c690e0
  9. 17 10月, 2007 3 次提交
  10. 18 7月, 2007 2 次提交
  11. 01 6月, 2007 1 次提交
  12. 10 5月, 2007 1 次提交
  13. 09 5月, 2007 8 次提交
  14. 20 2月, 2007 2 次提交
    • R
      backlight: Rework backlight/fb interaction simplifying, lots · 37ce69a5
      Richard Purdie 提交于
      fb_info->bl_mutex is badly thought out and the backlight class doesn't
      need it if the framebuffer/backlight register/unregister order is
      consistent, particularly after the backlight locking fixes.
      
      Fix the drivers to use the order:
      
      backlight_device_register()
      register_framebuffer()
      unregister_framebuffer()
      backlight_device_unregister()
      
      and turn bl_mutex into a lock for the bl_curve data only.
      Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
      37ce69a5
    • R
      backlight/fbcon: Add FB_EVENT_CONBLANK · 994efacd
      Richard Purdie 提交于
      The backlight class wants notification whenever the console is blanked
      but doesn't get this when hardware blanking fails and software blanking
      is used. Changing FB_EVENT_BLANK to report both would be a behaviour
      change which could confuse the console layer so add a new event for
      software blanking and have the backlight class listen for both.
      Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
      994efacd
  15. 13 2月, 2007 2 次提交
  16. 14 12月, 2006 1 次提交
  17. 09 12月, 2006 1 次提交
  18. 02 12月, 2006 1 次提交
  19. 03 10月, 2006 2 次提交
  20. 15 8月, 2006 1 次提交
  21. 01 8月, 2006 1 次提交
  22. 11 7月, 2006 1 次提交
  23. 01 7月, 2006 1 次提交
  24. 27 6月, 2006 2 次提交
    • G
      [PATCH] devfs: Remove the devfs_fs_kernel.h file from the tree · ff23eca3
      Greg Kroah-Hartman 提交于
      Also fixes up all files that #include it.
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ff23eca3
    • A
      [PATCH] VT binding: Update fbcon to support binding · e614b18d
      Antonino A. Daplas 提交于
      The control for binding/unbinding is moved from fbcon to the console layer.
      Thus the fbcon sysfs attributes, attach and detach, are also gone.
      
          1. Add a notifier event that tells fbcon if a framebuffer driver has been
             unregistered.  If no registered driver remains, fbcon will unregister
             itself from the console layer.
      
          2. Replaced calls to give_up_console() with unregister_con_driver().
      
          3. Still use take_over_console() instead of register_con_driver() to
             maintain compatibility
      
          4. Respect the parameter first_fb_vc and last_fb_vc instead of using 0 and
             MAX_NR_CONSOLES - 1. These parameters are settable by the user.
      
          5. When fbcon is completely unbound from the console layer, fbcon will
             also release (iow, decrement module reference counts to zero) all fbdev
             drivers. In other words, a bind or unbind request from the console layer
             will propagate down to the framebuffer drivers.
      
          6. If fbcon is not bound to the console, it will ignore all notifier
             events (except driver registration and unregistration) and all sysfs
             requests.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e614b18d