PCI: Warn if unsafe MPS settings detected
authorYijing Wang <wangyijing@huawei.com>
Mon, 26 Aug 2013 08:33:06 +0000 (16:33 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 26 Aug 2013 20:49:28 +0000 (14:49 -0600)
commit5895af79158a55562753f7f05762f3bd766d32b9
tree39eecfd0c9fa8c4963ec081ea171977e05b5b0b9
parent3315472c474af8e1c2beb40d980dfc92f03e4d8e
PCI: Warn if unsafe MPS settings detected

If a BIOS configures MPS incorrectly, devices may not work normally.
For example, if a bridge has MPS set larger than an endpoint below it,
the endpoint may discard packets.

To help diagnose this issue, print a warning if we find an endpoint
MPS setting different than that of the upstream bridge.

[bhelgaas: changelog, "bridge" temporary, warning text]
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=60799
Reported-by: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jon Mason <jdmason@kudzu.us>
drivers/pci/probe.c