From: Hannes Reinecke <hare@suse.de>
To: Gerhard Wiesinger <lists@wiesinger.com>
Cc: Alexander Graf <agraf@suse.de>,
qemu-devel@nongnu.org, Andreas Faerber <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH][v12] megasas: LSI Megaraid SAS HBA emulation
Date: Mon, 20 Feb 2012 10:32:24 +0100 [thread overview]
Message-ID: <4F421328.6060009@suse.de> (raw)
In-Reply-To: <alpine.LFD.2.02.1202181329150.20303@bbs.intern>
On 02/18/2012 01:38 PM, Gerhard Wiesinger wrote:
> Hello Hannes,
>
> Patch applies well to qemu tree and with a one line modification to
> qemu-kvm.
>
> My testcase was to install Fedora 16 x64 on qemu-kvm. Unfortunatly
> it was NOT successful.
>
> 1.) Strange thing is that udevd got into timeouts and tries to kill
> a lot afterwards.
> 2.) Report that udevadm settle - timeout of 120 seconds reached, the
> event queue contains: ....
> 3.) Then it hangs in Examining Devices ...
>
> Looks like that hd device is dead.
>
> With LSI 53C895A everything is fine and install works well.
>
> Any ideas?
>
> Command line:
> /root/download/qemu/git/qemu-kvm/x86_64-softmmu/qemu-system-x86_64
> -device megasas,id=raid,romfile=BIOS/MegaSAS.rom
> -drive file=VM-FEDORA/fedora.qcow2,if=none,cache=unsafe,id=id0
> -device scsi-disk,drive=id0
> -cdrom ISO/Fedora-16-x86_64-DVD.iso
> -boot order=cad,menu=on -m 2048 -k de -vga vmware -vnc :0
> -bios /root/download/seabios/git/seabios/out/bios.bin
> -device rtl8139,mac=00:02:44:92:87:6a,vlan=0,romfile=
> -net tap,ifname=tap0,script=no,downscript=no,vlan=0
> -device pcnet,mac=1a:46:0b:ca:bc:7e,vlan=1,romfile=
> -net tap,ifname=tap1,script=no,downscript=no,vlan=1
>
MSI-X support is buggered, and due to a bug in megasas.c you cannot
switch it off :-(
Please try with this patch:
diff --git a/hw/megasas.c b/hw/megasas.c
index 26cc355..4f74ab6 100644
--- a/hw/megasas.c
+++ b/hw/megasas.c
@@ -1972,7 +1977,6 @@ static int megasas_scsi_init(PCIDevice *dev)
0x40000);
pci_register_bar(&s->dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY,
&s->mmio_io);
- s->flags |= MEGASAS_FLAG_USE_MSIX;
memory_region_init(&s->msix_io, "megasas-msix", 4096);
if (megasas_use_msix(s) && !msix_init(&s->dev, 1, &s->msix_io,
1, 0)) {
pci_register_bar(&s->dev, 1, PCI_BASE_ADDRESS_SPACE_MEMORY,
(Mind the linewrap)
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
next prev parent reply other threads:[~2012-02-20 9:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-17 14:21 [Qemu-devel] [PATCH][v12] megasas: LSI Megaraid SAS HBA emulation Hannes Reinecke
2012-02-18 12:38 ` Gerhard Wiesinger
2012-02-20 9:32 ` Hannes Reinecke [this message]
2012-02-20 18:36 ` Gerhard Wiesinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F421328.6060009@suse.de \
--to=hare@suse.de \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=lists@wiesinger.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).