From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MUHuZ-0000yT-23 for qemu-devel@nongnu.org; Fri, 24 Jul 2009 06:21:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MUHuV-0000tJ-0O for qemu-devel@nongnu.org; Fri, 24 Jul 2009 06:21:58 -0400 Received: from [199.232.76.173] (port=51384 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUHuU-0000t8-JF for qemu-devel@nongnu.org; Fri, 24 Jul 2009 06:21:54 -0400 Received: from mail-gx0-f220.google.com ([209.85.217.220]:60614) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MUHuU-0005v8-Cp for qemu-devel@nongnu.org; Fri, 24 Jul 2009 06:21:54 -0400 Received: by gxk20 with SMTP id 20so6334938gxk.10 for ; Fri, 24 Jul 2009 03:21:53 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 24 Jul 2009 12:21:53 +0200 Message-ID: From: Artyom Tarasenko Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [patch] esp.c fast SCSI-bus reset List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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); }