All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] LSI53C895A: Do not update current_dma_len with dbc in TIA mode
@ 2008-11-26 15:32 Justin Chevrier
  2008-11-26 17:07 ` Ryan Harper
  0 siblings, 1 reply; 5+ messages in thread
From: Justin Chevrier @ 2008-11-26 15:32 UTC (permalink / raw)
  To: qemu-devel

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 <address@hidden>

--- 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;



      

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

end of thread, other threads:[~2008-11-26 22:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 15:32 [Qemu-devel] [PATCH] LSI53C895A: Do not update current_dma_len with dbc in TIA mode Justin Chevrier
2008-11-26 17:07 ` Ryan Harper
2008-11-26 18:08   ` Justin Chevrier
2008-11-26 22:14     ` Ryan Harper
2008-11-26 22:37       ` Justin Chevrier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.