]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:43:13 +0000 (09:43 -0700)
commitf5ff4624c7190665ab7506ee0d6f63487a482a1e
treec195a1c64c4a90bd86257a40c099b7a5b86dea06
parent1687546e7ccd6d257ee691f01a7b60b6d28a4262
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/quirks.c