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

From: Linus Torvalds
Date: Thu Apr 07 2016 - 20:56:52 EST


On Thu, Apr 7, 2016 at 5:15 PM, Yinghai Lu <yinghai@xxxxxxxxxx> 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 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 the smaller alignment
that the bios used.

So instead of adding this notion of alternate alignment, maybe we
should just not be so uptight about our own minimum alignment
requirements?

Linus