Skip to content
Snippets Groups Projects
  1. Sep 15, 2011
  2. Jul 26, 2011
  3. Mar 23, 2011
  4. Jan 13, 2011
  5. Nov 24, 2010
    • Will Newton's avatar
      uml: disable winch irq before freeing handler data · 69e83dad
      Will Newton authored
      
      Disable the winch irq early to make sure we don't take an interrupt part
      way through the freeing of the handler data, resulting in a crash on
      shutdown:
      
        winch_interrupt : read failed, errno = 9
        fd 13 is losing SIGWINCH support
        ------------[ cut here ]------------
        WARNING: at lib/list_debug.c:48 list_del+0xc6/0x100()
        list_del corruption, next is LIST_POISON1 (00100100)
        082578c8:  [<081fd77f>] dump_stack+0x22/0x24
        082578e0:  [<0807a18a>] warn_slowpath_common+0x5a/0x80
        08257908:  [<0807a23e>] warn_slowpath_fmt+0x2e/0x30
        08257920:  [<08172196>] list_del+0xc6/0x100
        08257940:  [<08060244>] free_winch+0x14/0x80
        08257958:  [<080606fb>] winch_interrupt+0xdb/0xe0
        08257978:  [<080a65b5>] handle_IRQ_event+0x35/0xe0
        08257998:  [<080a8717>] handle_edge_irq+0xb7/0x170
        082579bc:  [<08059bc4>] do_IRQ+0x34/0x50
        082579d4:  [<08059e1b>] sigio_handler+0x5b/0x80
        082579ec:  [<0806a374>] sig_handler_common+0x44/0xb0
        08257a68:  [<0806a538>] sig_handler+0x38/0x50
        08257a78:  [<0806a77c>] handle_signal+0x5c/0xa0
        08257a9c:  [<0806be28>] hard_handler+0x18/0x20
        08257aac:  [<00c14400>] 0xc14400
      
      Signed-off-by: default avatarWill Newton <will.newton@gmail.com>
      Acked-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      69e83dad
  6. Apr 20, 2010
  7. Apr 19, 2010
  8. Mar 06, 2010
  9. Oct 11, 2009
  10. Oct 13, 2008
  11. Jul 30, 2008
  12. May 08, 2008
  13. Apr 28, 2008
  14. Feb 05, 2008
  15. Oct 20, 2007
  16. Oct 16, 2007
    • Jeff Dike's avatar
      uml: console tidying · 2f8a2dc2
      Jeff Dike authored
      
      Tidy line.c:
      	The includes are more minimal
      	Lots of style fixes
      	All the printks have severities
      	Removed some commented-out code
      	Deleted a useless printk when ioctl is called
      	Fixed some whitespace damage
      
      Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2f8a2dc2
    • Jeff Dike's avatar
      uml: fix console writing bugs · c59dbcad
      Jeff Dike authored
      
      The previous console cleanup patch switched generic_read and generic_write
      from calling os_{read,write}_file to calling read and write directly.  Because
      the calling convention is different, they now need to get any error from errno
      rather than the return value.  I did this for generic_read, but forgot about
      generic_write.
      
      While chasing some output corruption, I noticed that line_write was
      unnecessarily calling flush_buffer, and deleted it.  I don't understand why,
      but the corruption disappeared.  This is unneeded because there already is a
      perfectly good mechanism for finding out when the host output device has some
      room to write data - there is an interrupt that comes in when writes can
      happen again.  line_write calling flush_buffer seemed to just be an attempt to
      opportunistically get some data out to the host.
      
      I also made write_chan short-circuit calling into the host-level code for
      zero-length writes.  Calling libc write with a length of zero conflated write
      not being able to write anything with asking it not to write anything.  Better
      to just cut it off as soon as possible.
      
      Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c59dbcad
  17. Jul 16, 2007
    • Jeff Dike's avatar
      uml: SIGIO support cleanup · 42a359e3
      Jeff Dike authored
      
      Cleanup of the SIGWINCH support.
      
      Some code and comment reformatting.
      
      The stack used for SIGWINCH threads was leaked.  This is now fixed by storing
      it with the pid and other information, and freeing it when the thread is
      killed.
      
      If something goes wrong with a WIGWINCH thread, and this is discovered in the
      interrupt handler, the winch record would leak.  It is now freed, except that
      the IRQ isn't freed.  This is hard to do from interrupt context.  This has the
      side-effect that the IRQ system maintains a reference to the freed structure,
      but that shouldn't cause a problem since the descriptor is disabled.
      
      register_winch_irq is now much better about cleaning up after an
      initialization failure.
      
      Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      42a359e3
    • Jeff Dike's avatar
      uml: handle errors on opening host side of consoles · d14ad81f
      Jeff Dike authored
      
      If the host side of a console can't be opened, this will now produce visible
      error messages.
      
      enable_chan now returns a status and this is passed up to con_open and
      ssl_open, which will complain if anything went wrong.
      
      The default host device for the serial line driver is now a pts device rather
      than a pty device since lots of hosts have LEGACY_PTYS disabled.  This had
      always been failing on such hosts, but silently.
      
      Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d14ad81f
  18. Jun 09, 2007
  19. May 07, 2007
  20. Mar 08, 2007
  21. Feb 12, 2007
  22. Feb 11, 2007
    • Jeff Dike's avatar
      [PATCH] uml: fix previous console locking · c6256c68
      Jeff Dike authored
      
      Eliminate the open_mutex after complaints from Blaisorblade.  It turns out
      that the tty count provides the information needed to tell whether we are the
      first opener or last closer.
      
      Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c6256c68
    • Jeff Dike's avatar
      [PATCH] uml: console locking commentary and code cleanup · d5c9ffc6
      Jeff Dike authored
      
      Remove the last vestiges of devfs from console registration.  Change the name
      of the function, plus remove a couple of unused fields from the line_driver
      structure.
      
      struct lines is no longer needed, all traces of it are gone.
      
      The only way that I can see to mark a structure as being almost-const is to
      individually const the fields.  This is the case for the line_driver
      structure, which has only one modifiable field - a list_head in a
      sub-structure.
      
      Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d5c9ffc6
    • Jeff Dike's avatar
      [PATCH] uml: return hotplug errors to host · f28169d2
      Jeff Dike authored
      
      I noticed that errors happening while hotplugging devices from the host were
      never returned back to the mconsole client.  In some cases, success was
      returned instead of even an information-free error.
      
      This patch cleans that up by having the low-level configuration code pass back
      an error string along with an error code.  At the top level, which knows
      whether it is early boot time or responding to an mconsole request, the string
      is printk'd or returned to the mconsole client.
      
      There are also whitespace and trivial code cleanups in the surrounding code.
      
      Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f28169d2
    • Jeff Dike's avatar
      [PATCH] uml: console locking fixes · d79a5809
      Jeff Dike authored
      
      Clean up the console driver locking.  There are various problems here,
      including sleeping under a spinlock and spinlock recursion, some of which are
      fixed here.  This patch deals with the locking involved with opens and closes.
       The problem is that an mconsole request to change a console's configuration
      can race with an open.  Changing a configuration should only be done when a
      console isn't opened.  Also, an open must be looking at a stable
      configuration.  In addition, a get configuration request must observe the same
      locking since it must also see a stable configuration.  With the old locking,
      it was possible for this to hang indefinitely in some cases because open would
      block for a long time waiting for a connection from the host while holding the
      lock needed by the mconsole request.
      
      As explained in the long comment, this is fixed by adding a spinlock for the
      use count and configuration and a mutex for the actual open and close.
      
      Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d79a5809
  23. Dec 08, 2006
    • Alan Cox's avatar
      [PATCH] tty: switch to ktermios · 606d099c
      Alan Cox authored
      
      This is the grungy swap all the occurrences in the right places patch that
      goes with the updates.  At this point we have the same functionality as
      before (except that sgttyb() returns speeds not zero) and are ready to
      begin turning new stuff on providing nobody reports lots of bugs
      
      If you are a tty driver author converting an out of tree driver the only
      impact should be termios->ktermios name changes for the speed/property
      setting functions from your upper layers.
      
      If you are implementing your own TCGETS function before then your driver
      was broken already and its about to get a whole lot more painful for you so
      please fix it 8)
      
      Also fill in c_ispeed/ospeed on init for most devices, although the current
      code will do this for you anyway but I'd like eventually to lose that extra
      paranoia
      
      [akpm@osdl.org: bluetooth fix]
      [mp3@de.ibm.com: sclp fix]
      [mp3@de.ibm.com: warning fix for tty3270]
      [hugh@veritas.com: fix tty_ioctl powerpc build]
      [jdike@addtoit.com: uml: fix ->set_termios declaration]
      Signed-off-by: default avatarAlan Cox <alan@redhat.com>
      Signed-off-by: default avatarMartin Peschke <mp3@de.ibm.com>
      Acked-by: default avatarPeter Oberparleiter <oberpar@de.ibm.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
      Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      606d099c
  24. Dec 07, 2006
  25. Oct 09, 2006
  26. Oct 03, 2006
    • Matt LaPlante's avatar
      Attack of "the the"s in arch · 4b3f686d
      Matt LaPlante authored
      
      The patch below corrects multiple occurances of "the the"
      typos across several files, both in source comments and KConfig files.
      There is no actual code changed, only text.  Note this only affects the /arch
      directory, and I believe I could find many more elsewhere. :)
      
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      4b3f686d
  27. Oct 02, 2006
    • Jeff Dike's avatar
      [PATCH] const struct tty_operations · b68e31d0
      Jeff Dike authored
      
      As part of an SMP cleanliness pass over UML, I consted a bunch of
      structures in order to not have to document their locking.  One of these
      structures was a struct tty_operations.  In order to const it in UML
      without introducing compiler complaints, the declaration of
      tty_set_operations needs to be changed, and then all of its callers need to
      be fixed.
      
      This patch declares all struct tty_operations in the tree as const.  In all
      cases, they are static and used only as input to tty_set_operations.  As an
      extra check, I ran an i386 allyesconfig build which produced no extra
      warnings.
      
      53 drivers are affected.  I checked the history of a bunch of them, and in
      most cases, there have been only a handful of maintenance changes in the
      last six months.  serial_core.c was the busiest one that I looked at.
      
      Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
      Acked-by: default avatarAlan Cox <alan@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      b68e31d0
  28. Sep 27, 2006
  29. Jul 02, 2006
  30. Jun 26, 2006
  31. Feb 01, 2006
Loading