hvterm_raw_put_chars() calls hvc_put_chars(), which may return -EAGAIN
when the underlying hcall returns a "busy" status, but udbg_hvc_putc()
doesn't handle this. When using xmon on a PowerVM guest, this can
result in incomplete or garbled output when printing relatively large
amounts of data quickly, such as when dumping the kernel log buffer.
Call again on -EAGAIN.
Signed-off-by: Nathan Lynch <redacted>
---
drivers/tty/hvc/hvc_vio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Fri, May 14, 2021 at 04:44:22PM -0500, Nathan Lynch wrote:
hvterm_raw_put_chars() calls hvc_put_chars(), which may return -EAGAIN
when the underlying hcall returns a "busy" status, but udbg_hvc_putc()
doesn't handle this. When using xmon on a PowerVM guest, this can
result in incomplete or garbled output when printing relatively large
amounts of data quickly, such as when dumping the kernel log buffer.
Call again on -EAGAIN.
Signed-off-by: Nathan Lynch <redacted>
---
drivers/tty/hvc/hvc_vio.c | 2 +-
Subject line does not match up with this file name.
Don't you want "tty" and "hvc" in there somewhere?
thanks,
greg k-h
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2021-05-23 10:51:19
Greg KH [off-list ref] writes:
On Fri, May 14, 2021 at 04:44:22PM -0500, Nathan Lynch wrote:
quoted
hvterm_raw_put_chars() calls hvc_put_chars(), which may return -EAGAIN
when the underlying hcall returns a "busy" status, but udbg_hvc_putc()
doesn't handle this. When using xmon on a PowerVM guest, this can
result in incomplete or garbled output when printing relatively large
amounts of data quickly, such as when dumping the kernel log buffer.
Call again on -EAGAIN.
Signed-off-by: Nathan Lynch <redacted>
---
drivers/tty/hvc/hvc_vio.c | 2 +-
Subject line does not match up with this file name.
Don't you want "tty" and "hvc" in there somewhere?
It's a powerpc only driver, but I guess the subject should still be
"tty: hvc: ..." to match convention.
I was planning to take this via the powerpc tree, but I can drop it if
you'd rather take it.
cheers
On Sun, May 23, 2021 at 08:51:09PM +1000, Michael Ellerman wrote:
Greg KH [off-list ref] writes:
quoted
On Fri, May 14, 2021 at 04:44:22PM -0500, Nathan Lynch wrote:
quoted
hvterm_raw_put_chars() calls hvc_put_chars(), which may return -EAGAIN
when the underlying hcall returns a "busy" status, but udbg_hvc_putc()
doesn't handle this. When using xmon on a PowerVM guest, this can
result in incomplete or garbled output when printing relatively large
amounts of data quickly, such as when dumping the kernel log buffer.
Call again on -EAGAIN.
Signed-off-by: Nathan Lynch <redacted>
---
drivers/tty/hvc/hvc_vio.c | 2 +-
Subject line does not match up with this file name.
Don't you want "tty" and "hvc" in there somewhere?
It's a powerpc only driver, but I guess the subject should still be
"tty: hvc: ..." to match convention.
I was planning to take this via the powerpc tree, but I can drop it if
you'd rather take it.
No problem, feel free to take it yourself!
greg k-h
From: Michael Ellerman <hidden> Date: 2021-06-06 12:13:05
On Fri, 14 May 2021 16:44:22 -0500, Nathan Lynch wrote:
hvterm_raw_put_chars() calls hvc_put_chars(), which may return -EAGAIN
when the underlying hcall returns a "busy" status, but udbg_hvc_putc()
doesn't handle this. When using xmon on a PowerVM guest, this can
result in incomplete or garbled output when printing relatively large
amounts of data quickly, such as when dumping the kernel log buffer.
Call again on -EAGAIN.