[PATCH v9 21/60] PCI: Get new realloc size for bridge for last try

2015-12-10 Thread Yinghai Lu
Current realloc path would not shrink bridge resource through pbus_size_mem() checking with the old size. That cause problem: when "required+optional" resource allocation fails, the cached bridge resource size will prevent "required" resource to get allocated smaller resource. Clear the old

[PATCH v9 21/60] PCI: Get new realloc size for bridge for last try

2015-12-10 Thread Yinghai Lu
Current realloc path would not shrink bridge resource through pbus_size_mem() checking with the old size. That cause problem: when "required+optional" resource allocation fails, the cached bridge resource size will prevent "required" resource to get allocated smaller resource. Clear the old