mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* VirtIO console hangs
@ 2018-08-28 12:54 Matteo Croce
  2018-08-28 14:35 ` Nicholas Piggin
  0 siblings, 1 reply; 10+ messages in thread
From: Matteo Croce @ 2018-08-28 12:54 UTC (permalink / raw)
  To: Nicholas Piggin
  Cc: Greg Kroah-Hartman, Jiri Slaby, Michael Ellerman,
	Benjamin Herrenschmidt, linux-kernel

With kernel 4.19.0-rc1 virtio_console hangs very often.
I can always trigger the bug by pasting some characters in the
terminal window, the console will stop receiving keypresses, but I can
still see output from the console.
Stangely, logging in the VM via SSH and sending lot of data to hvc0,
like 'dmesg >/dev/hvc0' will fix the issue until the next paste.

I did a git bisect and I've found that this is the offending commit,
reverting it fixes it.

Cheers,

commit ec97eaad1383ab2500fcf9a07ade6044fbcc67f5
Author: Nicholas Piggin <npiggin@gmail.com>
Date:   Tue May 1 00:55:54 2018 +1000

    tty: hvc: hvc_poll() break hv read loop

    Avoid looping with the spinlock held while there is read data
    being returned from the hv driver. Instead note if the entire
    size returned by tty_buffer_request_room was read, and request
    another read poll.

    This limits the critical section lengths, and provides more
    even service to other consoles in case there is a pathological
    condition.

    Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-- 
Matteo Croce
per aspera ad upstream

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-09-05  9:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28 12:54 VirtIO console hangs Matteo Croce
2018-08-28 14:35 ` Nicholas Piggin
2018-08-28 15:00   ` Matteo Croce
2018-08-28 15:33     ` Nicholas Piggin
2018-08-31  3:49     ` Nicholas Piggin
2018-08-31 15:17       ` Matteo Croce
2018-08-31 22:51         ` Nicholas Piggin
2018-08-31 22:57         ` Nicholas Piggin
2018-09-05  3:53         ` Nicholas Piggin
2018-09-05  9:16           ` Matteo Croce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®