public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Matthew Wilcox <matthew@wil.cx>
Cc: Andrew Morton <akpm@osdl.org>,
	len.brown@intel.com, Thierry Vignaud <tvignaud@mandriva.com>,
	linux-pm@osdl.org, Ernst Herzberg <earny@net4u.de>,
	Aaron Durbin <adurbin@google.com>,
	Alex Romosan <romosan@sycorax.lbl.gov>,
	openib-general@openib.org, Andi Kleen <ak@suse.de>,
	linux-ide@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>,
	oprofile-list@lists.sourceforge.net,
	Jens Axboe <jens.axboe@oracle.com>, Adrian Bunk <bunk@stusta.de>,
	linux-pci@atrey.karlin.mff.cuni.cz,
	Elimar Riesebieter <riesebie@lxtec.de>,
	discuss@x86-64.org, Komuro <komurojun-mbn@nifty.com>,
	Jeff Chua <jeff.chua.linux@gmail.com>,
	Tim Chen <tim.c.chen@linux.intel.com>,
	phil.el@wanadoo.fr, gregkh@suse.de, neilb@cse.unsw.edu.au,
	Christian <christiand59@web.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-acpi@vger.kernel.org, mingo@redhat.com, nfs@lists.sourc
Subject: Re: [discuss] Re: 2.6.19-rc4: known unfixed regressions (v3)
Date: Tue, 07 Nov 2006 10:49:36 -0700	[thread overview]
Message-ID: <m1zmb39mfj.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20061107171143.GU27140@parisc-linux.org> (Matthew Wilcox's message of "Tue, 7 Nov 2006 10:11:43 -0700")

Matthew Wilcox <matthew@wil.cx> writes:

> 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 = pci_mmcfg_config[i].end_bus_number -
>                     pci_mmcfg_config[i].start_bus_number + 1;
>                 res->start = pci_mmcfg_config[i].base_address;
>                 res->end = res->start + (num_buses << 20) - 1;
>                 res->flags = 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 busses).
> But how to figure that out?

Sounds like you need to find the current maximum bus number in use.
A little more sophisticated would look at where the next reserved region begins.

ACPI might have some of that information as well.  Although I'm not certain
where we you are coming from.  

If you don't have to worry about device hotplug getting the current maximum bus
number should be all you need.

Eric

  reply	other threads:[~2006-11-07 17:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-07 16:57 [discuss] Re: 2.6.19-rc4: known unfixed regressions (v3) Jeff Chua
2006-11-07 17:11 ` Aaron Durbin
2006-11-07 17:11 ` Matthew Wilcox
2006-11-07 17:49   ` Eric W. Biederman [this message]
2006-11-07 17:50   ` Aaron Durbin
2006-11-07 17:56     ` Matthew Wilcox
2006-11-08 15:14     ` Andi Kleen
2006-11-08  7:39   ` Andi Kleen
2006-11-08 12:22     ` Matthew Wilcox
2006-11-08 16:05       ` Linus Torvalds
2006-11-08 17:38         ` Eric W. Biederman
2006-11-08 18:52           ` Linus Torvalds
2006-11-08 19:10             ` Aaron Durbin
2006-11-08 19:25               ` Linus Torvalds
2006-11-08 19:24             ` Eric W. Biederman
2006-11-10  6:52               ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2006-11-07 16:56 Jeff Chua
2006-11-06 22:40 Jeff Chua
2006-11-07 15:50 ` Aaron Durbin
     [not found] <Pine.LNX.4.64.0610302019560.25218@g5.osdl.org>
2006-11-05  6:48 ` Adrian Bunk
2006-11-05  9:30   ` Jeff Chua
2006-11-06 17:47     ` [discuss] " Andi Kleen

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=m1zmb39mfj.fsf@ebiederm.dsl.xmission.com \
    --to=ebiederm@xmission.com \
    --cc=adurbin@google.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=bunk@stusta.de \
    --cc=christiand59@web.de \
    --cc=discuss@x86-64.org \
    --cc=earny@net4u.de \
    --cc=gregkh@suse.de \
    --cc=jeff.chua.linux@gmail.com \
    --cc=jens.axboe@oracle.com \
    --cc=komurojun-mbn@nifty.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@atrey.karlin.mff.cuni.cz \
    --cc=linux-pm@osdl.org \
    --cc=matthew@wil.cx \
    --cc=mingo@redhat.com \
    --cc=neilb@cse.unsw.edu.au \
    --cc=nfs@lists.sourc \
    --cc=openib-general@openib.org \
    --cc=oprofile-list@lists.sourceforge.net \
    --cc=phil.el@wanadoo.fr \
    --cc=riesebie@lxtec.de \
    --cc=romosan@sycorax.lbl.gov \
    --cc=tim.c.chen@linux.intel.com \
    --cc=torvalds@osdl.org \
    --cc=tvignaud@mandriva.com \
    /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