Re: [PATCH 02/10] PCI, x86: clip firmware assigned resource under parent bridge's

2015-01-14 Thread Yinghai Lu
On Wed, Jan 14, 2015 at 8:52 AM, Bjorn Helgaas wrote: > On Mon, Jan 12, 2015 at 11:23:12AM -0800, Yinghai Lu wrote: > There's a lot of duplicated code in these patches. Is it possible to > factor this out a bit, e.g., something like this? > > int pci_claim_bridge_resource(struct pci_dev *dev,

Re: [PATCH 02/10] PCI, x86: clip firmware assigned resource under parent bridge's

2015-01-14 Thread Bjorn Helgaas
On Mon, Jan 12, 2015 at 11:23:12AM -0800, Yinghai Lu wrote: > Some bios put range that is not fully coverred by root bus resources. > Try to clip them and update them in pci bridge bars. > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=85491 > Reported-by: Marek Kordik > Tested-by: Marek Kor

[PATCH 02/10] PCI, x86: clip firmware assigned resource under parent bridge's

2015-01-12 Thread Yinghai Lu
Some bios put range that is not fully coverred by root bus resources. Try to clip them and update them in pci bridge bars. Link: https://bugzilla.kernel.org/show_bug.cgi?id=85491 Reported-by: Marek Kordik Tested-by: Marek Kordik Fixes: 5b28541552ef ("PCI: Restrict 64-bit prefetchable bridge wind