diff options
author | 2011-07-12 19:19:57 +0000 | |
---|---|---|
committer | 2011-07-19 15:13:07 +1000 | |
commit | 19df9abdd30a0448e5940c6aa3527096bb69aca7 (patch) | |
tree | 207168aac6dc399419eb0048c4ba47e69628a7cf /kernel/rtmutex-debug.c | |
parent | powerpc/irq: Quieten irq mapping printks (diff) | |
download | wireguard-linux-19df9abdd30a0448e5940c6aa3527096bb69aca7.tar.xz wireguard-linux-19df9abdd30a0448e5940c6aa3527096bb69aca7.zip |
powerpc/pseries: Fix hvterm_raw_get_chars to accept < 16 chars, fixing xmon
commit 4d2bb3f50036 (powerpc/pseries: Re-implement HVSI as part of
hvc_vio) changed udbg_getc to be based on hvterm_raw_get_chars.
Unfortunately hvterm_raw_get_chars returns -EAGAIN if you ask
for anything less than 16 characters. As a result xmon no longer
accepts input and prints a stream of junk to the screen.
The recent change highlights a problem that xmon on pseries VIO
has had all along, that it can drop input characters. The issue
is the hypervisor call does not take a count argument and can
return up to 16 characters.
This patch adds a per vterm buffer that we copy input data into
and give it out as requested.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'kernel/rtmutex-debug.c')
0 files changed, 0 insertions, 0 deletions