Received: from eggs.gnu.org ([208.118.235.92]:48010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgD6k-00073D-QH for qemu-devel@nongnu.org; Wed, 05 Dec 2012 06:25:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgD6b-0000BG-I0 for qemu-devel@nongnu.org; Wed, 05 Dec 2012 06:25:42 -0500 Received: from indium.canonical.com ([91.189.90.7]:50310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgD6b-0000BB-C8 for qemu-devel@nongnu.org; Wed, 05 Dec 2012 06:25:33 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TgD6Z-0008CW-Du for ; Wed, 05 Dec 2012 11:25:31 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 475A52E807B for ; Wed, 5 Dec 2012 11:25:31 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 05 Dec 2012 11:20:12 -0000 From: Kees Schoenmakers Sender: bounces@canonical.com References: <20121205112012.6348.41927.malonedeb@gac.canonical.com> Message-Id: <20121205112012.6348.41927.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1086745] [NEW] serial port data THRE comes too early Reply-To: Bug 1086745 <1086745@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: When using a serial port with a Linux guest (and host) and the application uses hardware handshake, this fails because the handling of TEMT and/or THRE is not operating properly in such cases. As long as it takes _time_ for the 'real' port to output the data TEMT may not return true. After writing characters to a real port, the driver should timeout the transmission and after the total time expired, TEMT can be set. Some applications i.e. with a simplex modem do: RTS_on, WRITE_data, repeat = IOCTL(GET_LSR_INFO), RTS_off, READ_data. At the moment this fails because very early in the transmission, GET_LSR_IN= FO returns true and the modem transmitter is switched off. I looked in the source (git) and found that 'char_transmit_time' is presen= t. My skills fail to implement it myself. I build and ran the latest git version and found it to fail as decribed abo= ve. I hope someone can solve it. ** Affects: qemu Importance: Undecided Status: New ** Tags: handshake port serial -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1086745 Title: serial port data THRE comes too early Status in QEMU: New Bug description: When using a serial port with a Linux guest (and host) and the application uses hardware handshake, this fails because the handling of TEMT and/or THRE is not operating properly in such cases. As long as it takes _time_ for the 'real' port to output the data TEMT may not return true. After writing characters to a real port, the driver should timeout the transmission and after the total time expired, TEMT can be set. Some applications i.e. with a simplex modem do: RTS_on, WRITE_data, repea= t IOCTL(GET_LSR_INFO), RTS_off, READ_data. At the moment this fails because very early in the transmission, GET_LSR_= INFO returns true and the modem transmitter is switched off. I looked in the source (git) and found that 'char_transmit_time' is pres= ent. My skills fail to implement it myself. I build and ran the latest git version and found it to fail as decribed a= bove. I hope someone can solve it. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1086745/+subscriptions