From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MV3yS-0004uy-81 for qemu-devel@nongnu.org; Sun, 26 Jul 2009 09:41:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MV3yR-0004tS-Jg for qemu-devel@nongnu.org; Sun, 26 Jul 2009 09:41:11 -0400 Received: from [199.232.76.173] (port=54705 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MV3yR-0004t3-FK for qemu-devel@nongnu.org; Sun, 26 Jul 2009 09:41:11 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:60154) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MV3yQ-00079K-Sh for qemu-devel@nongnu.org; Sun, 26 Jul 2009 09:41:11 -0400 Received: by fg-out-1718.google.com with SMTP id l27so565405fgb.8 for ; Sun, 26 Jul 2009 06:41:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Blue Swirl Date: Sun, 26 Jul 2009 16:40:50 +0300 Message-ID: Subject: Re: [Qemu-devel] [patch] esp.c fast SCSI-bus reset Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Artyom Tarasenko Cc: qemu-devel On Fri, Jul 24, 2009 at 1:21 PM, Artyom Tarasenko wrote: > 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. Unfortunately it also makes BSDs think that the bus reset hasn't happened: OpenBSD 4.3 (RAMDISK) #415: Tue Mar 11 18:31:57 MDT 2008 deraadt@sparc.openbsd.org:/usr/src/sys/arch/sparc/compile/RAMDISK [clip] esp0 at dma0 offset 0x8800000 pri 4: ESP200, 40MHz, SCSI ID 7 scsibus0 at esp0: 8 targets esp0: waiting for SCSI Bus Reset to happen probe(esp0:0:0): esp0: timed out [ecb 0xf9c2d000 (flags 0x3, dleft 24, stat 0)], probe(esp0:0:0): esp0: timed out [ecb 0xf9c2d000 (flags 0x43, dleft 24, stat 0)], AGAIN esp0: waiting for SCSI Bus Reset to happen NetBSD just hangs: NetBSD 4.0 (INSTALL) #0: Sun Dec 16 02:32:37 PST 2007 builds@wb29:/home/builds/ab/netbsd-4-0-RELEASE/sparc/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/sparc/compile/INSTALL [clip] esp0 at dma0 slot 5 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7 scsibus0 at esp0: 8 targets, 8 luns per target ledma0 at sbus0 slot 5 offset 0x8400010: DMA rev 2 le0 at ledma0 slot 5 offset 0x8c00000 level 6: address 52:54:00:12:34:56 le0: 8 receive buffers, 2 transmit buffers SUNW,CS4231 at sbus0 slot 4 offset 0xc000000 level 5 (ipl 9) not configured power-management at sbus0 slot 4 offset 0xa000000 not configured esp0: waiting for SCSI Bus Reset to happen timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0 md0: internal 688 KB image area scsibus0: waiting 2 seconds for devices to settle... Linux is not affected.