]> git.baikalelectronics.ru Git - kernel.git/commit
PCI : ability to relocate assigned pci-resources
authorRam Pai <linuxram@us.ibm.com>
Mon, 25 Jul 2011 20:08:39 +0000 (13:08 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 1 Aug 2011 18:50:15 +0000 (11:50 -0700)
commit7deb8ca15671c48ca74204aab8d4707565cab9bc
tree34d846f34a94dbe7b0c4800cb8efc3cf2e07ad74
parent636bd003bd549f00366a26741b25ab51fa133302
PCI : ability to relocate assigned pci-resources

Currently pci-bridges are allocated enough resources to satisfy their immediate
requirements.  Any additional resource-requests fail if additional free space,
contiguous to the one already allocated, is not available. This behavior is not
reasonable since sufficient contiguous resources, that can satisfy the request,
are available at a different location.

This patch provides the ability to expand and relocate a allocated resource.

v2: Changelog: Fixed size calculation in pci_reassign_resource()
v3: Changelog : Split this patch. The resource.c changes are already
upstream. All the pci driver changes are in here.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/setup-bus.c
drivers/pci/setup-res.c
include/linux/pci.h