1. 23 3月, 2006 2 次提交
  2. 02 2月, 2006 1 次提交
  3. 11 1月, 2006 1 次提交
    • V
      [PATCH] Fix console blanking · d060a321
      Ville Syrjala 提交于
      Current console blanking code is broken.  It will first do a normal blank,
      then start the VESA blank timer if vesa_off_interval != 0, and then proceed
      to do the VESA blanking directly.  After the timer expires it will do the
      VESA blanking a second time.  Also the vesa_powerdown() function doesn't
      allow all VESA modes to be used.
      
      With this patch the behaviour is:
      1. Blank: vesa_off_interval != 0 -> Do normal blank
                vesa_off_interval == 0 -> Do VESA blank
      2. Start the VESA blank timer if vesa_off_interval != 0 and
         vesa_power_mode != 0.
      
      It also gets rid of the limiting vesa_powerdown() function.
      Signed-off-by: NVille Syrjala <syrjala@sci.fi>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d060a321
  4. 15 9月, 2005 1 次提交
  5. 10 9月, 2005 1 次提交
    • A
      [PATCH] console: Fix buffer copy on vc resize · 3b41dc1a
      Antonino A. Daplas 提交于
      On a vc resize, the contents of the old screen buffer are transferred to the
      new screenbuffer.  If the new screenbuffer is smaller than the old one, only
      the contents from the bottom are copied to new.  If the contents of the old
      buffer are located at the top, then the contents will not be copied to the new
      buffer resulting in a blank screen.
      
      This bug will happen only if the vc in question is not in the foreground.
      Doing an fbset -a or con2fbmap will trigger this bug.
      
      To fix this problem, base the start of the copy from the location of the
      current cursor.  If the cursor is near the top of the buffer, copy the
      contents at the top, and if the cursor is near the bottom of the buffer, then
      copy the contents at the bottom.  In the unlikely case where the new row size
      is greater than 2x smaller than the old one, and the cursor is in the middle,
      copy 1/2 screenful from the top and bottom of the cursor position.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3b41dc1a
  6. 08 9月, 2005 2 次提交
    • A
      [PATCH] vt: fix possible memory corruption in complement_pos · 414edcd3
      Antonino A. Daplas 提交于
      Based on a patch from Andr Pereira de Almeida <andre@cachola.com.br>
      
      It might be possible for the saved pointer (*p) to become invalid in
      between vc_resizes, so saving the screen offset instead of the screen
      pointer is saner.
      
      This bug is very hard to trigger though, but Andre probably did, if he's
      submitting this patch.  Anyway, with Andre's patch, it's still possible for
      the offsets to be still illegal, if the new screen size is smaller than the
      old one.  So I've also added checks if the offsets are still within the
      screenbuffer size.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      414edcd3
    • S
      [PATCH] Console blanking locking fix · 2d237c63
      Stephane Doyon 提交于
      I've had WARN_CONSOLE_UNLOCKED warnings when calling TIOCLINUX
      TIOCL_BLANKSCREEN and TIOCL_UNBLANKSCREEN.
      
      (I'm blind and I use a braille display.  I use those functions to blank my
      laptop's screen so people don't read it, and hopefully to conserve power.)
      
      The warnings are from these places:
      do_blank_screen at drivers/char/vt.c:2754 (Not tainted)
      save_screen at drivers/char/vt.c:575 (Not tainted)
      do_unblank_screen at drivers/char/vt.c:2822 (Not tainted)
      set_palette at drivers/char/vt.c:2908 (Not tainted)
      
      At a glance I would think the following patch ought to fix that.  Tested on
      one machine.  Could you please tell me if this is correct and/or forward
      the patch where appropriate...
      Signed-off-by: NStephane Doyon <s.doyon@videotron.ca>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2d237c63
  7. 28 8月, 2005 1 次提交
    • P
      [PATCH] Remove race between con_open and con_close · f786648b
      Paul Mackerras 提交于
      [ Same race and same patch also by Steven Rostedt <rostedt@goodmis.org> ]
      
      I have a laptop (G3 powerbook) which will pretty reliably hit a race
      between con_open and con_close late in the boot process and oops in
      vt_ioctl due to tty->driver_data being NULL.
      
      What happens is this: process A opens /dev/tty6; it comes into
      con_open() (drivers/char/vt.c) and assign a non-NULL value to
      tty->driver_data.  Then process A closes that and concurrently process
      B opens /dev/tty6.  Process A gets through con_close() and clears
      tty->driver_data, since tty->count == 1.  However, before process A
      can decrement tty->count, we switch to process B (e.g. at the
      down(&tty_sem) call at drivers/char/tty_io.c line 1626).
      
      So process B gets to run and comes into con_open with tty->count == 2,
      as tty->count is incremented (in init_dev) before con_open is called.
      Because tty->count != 1, we don't set tty->driver_data.  Then when the
      process tries to do anything with that fd, it oopses.
      
      The simple and effective fix for this is to test tty->driver_data
      rather than tty->count in con_open.  The testing and setting of
      tty->driver_data is serialized with respect to the clearing of
      tty->driver_data in con_close by the console_sem.  We can't get a
      situation where con_open sees tty->driver_data != NULL and then
      con_close on a different fd clears tty->driver_data, because
      tty->count is incremented before con_open is called.  Thus this patch
      eliminates the race, and in fact with this patch my laptop doesn't
      oops.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      [ Same patch
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
        in http://marc.theaimsgroup.com/?l=linux-kernel&m=112450820432121&w=2 ]
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f786648b
  8. 16 7月, 2005 1 次提交
  9. 19 6月, 2005 1 次提交
  10. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4