1. 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
  2. 02 2月, 2009 1 次提交
    • R
      fbdev/atyfb: Fix DSP config on some PowerMacs & PowerBooks · 7fbb7cad
      Risto Suominen 提交于
      Since the complete re-write in 2.6.10, some PowerMacs (At least PowerMac 5500
      and PowerMac G3 Beige rev A) with ATI Mach64 chip have suffered from unstable
      columns in their framebuffer image. This seems to depend on a value (4) read
      from PLL_EXT_CNTL register, which leads to incorrect DSP config parameters to
      be written to the chip. This patch uses a value calculated by aty_init_pll_ct
      instead, as a starting point.
      
      There are questions as to whether this should be extended to other platforms
      or maybe made dependent on specific chip types, but in the meantime, this has
      been tested on various powermacs and works for them so let's commit it.
      Signed-off-by: NRisto Suominen <Risto.Suominen@gmail.com>
      Tested-by: NMichael Pettersson <mike@it.uu.se>
      Cc: <stable@kernel.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      7fbb7cad
  3. 30 1月, 2009 1 次提交
  4. 27 1月, 2009 1 次提交
  5. 24 1月, 2009 1 次提交
  6. 22 1月, 2009 1 次提交
  7. 16 1月, 2009 2 次提交
  8. 13 1月, 2009 9 次提交
  9. 09 1月, 2009 3 次提交
  10. 08 1月, 2009 8 次提交
  11. 07 1月, 2009 12 次提交