Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5MNv-0001ik-0n for qemu-devel@nongnu.org; Wed, 26 Nov 2008 10:32:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5MNs-0001h1-36 for qemu-devel@nongnu.org; Wed, 26 Nov 2008 10:32:57 -0500 Received: from [199.232.76.173] (port=60817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5MNr-0001gb-HV for qemu-devel@nongnu.org; Wed, 26 Nov 2008 10:32:55 -0500 Received: from web51110.mail.re2.yahoo.com ([206.190.39.131]:46894) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L5MNr-0005DP-5t for qemu-devel@nongnu.org; Wed, 26 Nov 2008 10:32:55 -0500 Date: Wed, 26 Nov 2008 07:32:53 -0800 (PST) From: Justin Chevrier MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <933240.71390.qm@web51110.mail.re2.yahoo.com> Subject: [Qemu-devel] [PATCH] LSI53C895A: Do not update current_dma_len with dbc in TIA mode Reply-To: theburner1@yahoo.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Continued testing has shown that even with the update to handle variable length Inquiry commands in scsi-disk.c Openserver still relies on DMA length being updated with the dbc later on. The below patch modifies the current behaviour to update the DMA length with the dbc only when in Direct and Indirect mode. In Table Indirect Access mode the dma length does not come from the dbc, so we don't update it there. This fixes the Debian Arm target, still works in Openserver and should correct the Windows install issue reported. Justin Changelog: Do not update current_dma_len with the dbc if we are in Table Indirect Access mode. Signed-off-by: Justin Chevrier --- hw/lsi53c895a.c (revision 5799) +++ hw/lsi53c895a.c (working copy) @@ -920,7 +920,9 @@ break; case PHASE_DI: s->waiting = 2; - s->current_dma_len = s->dbc; + /* Update DMA length in Direct and Indirect modes only */ + if (!(insn & (1 << 28))) + s->current_dma_len = s->dbc; lsi_do_dma(s, 0); if (s->waiting) s->waiting = 3;