# Re: \[PATCH\] powerpc/udbg\_hvc: retry putc on -EAGAIN

- From: Michael Ellerman \<hidden\>
- Date: 2021-06-06 12:13:05 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/06/1403910
- Thread: https://ratatoskr.run/linuxppc-dev/2021/05/1378232/t.md

```text
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.

Applied to powerpc/next.

[1/1] powerpc/udbg_hvc: retry putc on -EAGAIN
      https://git.kernel.org/powerpc/c/027f55e87c3094270a3223f7331d033fe15a2b3f

cheers
```
