]> git.proxmox.com Git - qemu.git/commit
Fix lost serial TX interrupts. Report receive overruns.
authorJustin T. Gibbs <gibbs@FreeBSD.org>
Wed, 10 Feb 2010 21:35:54 +0000 (14:35 -0700)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Feb 2010 22:16:16 +0000 (16:16 -0600)
commit71e605f80313a632cc6714cde7bd240042dbdd95
treeb6f8238005d9c3159ba9f3018b598d234f2c7e00
parent98b8d951dc5bcb94eaa309fbd362d2bb438d3ed6
Fix lost serial TX interrupts. Report receive overruns.

o Implement receive overrun status.  The FreeBSD uart driver
   relies on this status in it's probe routine to determine the size
   of the FIFO supported.
 o As per the 16550 spec, do not overwrite the RX FIFO on an RX overrun.
 o Do not allow TX or RX FIFO overruns to increment the data valid count
   beyond the size of the FIFO.
 o For reads of the IIR register, only clear the "TX holding register
   emtpy interrupt" if the read reports this interrupt.  This is required
   by the specification and avoids losing TX interrupts when other,
   higher priority interrupts (usually RX) are reported first.

Signed-off-by: Justin T. Gibbs <gibbs@FreeBSD.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/serial.c