diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-04-24 05:49:25 +0200 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-11 21:04:07 +0200 |
commit | d09ee9687e027fc7d2c6b95daf05a8ef3ff06340 (patch) | |
tree | a7423042ba31ae5c1eb709d0e03115961b2b63b3 /drivers/pci/setup-bus.c | |
parent | PCI/x86: don't assume prefetchable ranges are 64bit (diff) | |
download | linux-d09ee9687e027fc7d2c6b95daf05a8ef3ff06340.tar.xz linux-d09ee9687e027fc7d2c6b95daf05a8ef3ff06340.zip |
PCI: improve resource allocation under transparent bridges
We could run out of space under under 4g, but devices under transparent
bridges can use 64bit resources, so keep trying on the parent bus until
we hit a non-transparent bridge.
Impact: better support for assigning unassigned resources
Reviewed-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/setup-bus.c')
-rw-r--r-- | drivers/pci/setup-bus.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index e1c360a5b0db..b636e245445d 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -58,7 +58,6 @@ static void pbus_assign_resources_sorted(const struct pci_bus *bus) res = list->res; idx = res - &list->dev->resource[0]; if (pci_assign_resource(list->dev, idx)) { - /* FIXME: get rid of this */ res->start = 0; res->end = 0; res->flags = 0; |