From: Greg KH <gregkh@linuxfoundation.org>
To: Nathan Lynch <nathanl@linux.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au,
linux-kernel@vger.kernel.org, jirislaby@kernel.org
Subject: Re: [PATCH] powerpc/udbg_hvc: retry putc on -EAGAIN
Date: Fri, 21 May 2021 14:47:36 +0200 [thread overview]
Message-ID: <YKer6KPaHDgaWS8k@kroah.com> (raw)
In-Reply-To: <20210514214422.3019105-1-nathanl@linux.ibm.com>
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 <nathanl@linux.ibm.com>
> ---
> 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
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Nathan Lynch <nathanl@linux.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
jirislaby@kernel.org
Subject: Re: [PATCH] powerpc/udbg_hvc: retry putc on -EAGAIN
Date: Fri, 21 May 2021 14:47:36 +0200 [thread overview]
Message-ID: <YKer6KPaHDgaWS8k@kroah.com> (raw)
In-Reply-To: <20210514214422.3019105-1-nathanl@linux.ibm.com>
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 <nathanl@linux.ibm.com>
> ---
> 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
next prev parent reply other threads:[~2021-05-21 12:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 21:44 [PATCH] powerpc/udbg_hvc: retry putc on -EAGAIN Nathan Lynch
2021-05-14 21:44 ` Nathan Lynch
2021-05-21 12:47 ` Greg KH [this message]
2021-05-21 12:47 ` Greg KH
2021-05-23 10:51 ` Michael Ellerman
2021-05-23 10:51 ` Michael Ellerman
2021-05-27 11:10 ` Greg KH
2021-05-27 11:10 ` Greg KH
2021-06-06 12:08 ` Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YKer6KPaHDgaWS8k@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=nathanl@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.