From: Benjamin Herrenschmidt Date: Fri, 14 Oct 2011 19:56:15 +0000 (-0500) Subject: pci: Clamp pcie_set_readrq() when using "performance" settings X-Git-Tag: v3.2-rc1~128^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1c473aa11e61bc871be16279c9bf976acf22504;p=pandora-kernel.git pci: Clamp pcie_set_readrq() when using "performance" settings When configuring the PCIe settings for "performance", we allow parents to have a larger Max Payload Size than children and rely on children Max Read Request Size to not be larger than their own MPS to avoid having the host bridge generate responses they can't cope with. However, various drivers in Linux call pci_set_readrq() with arbitrary values, assuming this to be a simple performance tweak. This breaks under our "performance" configuration. Fix that by making sure the value programmed by pcie_set_readrq() is never larger than the configured MPS for that device. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Jon Mason Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed