From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSxZj-00028V-P1 for qemu-devel@nongnu.org; Mon, 20 Jul 2009 14:26:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSxZe-00024t-CF for qemu-devel@nongnu.org; Mon, 20 Jul 2009 14:26:58 -0400 Received: from [199.232.76.173] (port=56058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSxZe-00024h-3Q for qemu-devel@nongnu.org; Mon, 20 Jul 2009 14:26:54 -0400 Received: from mail-yx0-f188.google.com ([209.85.210.188]:62598) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSxZd-0006P2-K2 for qemu-devel@nongnu.org; Mon, 20 Jul 2009 14:26:53 -0400 Received: by yxe26 with SMTP id 26so3930068yxe.4 for ; Mon, 20 Jul 2009 11:26:52 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 20 Jul 2009 20:26:50 +0200 Message-ID: From: Artyom Tarasenko Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Sparc32 scsi (esp) and openboot List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Blue Swirl trying to make the proprietary OBP to boot, I got to the point where SBus probe finds the scsi controller. The next step is to find the devices attached to it, but here I get ESP errors. Actually, I wonder if the very first ESP error may bring ESP in the state, where it doesn't work properly anymore. The error happens pretty early, before the "Power-ON Reset" message from OBP. $ qemu-system-sparc -M SS-20 -L ~/sparc/ -bios ss20_v2.25_rom -nographic -m 512 ESP: Attaching block device 2 ESP: write reg[8]: 0x00 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x20 ESP: write reg[0]: 0x20 -> 0x00 ESP: write reg[3]: 0x00 -> 0xa2 ESP ERROR: esp_mem_writeb: Unhandled ESP command (a2) Power-ON Reset ... Probing /iommu@f,e0000000/sbus@f,e0001000 at f,0 espdma esp ESP: write reg[3]: 0x00 -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[3]: 0x00 -> 0x03 ESP: Bus reset (03) CPUIRQ: Raise CPU IRQ 4 ESP: read reg[5]: 0x80 CPUIRQ: Lower CPU IRQ 4 ESP: read reg[5]: 0x80 ESP: read reg[5]: 0x80 Can't clear ESP interrupts: Check SCSI Term. Power Fuse. sd st ledma le SUNW,bpp ok ok test scsi Dma register test -- succeeded. Esp register test -- ESP: write reg[8]: 0x07 -> 0x01 ESP: read reg[8]: 0x01 ESP: write reg[8]: 0x01 -> 0x02 ESP: read reg[8]: 0x02 ESP: write reg[8]: 0x02 -> 0x04 ESP: read reg[8]: 0x04 ESP: write reg[8]: 0x04 -> 0x08 ESP: read reg[8]: 0x08 ESP: write reg[8]: 0x08 -> 0x10 ESP: read reg[8]: 0x10 ESP: write reg[8]: 0x10 -> 0x20 ESP: read reg[8]: 0x20 ESP: write reg[8]: 0x20 -> 0x40 ESP: read reg[8]: 0x40 ESP: write reg[8]: 0x40 -> 0x80 ESP: read reg[8]: 0x80 succeeded. Dma read test -- ESP: write reg[3]: 0x03 -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[8]: 0x07 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x02 ESP: write reg[1]: 0x00 -> 0x00 ESP: write reg[3]: 0x00 -> 0xa2 ESP ERROR: esp_mem_writeb: Unhandled ESP command (a2) ESP: read reg[2]: 0x00 failed. Dma write test -- ESP: write reg[3]: 0xa2 -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[8]: 0x07 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x02 ESP: write reg[2]: 0x00 -> 0x00 ESP: write reg[2]: 0x00 -> 0x01 ESP: write reg[1]: 0x00 -> 0x00 ESP: write reg[3]: 0x00 -> 0xaa ESP ERROR: esp_mem_writeb: Unhandled ESP command (aa) ESP: write reg[3]: 0xaa -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[8]: 0x07 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x04 ESP: write reg[2]: 0x00 -> 0x00 ESP: write reg[2]: 0x00 -> 0x01 ESP: write reg[2]: 0x01 -> 0x02 ESP: write reg[2]: 0x02 -> 0x03 ESP: write reg[1]: 0x00 -> 0x00 ESP: write reg[3]: 0x00 -> 0xaa ESP ERROR: esp_mem_writeb: Unhandled ESP command (aa) ESP: write reg[3]: 0xaa -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[8]: 0x07 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x06 ESP: write reg[2]: 0x00 -> 0x00 ESP: write reg[2]: 0x00 -> 0x01 ESP: write reg[2]: 0x01 -> 0x02 ESP: write reg[2]: 0x02 -> 0x03 ESP: write reg[2]: 0x03 -> 0x04 ESP: write reg[2]: 0x04 -> 0x05 ESP: write reg[1]: 0x00 -> 0x00 ESP: write reg[3]: 0x00 -> 0xaa ESP ERROR: esp_mem_writeb: Unhandled ESP command (aa) ESP: write reg[3]: 0xaa -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[8]: 0x07 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x08 ESP: write reg[2]: 0x00 -> 0x00 ESP: write reg[2]: 0x00 -> 0x01 ESP: write reg[2]: 0x01 -> 0x02 ESP: write reg[2]: 0x02 -> 0x03 ESP: write reg[2]: 0x03 -> 0x04 ESP: write reg[2]: 0x04 -> 0x05 ESP: write reg[2]: 0x05 -> 0x06 ESP: write reg[2]: 0x06 -> 0x07 ESP: write reg[1]: 0x00 -> 0x00 ESP: write reg[3]: 0x00 -> 0xaa ESP ERROR: esp_mem_writeb: Unhandled ESP command (aa) ESP: write reg[3]: 0xaa -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[8]: 0x07 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x0a ESP: write reg[2]: 0x00 -> 0x00 ESP: write reg[2]: 0x00 -> 0x01 ESP: write reg[2]: 0x01 -> 0x02 ESP: write reg[2]: 0x02 -> 0x03 ESP: write reg[2]: 0x03 -> 0x04 ESP: write reg[2]: 0x04 -> 0x05 ESP: write reg[2]: 0x05 -> 0x06 ESP: write reg[2]: 0x06 -> 0x07 ESP: write reg[2]: 0x07 -> 0x08 ESP: write reg[2]: 0x08 -> 0x09 ESP: write reg[1]: 0x00 -> 0x00 ESP: write reg[3]: 0x00 -> 0xaa ESP ERROR: esp_mem_writeb: Unhandled ESP command (aa) ESP: write reg[3]: 0xaa -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[8]: 0x07 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x0c ESP: write reg[2]: 0x00 -> 0x00 ESP: write reg[2]: 0x00 -> 0x01 ESP: write reg[2]: 0x01 -> 0x02 ESP: write reg[2]: 0x02 -> 0x03 ESP: write reg[2]: 0x03 -> 0x04 ESP: write reg[2]: 0x04 -> 0x05 ESP: write reg[2]: 0x05 -> 0x06 ESP: write reg[2]: 0x06 -> 0x07 ESP: write reg[2]: 0x07 -> 0x08 ESP: write reg[2]: 0x08 -> 0x09 ESP: write reg[2]: 0x09 -> 0x0a ESP: write reg[2]: 0x0a -> 0x0b ESP: write reg[1]: 0x00 -> 0x00 ESP: write reg[3]: 0x00 -> 0xaa ESP ERROR: esp_mem_writeb: Unhandled ESP command (aa) ESP: write reg[3]: 0xaa -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[8]: 0x07 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x0e ESP: write reg[2]: 0x00 -> 0x00 ESP: write reg[2]: 0x00 -> 0x01 ESP: write reg[2]: 0x01 -> 0x02 ESP: write reg[2]: 0x02 -> 0x03 ESP: write reg[2]: 0x03 -> 0x04 ESP: write reg[2]: 0x04 -> 0x05 ESP: write reg[2]: 0x05 -> 0x06 ESP: write reg[2]: 0x06 -> 0x07 ESP: write reg[2]: 0x07 -> 0x08 ESP: write reg[2]: 0x08 -> 0x09 ESP: write reg[2]: 0x09 -> 0x0a ESP: write reg[2]: 0x0a -> 0x0b ESP: write reg[2]: 0x0b -> 0x0c ESP: write reg[2]: 0x0c -> 0x0d ESP: write reg[1]: 0x00 -> 0x00 ESP: write reg[3]: 0x00 -> 0xaa ESP ERROR: esp_mem_writeb: Unhandled ESP command (aa) ESP: write reg[3]: 0xaa -> 0x02 ESP: Chip reset (02) ESP: write reg[3]: 0x02 -> 0x00 ESP: NOP (00) ESP: write reg[5]: 0x00 -> 0x93 ESP: write reg[7]: 0x00 -> 0x00 ESP: write reg[9]: 0x00 -> 0x00 ESP: write reg[8]: 0x00 -> 0x07 ESP: read reg[5]: 0x00 ESP: write reg[8]: 0x07 -> 0x08 ESP: write reg[10]: 0x00 -> 0x01 ESP: write reg[0]: 0x00 -> 0x10 ESP: write reg[2]: 0x00 -> 0x00 ESP: write reg[2]: 0x00 -> 0x01 ESP: write reg[2]: 0x01 -> 0x02 ESP: write reg[2]: 0x02 -> 0x03 ESP: write reg[2]: 0x03 -> 0x04 ESP: write reg[2]: 0x04 -> 0x05 ESP: write reg[2]: 0x05 -> 0x06 ESP: write reg[2]: 0x06 -> 0x07 ESP: write reg[2]: 0x07 -> 0x08 ESP: write reg[2]: 0x08 -> 0x09 ESP: write reg[2]: 0x09 -> 0x0a ESP: write reg[2]: 0x0a -> 0x0b ESP: write reg[2]: 0x0b -> 0x0c ESP: write reg[2]: 0x0c -> 0x0d ESP: write reg[2]: 0x0d -> 0x0e ESP: write reg[2]: 0x0e -> 0x0f ESP ERROR: esp_mem_writeb: fifo overrun ESP: write reg[1]: 0x00 -> 0x00 ESP: write reg[3]: 0x00 -> 0xaa ESP ERROR: esp_mem_writeb: Unhandled ESP command (aa) succeeded. scsi selftest failed. Return code = -1 ok Any ideas?