1. 25 4月, 2012 1 次提交
  2. 09 3月, 2012 1 次提交
    • A
      vt:tackle kbd_table · 079c9534
      Alan Cox 提交于
      Keyboard struct lifetime is easy, but the locking is not and is completely
      ignored by the existing code. Tackle this one head on
      
      - Make the kbd_table private so we can run down all direct users
      - Hoick the relevant ioctl handlers into the keyboard layer
      - Lock them with the keyboard lock so they don't change mid keypress
      - Add helpers for things like console stop/start so we isolate the poking
        around properly
      - Tweak the braille console so it still builds
      
      There are a couple of FIXME locking cases left for ioctls that are so hideous
      they should be addressed in a later patch. After this patch the kbd_table is
      private and all the keyboard jiggery pokery is in one place.
      
      This update fixes speakup and also a memory leak in the original.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      079c9534
  3. 25 2月, 2012 1 次提交
  4. 27 7月, 2011 1 次提交
    • M
      panic, vt: do not force oops output when panic_timeout < 0 · c958474b
      Mandeep Singh Baines 提交于
      Don't force output if you intend to reboot immediately.
      
      In this patch, I'm disabling the functionality enabled by
      vc->vc_panic_force_write if panic_timeout < 0 (i.e.  no timeout).
      vc_panic_force_write is only enabled for fb video consoles if the
      FBINFO_CAN_FORCE_OUTPUT flag is set.
      
      For our application, we're using ram_oops to preserved the panic in
      memory.  We want to reliably, and as fast as possible, machine_restart.
      The vc_panic_force_write flag results in a bunch of graphics driver code
      to be invoked which slows down restart and decreases reliability.  Since
      we're already storing the panic in RAM and are going to reboot
      immediately, there is no benefit in mode switching back to the vc in
      order to display the panic output.  The log buffer will get flushed by
      the console_unblank() call so remote management consoles should see all
      output.
      Signed-off-by: NMandeep Singh Baines <msb@chromium.org>
      Cc: Huang Ying <ying.huang@intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Olaf Hering <olaf@aepfle.de>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Cc: Dave Airlie <airlied@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Acked-by: NAlan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c958474b
  5. 18 2月, 2011 1 次提交
    • J
      tty,vcs removing con_buf/conf_buf_mtx · fcdba07e
      Jiri Olsa 提交于
      seems there's no longer need for using con_buf/conf_buf_mtx
      as vcs_read/vcs_write buffer for user's data.
      
      The do_con_write function, that was the other user of this,
      is currently using its own kmalloc-ed buffer.
      
      Not sure when this got changed, as I was able to find this code
      in 2.6.9, but it's already gone as far as current git history
      goes - 2.6.12-rc2.
      
      AFAICS there's a behaviour change with the current change.
      The lseek is not completely mutually exclusive with the
      vcs_read/vcs_write - the file->f_pos might get updated
      via lseek callback during the vcs_read/vcs_write processing.
      
      I tried to find out if the prefered behaviour is to keep
      this in sync within read/write/lseek functions, but I did
      not find any pattern on different places.
      
      I guess if user end up calling write/lseek from different
      threads she should know what she's doing. If needed we
      could use dedicated fd mutex/buffer.
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      fcdba07e
  6. 11 8月, 2010 2 次提交
    • K
      vt: Fix warning: statement with no effect due to vt_kern.h · 75e0b946
      Kevin Winchester 提交于
      Using:
      
      	gcc (GCC) 4.5.0 20100610 (prerelease)
      
      with CONFIG_CONSOLE_TRANSLATIONS=n, the following warnings are seen:
      
      	drivers/char/vt_ioctl.c: In function ‘vt_ioctl’:
      	drivers/char/vt_ioctl.c:1309:4: warning: statement with no effect
      	drivers/char/vt.c: In function ‘vc_allocate’:
      	drivers/char/vt.c:774:3: warning: statement with no effect
      	drivers/video/console/vgacon.c: In function ‘vgacon_init’:
      	drivers/video/console/vgacon.c:587:3: warning: statement with no effect
      	drivers/video/console/vgacon.c: In function ‘vgacon_deinit’:
      	drivers/video/console/vgacon.c:606:2: warning: statement with no effect
      	drivers/video/console/fbcon.c: In function ‘fbcon_init’:
      	drivers/video/console/fbcon.c:1087:3: warning: statement with no effect
      	drivers/video/console/fbcon.c:1089:3: warning: statement with no effect
      	drivers/video/console/fbcon.c: In function ‘fbcon_set_disp’:
      	drivers/video/console/fbcon.c:1369:3: warning: statement with no effect
      	drivers/video/console/fbcon.c:1371:3: warning: statement with no effect
      
      This is because several functions in include/linux/vt_kern.h are
      defined to (0).  Convert them to static inline functions to
      silence the warnings and gain a bit of type safety.
      Signed-off-by: NKevin Winchester <kjwinchester@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      75e0b946
    • J
      vt/console: try harder to print output when panicing · 8fd4bd22
      Jesse Barnes 提交于
      Jesse's initial patch commit said:
      
      "At panic time (i.e.  when oops_in_progress is set) we should try a bit
      harder to update the screen and make sure output gets to the VT, since
      some drivers are capable of flipping back to it.
      
      So make sure we try to unblank and update the display if called from a
      panic context."
      
      I've enhanced this to add a flag to the vc that console layer can set to
      indicate they want this behaviour to occur.  This also adds support to
      fbcon for that flag and adds an fb flag for drivers to indicate they want
      to use the support.  It enables this for KMS drivers.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Acked-by: NJames Simmons <jsimmons@infradead.org>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8fd4bd22
  7. 14 11月, 2009 1 次提交
  8. 20 9月, 2009 3 次提交
  9. 14 10月, 2008 1 次提交
  10. 16 8月, 2008 1 次提交
  11. 03 8月, 2008 1 次提交
  12. 02 8月, 2008 1 次提交
  13. 04 6月, 2008 1 次提交
  14. 07 2月, 2008 1 次提交
  15. 17 10月, 2007 1 次提交
  16. 18 7月, 2007 2 次提交
  17. 09 5月, 2007 1 次提交
  18. 17 3月, 2007 1 次提交
  19. 02 10月, 2006 1 次提交
  20. 30 9月, 2006 1 次提交
    • A
      [PATCH] tty locking on resize · ca9bda00
      Alan Cox 提交于
      The current kernel serializes console resizes but does not serialize the
      resize against the tty structure updates.  This means that while two
      parallel resizes cannot mess up the console you can get incorrect results
      reported.
      
      Secondly while doing this I added vc_lock_resize() to lock and resize the
      console.  This leaves all knowledge of the console_sem in the vt/console
      driver and kicks it out of the tty layer, which is good
      
      Thirdly while doing this I decided I couldn't stand "disallocate" any
      longer so I switched it to "deallocate".
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Cc: Paul Fulghum <paulkf@microgate.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ca9bda00
  21. 11 7月, 2006 1 次提交
  22. 01 6月, 2006 1 次提交
  23. 26 4月, 2006 1 次提交
  24. 23 3月, 2006 1 次提交
  25. 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