Re: [PATCH] PCI: Clear all bridge res MEM_64 if host bridge has non mem64

2014-12-10 Thread Yinghai Lu
On Wed, Dec 10, 2014 at 2:30 PM, Gavin Shan wrote: > On Tue, Dec 09, 2014 at 01:34:31PM -0800, Yinghai Lu wrote: >> >>+ list_for_each_entry(window, &bridge->windows, list) { >>+ res = window->res; >>+ if (resource_type(res) == IORESOURCE_MEM || >>+ r

Re: [PATCH] PCI: Clear all bridge res MEM_64 if host bridge has non mem64

2014-12-10 Thread Gavin Shan
On Tue, Dec 09, 2014 at 01:34:31PM -0800, Yinghai Lu wrote: >So we could use bridge 64bit mem pref for children mem pref instead of >forcing them into bridge mem. > >Could help Marek's system as his system is using _CRS, and all mem res is under >4G. > >Link: https://bugzilla.kernel.org/show_bug.cg

Re: [PATCH] PCI: Clear all bridge res MEM_64 if host bridge has non mem64

2014-12-10 Thread Yinghai Lu
On Wed, Dec 10, 2014 at 6:34 AM, Wei Yang wrote: > My mutt hang, in case the mail isn't sent out, I resend it. > > On Wed, Dec 10, 2014 at 10:15:37PM +0800, Wei Yang wrote: >>On Tue, Dec 09, 2014 at 03:13:49PM -0800, Yinghai Lu wrote: >>>On Tue, Dec 9, 2014 at 1:53 PM, Bjorn Helgaas wrote: O

Re: [PATCH] PCI: Clear all bridge res MEM_64 if host bridge has non mem64

2014-12-10 Thread Wei Yang
My mutt hang, in case the mail isn't sent out, I resend it. On Wed, Dec 10, 2014 at 10:15:37PM +0800, Wei Yang wrote: >On Tue, Dec 09, 2014 at 03:13:49PM -0800, Yinghai Lu wrote: >>On Tue, Dec 9, 2014 at 1:53 PM, Bjorn Helgaas wrote: >>> On Tue, Dec 9, 2014 at 2:34 PM, Yinghai Lu wrote: +

Re: [PATCH] PCI: Clear all bridge res MEM_64 if host bridge has non mem64

2014-12-09 Thread Yinghai Lu
On Tue, Dec 9, 2014 at 1:53 PM, Bjorn Helgaas wrote: > On Tue, Dec 9, 2014 at 2:34 PM, Yinghai Lu wrote: >> + list_for_each_entry(window, &bridge->windows, list) { >> + res = window->res; >> + if (resource_type(res) == IORESOURCE_MEM || >> + res

Re: [PATCH] PCI: Clear all bridge res MEM_64 if host bridge has non mem64

2014-12-09 Thread Bjorn Helgaas
On Tue, Dec 9, 2014 at 2:34 PM, Yinghai Lu wrote: > So we could use bridge 64bit mem pref for children mem pref instead of > forcing them into bridge mem. > > Could help Marek's system as his system is using _CRS, and all mem res is > under > 4G. > > Link: https://bugzilla.kernel.org/show_bug.cgi

[PATCH] PCI: Clear all bridge res MEM_64 if host bridge has non mem64

2014-12-09 Thread Yinghai Lu
So we could use bridge 64bit mem pref for children mem pref instead of forcing them into bridge mem. Could help Marek's system as his system is using _CRS, and all mem res is under 4G. Link: https://bugzilla.kernel.org/show_bug.cgi?id=85491 Reported-by: Marek Kordik Fixes: 5b28541552ef ("PCI: Re