From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=34670 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNnTF-0003Fd-FU for qemu-devel@nongnu.org; Wed, 01 Dec 2010 09:16:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNnSo-0001is-6S for qemu-devel@nongnu.org; Wed, 01 Dec 2010 09:15:45 -0500 Received: from cantor2.suse.de ([195.135.220.15]:47581 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNnSn-0001gk-QX for qemu-devel@nongnu.org; Wed, 01 Dec 2010 09:15:18 -0500 Message-ID: <4CF6593A.1060109@suse.de> Date: Wed, 01 Dec 2010 15:18:34 +0100 From: Hannes Reinecke MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Megasas HBA emulation and SCSI update v.2 References: <20101122101535.C3B7FF90B3@ochil.suse.de> <4CEA473F.5030806@suse.de> <1290591664.30138.216.camel@haakon2.linux-iscsi.org> In-Reply-To: <1290591664.30138.216.camel@haakon2.linux-iscsi.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: linux-iscsi-target-dev@googlegroups.com Cc: Kevin Wolf , stefanha@gmail.com, qemu-devel@nongnu.org, "Nicholas A. Bellinger" , kraxel@redhat.com, Paolo Bonzini Hey Nic, On 11/24/2010 10:41 AM, Nicholas A. Bellinger wrote: > On Mon, 2010-11-22 at 11:34 +0100, Hannes Reinecke wrote: [ .. ] >=20 > Hey Hannes, >=20 > Just a heads up, I noticed that the latest v2 megasas w/ scsi-generic -= > > TCM_loop appears to be broken on a Windows7 (Build 7600) guest, which > hangs during boot -> LUN scan with the following: >=20 > truelife:/usr/src/qemu-kvm.git# ./x86_64-softmmu/qemu-system-x86_64 -m = 512 -boot c ~/windows7.img \ > -drive if=3Dnone,id=3Dmydisk1,file=3D/dev/sg4 -device megasas,id=3Dra= id > -device scsi-generic,bus=3Draid.0,scsi-id=3D1,drive=3Dmydisk1 >=20 > megasas: Using 80 sges, 1000 cmds, raid mode > megasas: Reset > megasas: Mapping MMIO region 0 at f2040000 > megasas: Mapping IO region 2 at 0000c200 > megasas: Mapping QUEUE region 3 at f2080000 > megasas: Mapping MMIO region 0 at f2040000 > megasas: Mapping IO region 2 at 0000c200 > megasas: Mapping QUEUE region 3 at f2080000 > megasas: Mapping MMIO region 0 at f2040000 > megasas: Mapping IO region 2 at 0000c200 > megasas: Mapping QUEUE region 3 at f2080000 > megasas: readl mmio 0xb0 > megasas: writel mmio 20: 7 > megasas: Reset > megasas: readl mmio 0x20 > megasas: writel mmio 40: 1ff9c041 > megasas: Received frame addr 1ff9c000 count 32 > megasas: MFI cmd 0 context 0 count 32 > megasas: Return new frame 0 cmd 0x7f7711654330 > megasas: Enqueue frame 0 count 32 context 0 tail 0 busy 1 > megasas: MFI init firmware: xfer len 0 pa 0 > megasas: MFI init firmware: queue at f000ff53f000e2c3 len -268370093 he= ad f000ff53f000ff53 tail f000ff53f000ff53 > megasas: Complete frame context 0 >=20 Okay, it looks as if I've fixed it up. Win7 32bit works now with my megasas.v3 tree. Curiously, Win7 64bit fails; it crashes at relative address 28F4, wherever that's supposed to be. And, of course, Windows Vista with newest driver from LSI fails, too :-(. Guess I need to do some more debugging here. Cheers, Hannes --=20 Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: Markus Rex, HRB 16746 (AG N=FCrnberg)