[PATCH v9 26/60] PCI: Optimize bus min_align/size calculation during sizing

2015-12-10 Thread Yinghai Lu
During bus mmio resource sizing stage, current code try to get alignment as small as possible and use that to align size to get final size. But it does not handle resource that size is bigger than alignment in optimal way, kernel only use max alignment for them. For example: When we have

[PATCH v9 26/60] PCI: Optimize bus min_align/size calculation during sizing

2015-12-10 Thread Yinghai Lu
During bus mmio resource sizing stage, current code try to get alignment as small as possible and use that to align size to get final size. But it does not handle resource that size is bigger than alignment in optimal way, kernel only use max alignment for them. For example: When we have