From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLelh-0004cc-QQ for qemu-devel@nongnu.org; Sun, 15 May 2011 13:06:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLelg-0004n3-Ln for qemu-devel@nongnu.org; Sun, 15 May 2011 13:06:13 -0400 Received: from mail-vx0-f173.google.com ([209.85.220.173]:42936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLelg-0004mt-JN for qemu-devel@nongnu.org; Sun, 15 May 2011 13:06:12 -0400 Received: by vxb37 with SMTP id 37so3217361vxb.4 for ; Sun, 15 May 2011 10:06:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110515163105.GG24932@redhat.com> References: <20110515163105.GG24932@redhat.com> Date: Sun, 15 May 2011 21:06:10 +0400 Message-ID: From: Alexey Zaytsev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] AHCI broken in current git, bisected. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Avi Kivity , qemu-devel@nongnu.org, Alexander Graf On Sun, May 15, 2011 at 20:32, Michael S. Tsirkin wrote: > On Sun, May 15, 2011 at 07:58:23PM +0400, Alexey Zaytsev wrote: >> Hi. >> >> The commit 667bb59d2358daeef179583c944becba3f1f9680 >> Author: Avi Kivity >> Date: =C2=A0 Mon Apr 4 18:28:02 2011 +0300 >> >> =C2=A0 =C2=A0 ich/ahci: convert to pci_register_bar_simple() >> >> =C2=A0 =C2=A0 Signed-off-by: Avi Kivity >> =C2=A0 =C2=A0 Signed-off-by: Michael S. Tsirkin >> >> breaks AHCI to the point the disks are not detected by both seabios and = Linux: >> >> [ =C2=A0 =C2=A08.582220] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma= 0xc000 irq 14 >> [ =C2=A0 =C2=A08.582646] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma= 0xc008 irq 15 >> [ =C2=A0 =C2=A08.603979] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ = 10 >> [ =C2=A0 =C2=A08.605151] ahci 0000:00:04.0: PCI INT A -> Link[LNKD] -> G= SI 10 >> (level, high) -> IRQ 10 >> [ =C2=A0 =C2=A09.608243] ahci 0000:00:04.0: controller reset failed (0xf= 000ff53) >> [ =C2=A0 =C2=A09.609948] ahci 0000:00:04.0: PCI INT A disabled >> [ =C2=A0 =C2=A09.610267] ahci: probe of 0000:00:04.0 failed with error -= 5 > > Sure enough, > > =C2=A0 =C2=A0/* XXX BAR size should be 1k, but that breaks, so bump it to= 4k for now */ > =C2=A0 =C2=A0pci_register_bar_simple(&d->card, 5, 0x1000, 0, d->ahci.mem)= ; > =C2=A0 =C2=A0msi_init(dev, 0x50, 1, true, false); > =C2=A0 =C2=A0ahci_init(&d->ahci, &dev->qdev, 6); > > where ahci_init initializes d->ahci.mem. > > Coul;d you try out the following please > (untested, a bit busy now)? > > ---> Works, thank you.