qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] esp.c fast SCSI-bus reset


From: Artyom Tarasenko
Subject: [Qemu-devel] [patch] esp.c fast SCSI-bus reset
Date: Fri, 24 Jul 2009 12:21:53 +0200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]