Re: [PATCH v10 4/4] PCI: Don't extend device's size when using default alignment for all devices

2017-04-17 Thread Bjorn Helgaas
On Mon, Apr 17, 2017 at 1:27 AM, Yongji Xie wrote: > 2017-04-15 6:54 GMT+08:00 Bjorn Helgaas : >> >> On Mon, Apr 10, 2017 at 07:58:14PM +0800, Yongji Xie wrote: >> > Currently we reassign the alignment by extending resources' size in >> >

Re: [PATCH v10 4/4] PCI: Don't extend device's size when using default alignment for all devices

2017-04-17 Thread Yongji Xie
2017-04-15 6:54 GMT+08:00 Bjorn Helgaas : > On Mon, Apr 10, 2017 at 07:58:14PM +0800, Yongji Xie wrote: > > Currently we reassign the alignment by extending resources' size in > > pci_reassigndev_resource_alignment(). This could potentially break > > some drivers when the

Re: [PATCH v10 4/4] PCI: Don't extend device's size when using default alignment for all devices

2017-04-14 Thread Bjorn Helgaas
On Mon, Apr 10, 2017 at 07:58:14PM +0800, Yongji Xie wrote: > Currently we reassign the alignment by extending resources' size in > pci_reassigndev_resource_alignment(). This could potentially break > some drivers when the driver uses the size to locate register > whose length is related to the

[PATCH v10 4/4] PCI: Don't extend device's size when using default alignment for all devices

2017-04-10 Thread Yongji Xie
Currently we reassign the alignment by extending resources' size in pci_reassigndev_resource_alignment(). This could potentially break some drivers when the driver uses the size to locate register whose length is related to the size. Some examples as below: - misc/Hpilo.c: off =