PCI: improve resource allocation under transparent bridges
authorYinghai Lu <yinghai@kernel.org>
Fri, 24 Apr 2009 03:49:25 +0000 (20:49 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 11 Jun 2009 19:04:07 +0000 (12:04 -0700)
commitd09ee9687e027fc7d2c6b95daf05a8ef3ff06340
treea7423042ba31ae5c1eb709d0e03115961b2b63b3
parent1f82de10d6b1d845155363c895c552e61b36b51a
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>
drivers/pci/setup-bus.c
drivers/pci/setup-res.c