diff options
author | np <np@FreeBSD.org> | 2015-06-06 20:01:06 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2015-06-06 20:01:06 +0000 |
commit | 854a7e5a12872629f7a85a3aa116d6d5ffe85cda (patch) | |
tree | 49a259a8019f68e79fac883c90a8dbfc294f3ba3 | |
parent | 72a6278f84b1d018faa32a7e51889d06880eeba9 (diff) | |
download | FreeBSD-src-854a7e5a12872629f7a85a3aa116d6d5ffe85cda.zip FreeBSD-src-854a7e5a12872629f7a85a3aa116d6d5ffe85cda.tar.gz |
MFC r259150 (by adrian@) and r283864.
r259150:
Print out the full PCIe link negotiation during dmesg.
I found this useful when checking whether a NIC is in a PCIE 3.0 8x slot
or not.
r283864:
cxgbe: no need to display the per-lane GT/s rating of the pcie link.
-rw-r--r-- | sys/dev/cxgbe/t4_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 5d08737..9d2f76e 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -906,9 +906,9 @@ t4_attach(device_t dev) } device_printf(dev, - "PCIe x%d, %d ports, %d %s interrupt%s, %d eq, %d iq\n", - sc->params.pci.width, sc->params.nports, sc->intr_count, - sc->intr_type == INTR_MSIX ? "MSI-X" : + "PCIe gen%d x%d, %d ports, %d %s interrupt%s, %d eq, %d iq\n", + sc->params.pci.speed, sc->params.pci.width, sc->params.nports, + sc->intr_count, sc->intr_type == INTR_MSIX ? "MSI-X" : (sc->intr_type == INTR_MSI ? "MSI" : "INTx"), sc->intr_count > 1 ? "s" : "", sc->sge.neq, sc->sge.niq); |