]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: Increase IBM ipr SAS Crocodile BARs to at least system page size
authorDouglas Lehr <dllehr@us.ibm.com>
Wed, 20 Aug 2014 23:26:52 +0000 (09:26 +1000)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:11:22 +0000 (15:11 +0100)
commit3ffc90858ac8e620118e98494b1243b4a22fdaa5
tree7d78bdfeea094404fa0aef7cbbb627e5cac85dfd
parentb25f6852b313d61224e2e693ad11a180ff055cb6
PCI: Increase IBM ipr SAS Crocodile BARs to at least system page size

commit 9fe373f9997b48fcd6222b95baf4a20c134b587a upstream.

The Crocodile chip occasionally comes up with 4k and 8k BAR sizes.  Due to
an erratum, setting the SR-IOV page size causes the physical function BARs
to expand to the system page size.  Since ppc64 uses 64k pages, when Linux
tries to assign the smaller resource sizes to the now 64k BARs the address
will be truncated and the BARs will overlap.

Force Linux to allocate the resource as a full page, which avoids the
overlap.

[bhelgaas: print expanded resource, too]
Signed-off-by: Douglas Lehr <dllehr@us.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Milton Miller <miltonm@us.ibm.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/pci/quirks.c