qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/11] PS/2 controller related fixes
@ 2021-05-15 11:31 Volker Rümelin
  2021-05-15 11:32 ` [PATCH v3 01/11] ps2: fix mouse stream corruption Volker Rümelin
                   ` (11 more replies)
  0 siblings, 12 replies; 17+ messages in thread
From: Volker Rümelin @ 2021-05-15 11:31 UTC (permalink / raw)
  To: Michael S. Tsirkin, Paolo Bonzini, Philippe Mathieu-Daudé; +Cc: qemu-devel

This patch series fixes two different PS/2 mouse stream corruptions
and adds a feature that allows some old misbehaving DOS programs to
have a working keyboard. With the last few patches, the PS/2 con-
troller behaves more like a real controller.

v2:
Introduce the function kbd_pending() in a preliminary patch to ease
the review of patch "pckbd: correctly disable PS/2 communication",
as Phillipe suggested.

v3:
Patch "pckbd: correctly disable PS/2 communication" exposed a bug
in SeaBIOS. The updated patch keeps the relevant code. Until
SeaBIOS is fixed, the PS/2 controller command KBD_CCMD_KBD_DISABLE
must disable the keyboard interrupt.

In patch "pckbd: PS/2 keyboard throttle" in function
kbd_throttle_timeout() an unnecessary if statement was removed.
The KBD_STAT_OBF flag is never set when kbd_throttle_timeout()
gets called.

Volker Rümelin (11):
   ps2: fix mouse stream corruption
   ps2: don't raise an interrupt if queue is full
   ps2: don't deassert irq twice if queue is empty
   pckbd: split out interrupt line changing code
   pckbd: don't update OBF flags if KBD_STAT_OBF is set
   pckbd: PS/2 keyboard throttle
   pckbd: add state variable for interrupt source
   pckbd: add controller response queue
   pckbd: add function kbd_pending()
   pckbd: correctly disable PS/2 communication
   pckbd: remove duplicated keyboard and mouse defines

  hw/input/pckbd.c | 289 ++++++++++++++++++++++++++++++++++-------------
  hw/input/ps2.c   |  11 +-
  2 files changed, 221 insertions(+), 79 deletions(-)

-- 
2.26.2



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

end of thread, other threads:[~2021-05-18 19:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-15 11:31 [PATCH v3 00/11] PS/2 controller related fixes Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 01/11] ps2: fix mouse stream corruption Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 02/11] ps2: don't raise an interrupt if queue is full Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 03/11] ps2: don't deassert irq twice if queue is empty Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 04/11] pckbd: split out interrupt line changing code Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 05/11] pckbd: don't update OBF flags if KBD_STAT_OBF is set Volker Rümelin
2021-05-18 10:49   ` Gerd Hoffmann
2021-05-18 19:37     ` Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 06/11] pckbd: PS/2 keyboard throttle Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 07/11] pckbd: add state variable for interrupt source Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 08/11] pckbd: add controller response queue Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 09/11] pckbd: add function kbd_pending() Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 10/11] pckbd: correctly disable PS/2 communication Volker Rümelin
2021-05-15 11:32 ` [PATCH v3 11/11] pckbd: remove duplicated keyboard and mouse defines Volker Rümelin
2021-05-15 12:05 ` [PATCH v3 00/11] PS/2 controller related fixes Philippe Mathieu-Daudé
2021-05-15 14:35   ` BALATON Zoltan
2021-05-15 16:33     ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).