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)
commit2bbc6942273b5b3097bd265d82227bdd84b351b2
tree34d846f34a94dbe7b0c4800cb8efc3cf2e07ad74
parentbe768912a49b10b68e96fbd8fa3cab0adfbd3091
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