From: "Aaron Durbin" Subject: Re: [discuss] Re: 2.6.19-rc4: known unfixed regressions (v3) Date: Tue, 7 Nov 2006 09:50:54 -0800 Message-ID: <8f95bb250611070950m3dc45674gbd370e3173b6168d@mail.gmail.com> References: <20061107171143.GU27140@parisc-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Cc: Andrew Morton , len.brown@intel.com, Thierry Vignaud , linux-pm@osdl.org, Ernst Herzberg , Christian , Alex Romosan , openib-general@openib.org, Linux Kernel Mailing List , linux-ide@vger.kernel.org, Linus Torvalds , oprofile-list@lists.sourceforge.net, Jens Axboe , linux-pci@atrey.karlin.mff.cuni.cz, Elimar Riesebieter , discuss@x86-64.org, Komuro , Jeff Chua , Tim Chen , phil.el@wanadoo.fr, cpufreq@lists.linux.org.uk, gregkh@suse.de, neilb@cse.unsw.edu.au, Adrian Bunk , linux-acpi@vger.kernel.org, mingo@redhat.com, nfs@lists.sourceforge.net, "Eric W. Biederman" Return-path: To: "Matthew Wilcox" In-Reply-To: <20061107171143.GU27140@parisc-linux.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org List-ID: On 11/7/06, Matthew Wilcox wrote: > On Wed, Nov 08, 2006 at 12:57:03AM +0800, Jeff Chua wrote: > > 2) this fails ... > > > > e0000000-efffffff : 0000:00:02.0 > > f0000000-ffffffff : PCI MMCONFIG 0 > > fed00000-fed003ff : HPET 0 > > Heh, no kidding ... > > num_buses =3D pci_mmcfg_config[i].end_bus_number - > pci_mmcfg_config[i].start_bus_number + 1; > res->start =3D pci_mmcfg_config[i].base_address; > res->end =3D res->start + (num_buses << 20) - 1; > res->flags =3D IORESOURCE_MEM | IORESOURCE_BUSY; > insert_resource(&iomem_resource, res); > > So if we have 256 busses assigned, then we request 256MB and, well, > there's no room for anyone else. This code was added by Andi in commit > de09bddb9d6f96785be470c832b881e6d72d589f > > Hopefully he'll have a good idea how to restrict it. Given your "working" > resource map, it seems like it should be limited to 16MB (and thus 16 bus= ses). > But how to figure that out? > Maybe Andi can shed some light on the reasoning for not checking e820 to see if the entire MMCONFIG region is reported as reserved in the e820 map. I can patch up the pci_mmcfg_insert_resource to verify if the region that is exported by ACPI is reserved in e820 and printk an error message if it is not and skip the resource insertion. Does that seem like a good avenue to pursue? -Aaron