Received: from eggs.gnu.org ([140.186.70.92]:38275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rah6t-0004yl-15 for qemu-devel@nongnu.org; Wed, 14 Dec 2011 00:10:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rah6s-0003lV-0t for qemu-devel@nongnu.org; Wed, 14 Dec 2011 00:10:30 -0500 Received: from mail-qw0-f52.google.com ([209.85.216.52]:60821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rah6r-0003lI-Uu for qemu-devel@nongnu.org; Wed, 14 Dec 2011 00:10:29 -0500 Received: by qadc11 with SMTP id c11so299697qad.4 for ; Tue, 13 Dec 2011 21:10:28 -0800 (PST) Date: Wed, 14 Dec 2011 00:10:25 -0500 From: Kevin O'Connor Message-ID: <20111214051025.GA11593@morn.localdomain> References: <4ED58108.3090903@endace.com> <20111130074903.GD17781@redhat.com> <4ED70E71.3030003@endace.com> <4ED7640D.5060203@redhat.com> <4ED767DF.7060707@redhat.com> <4EDC4899.2080101@endace.com> <4EE5B6E4.4010301@redhat.com> <4EE6D234.3000203@endace.com> <4EE8265F.2010703@endace.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EE8265F.2010703@endace.com> Subject: Re: [Qemu-devel] [BUG] [Seabios] PCI 64bit BARs on Win2008 - unable to start the device. (ACPI lacks the _DSM method) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Korolev Cc: "Michael S. Tsirkin" , sfd@endace.com, seabios@seabios.org, qemu-devel@nongnu.org, yamahata@valinux.co.jp, Gerd Hoffmann On Wed, Dec 14, 2011 at 05:30:23PM +1300, Alexey Korolev wrote: > Hi, > >> > >>It shouldn't be that hard to add the latter though. seabios needs two > >>more pci_region_type (PCI_REGION_TYPE_MEM_64 and > >>PCI_REGION_TYPE_PREFMEM_64) to track and map 64bit bars separately. And > >>a address space window where it can map 64bit bars to. > >Right. This is a thing I'm thinking about now. I seems that the > >specifying 0x0 address in 64bit BARS is a bad idea. At least older > >versions of Linux just hang as soon as requested range does not > >fit in first 4GB. > >So the only option would be specifying the particular address > >range. It seems this works for everything - yet. > I wonder if there any particular reason to separate prefetchable a > non-prefetchable memory regions in pciinit? Extra two more regions > would make code more complex. If I understand this correctly, the prefmem and normal mem separation is for pci bridges. Devices behind a bridge need to have all their prefmem regions consecutive and not overlapping with all the normal mem ranges. That way the bridge device can advertise just one prefmem region and one normal mem region which encapsulates all the devices behind it. -Kevin