Message ID | 1408756512-16885-1-git-send-email-yinghai@kernel.org |
---|---|
State | Accepted |
Headers | show |
On Fri, Aug 22, 2014 at 06:15:07PM -0700, Yinghai Lu wrote: > We missed that in > | commit 5b28541552ef5eeffc41d6936105f38c2508e566 > | PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources > for pci hotplug path. > > We have MEM_64 in type_mask from pci_assign_unassigned_root_bus_resources() > for boot path. I think we probably need this patch, but I can't figure out what problem it fixes. If we don't have this, what problem will happen? > Signed-off-by: Yinghai Lu <yinghai@kernel.org> > > --- > drivers/pci/setup-bus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-2.6/drivers/pci/setup-bus.c > =================================================================== > --- linux-2.6.orig/drivers/pci/setup-bus.c > +++ linux-2.6/drivers/pci/setup-bus.c > @@ -1652,7 +1652,7 @@ void pci_assign_unassigned_bridge_resour > struct pci_dev_resource *fail_res; > int retval; > unsigned long type_mask = IORESOURCE_IO | IORESOURCE_MEM | > - IORESOURCE_PREFETCH; > + IORESOURCE_PREFETCH | IORESOURCE_MEM_64; > > again: > __pci_bus_size_bridges(parent, &add_list); -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Sep 30, 2014 at 1:35 PM, Bjorn Helgaas <bhelgaas@google.com> wrote: > On Fri, Aug 22, 2014 at 06:15:07PM -0700, Yinghai Lu wrote: >> We missed that in >> | commit 5b28541552ef5eeffc41d6936105f38c2508e566 >> | PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources >> for pci hotplug path. >> >> We have MEM_64 in type_mask from pci_assign_unassigned_root_bus_resources() >> for boot path. > > I think we probably need this patch, but I can't figure out what problem it > fixes. If we don't have this, what problem will happen? We can not do exact type checking. Will not use bridge pref that support 64bit for 64bit pref. Thanks Yinghai -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, Aug 22, 2014 at 06:15:07PM -0700, Yinghai Lu wrote: > We missed that in > | commit 5b28541552ef5eeffc41d6936105f38c2508e566 > | PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources > for pci hotplug path. > > We have MEM_64 in type_mask from pci_assign_unassigned_root_bus_resources() > for boot path. Applied to pci/resource for v3.18, thanks. I added a stable tag for v3.16+, since 5b28541552ef appeared in v3.16. > > Signed-off-by: Yinghai Lu <yinghai@kernel.org> > > --- > drivers/pci/setup-bus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-2.6/drivers/pci/setup-bus.c > =================================================================== > --- linux-2.6.orig/drivers/pci/setup-bus.c > +++ linux-2.6/drivers/pci/setup-bus.c > @@ -1652,7 +1652,7 @@ void pci_assign_unassigned_bridge_resour > struct pci_dev_resource *fail_res; > int retval; > unsigned long type_mask = IORESOURCE_IO | IORESOURCE_MEM | > - IORESOURCE_PREFETCH; > + IORESOURCE_PREFETCH | IORESOURCE_MEM_64; > > again: > __pci_bus_size_bridges(parent, &add_list); -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Index: linux-2.6/drivers/pci/setup-bus.c =================================================================== --- linux-2.6.orig/drivers/pci/setup-bus.c +++ linux-2.6/drivers/pci/setup-bus.c @@ -1652,7 +1652,7 @@ void pci_assign_unassigned_bridge_resour struct pci_dev_resource *fail_res; int retval; unsigned long type_mask = IORESOURCE_IO | IORESOURCE_MEM | - IORESOURCE_PREFETCH; + IORESOURCE_PREFETCH | IORESOURCE_MEM_64; again: __pci_bus_size_bridges(parent, &add_list);
We missed that in | commit 5b28541552ef5eeffc41d6936105f38c2508e566 | PCI: Restrict 64-bit prefetchable bridge windows to 64-bit resources for pci hotplug path. We have MEM_64 in type_mask from pci_assign_unassigned_root_bus_resources() for boot path. Signed-off-by: Yinghai Lu <yinghai@kernel.org> --- drivers/pci/setup-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html