Re: [PATCH v11 44/60] PCI: Add alt_size ressource allocation support

2016-04-08 Thread Benjamin Herrenschmidt
On Thu, 2016-04-07 at 17:56 -0700, Linus Torvalds wrote: > Maybe the kernel should just accept the smaller alignment. If the > minimum alignment we use is bigger than necessary, then we're just > wrong about it, and perhaps we should just use the smaller alignment > that the bios used. > > So

Re: [PATCH v11 44/60] PCI: Add alt_size ressource allocation support

2016-04-08 Thread Benjamin Herrenschmidt
On Thu, 2016-04-07 at 17:56 -0700, Linus Torvalds wrote: > Maybe the kernel should just accept the smaller alignment. If the > minimum alignment we use is bigger than necessary, then we're just > wrong about it, and perhaps we should just use the smaller alignment > that the bios used. > > So

Re: [PATCH v11 44/60] PCI: Add alt_size ressource allocation support

2016-04-07 Thread Yinghai Lu
On Thu, Apr 7, 2016 at 5:56 PM, Linus Torvalds wrote: > I'm not excited about the whole "alternate aligment". > > Maybe the kernel should just accept the smaller alignment. If the > minimum alignment we use is bigger than necessary, then we're just > wrong about it,

Re: [PATCH v11 44/60] PCI: Add alt_size ressource allocation support

2016-04-07 Thread Yinghai Lu
On Thu, Apr 7, 2016 at 5:56 PM, Linus Torvalds wrote: > I'm not excited about the whole "alternate aligment". > > Maybe the kernel should just accept the smaller alignment. If the > minimum alignment we use is bigger than necessary, then we're just > wrong about it, and perhaps we should just use

Re: [PATCH v11 44/60] PCI: Add alt_size ressource allocation support

2016-04-07 Thread Linus Torvalds
On Thu, Apr 7, 2016 at 5:15 PM, Yinghai Lu wrote: > On system with several pcie switches, BIOS allocate very tight resources > to the bridge bar, and it is not aligned to min_align as kernel allocation > code. Ok, this came in after I already replied to the other ones. I'm

Re: [PATCH v11 44/60] PCI: Add alt_size ressource allocation support

2016-04-07 Thread Linus Torvalds
On Thu, Apr 7, 2016 at 5:15 PM, Yinghai Lu wrote: > On system with several pcie switches, BIOS allocate very tight resources > to the bridge bar, and it is not aligned to min_align as kernel allocation > code. Ok, this came in after I already replied to the other ones. I'm not excited about the

[PATCH v11 44/60] PCI: Add alt_size ressource allocation support

2016-04-07 Thread Yinghai Lu
On system with several pcie switches, BIOS allocate very tight resources to the bridge bar, and it is not aligned to min_align as kernel allocation code. For example: 02:03.0---0c:00.0---0d:04.0---18:00.0 18:00.0 need 0x1000, and 0x0001. BIOS only allocate 0x1010 to 0d:04.0 and

[PATCH v11 44/60] PCI: Add alt_size ressource allocation support

2016-04-07 Thread Yinghai Lu
On system with several pcie switches, BIOS allocate very tight resources to the bridge bar, and it is not aligned to min_align as kernel allocation code. For example: 02:03.0---0c:00.0---0d:04.0---18:00.0 18:00.0 need 0x1000, and 0x0001. BIOS only allocate 0x1010 to 0d:04.0 and