qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [patch] esp.c fast SCSI-bus reset
@ 2009-07-24 10:21 Artyom Tarasenko
  2009-07-26 13:40 ` Blue Swirl
  0 siblings, 1 reply; 5+ messages in thread
From: Artyom Tarasenko @ 2009-07-24 10:21 UTC (permalink / raw)
  To: qemu-devel

It seems to make a little sense to raise an interrupt still having
"bus reset" status, since it makes the host think the bus is busy.
The proper way would be to tell all the scsi devices to reset before
the interrupt.
The patch makes scsi probe to come a little further when using OBP
under sparc32.

--- hw/esp.c.master     2009-07-24 00:28:30.146422134 +0200
+++ hw/esp.c    2009-07-24 12:08:48.585546871 +0200
@@ -505,7 +505,7 @@
             break;
         case CMD_BUSRESET:
             DPRINTF("Bus reset (%2.2x)\n", val);
-            s->rregs[ESP_RINTR] = INTR_RST;
+           s->rregs[ESP_RINTR] = 0;
             if (!(s->wregs[ESP_CFG1] & CFG1_RESREPT)) {
                 esp_raise_irq(s);
             }

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

end of thread, other threads:[~2009-07-31  8:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 10:21 [Qemu-devel] [patch] esp.c fast SCSI-bus reset Artyom Tarasenko
2009-07-26 13:40 ` Blue Swirl
2009-07-28 18:14   ` Artyom Tarasenko
2009-07-31  7:44     ` Blue Swirl
2009-07-31  8:29       ` Artyom Tarasenko

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).