Bug 191384 - [ixgbe] ixgbe driver failed to identify PCI-Express slot bandwidth on 10-STABLE and 9.3-RC1, 10.0-RELEASE is partialy affected
Summary: [ixgbe] ixgbe driver failed to identify PCI-Express slot bandwidth on 10-STAB...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.0-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords: IntelNetworking
Depends on:
Blocks:
 
Reported: 2014-06-26 00:48 UTC by Andrew
Modified: 2023-02-03 13:27 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew 2014-06-26 00:48:45 UTC
Hardware is Dell R510, 2xCPU E5620, 32GB RAM
Intel 10Gb SR Server Adapter:
ix0@pci0:3:0:0: class=0x020000 card=0xa05f8086 chip=0x10c78086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82598EB 10-Gigabit AF Network Connection'
    class      = network
    subclass   = ethernet

If this 10Gb card inserted into PCI-E x8 Gen2 slot:
Booting FreeBSD 10.0-STABLE #0 r267874:
ix0: <Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.5.15> port 0xece0-0xecff mem 0xdf2a0000-0xdf2bffff,0xdf2c0000-0xdf2fffff,0xdf29c000-0xdf29ffff irq 38 at device 0.0 on pci3
ix0: Using MSIX interrupts with 9 vectors
ix0: Ethernet address: 00:1b:21:5c:83:11
ix0: PCI Express Bus: Speed 2.5GT/s Width x1
ix0: PCI-Express bandwidth available for this card
     is not sufficient for optimal performance.
ix0: For optimal performance a x8 PCIE, or x4 PCIE Gen2 slot is required.
Same situation for 9.3-RC1, but I have no dmesg output for it, so may be not excatly.

Booting 10.0-RELEASE seems is Ok. But fail to detect Gen2.
ix0: <Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.5.15> port 0xece0-0xecff mem 0xdf2a0000-0xdf2bffff,0xdf2c0000-0xdf2fffff,0xdf29c000-0xdf29ffff irq 38 at device 0.0 on pci3
ix0: Using MSIX interrupts with 9 vectors
ix0: Ethernet address: 00:1b:21:5c:83:11
ix0: PCI Express Bus: Speed 2.5GT/s Width x8

When same card inserted into x4 Gen2 slot, 10.0-RELEASE also fail to detect Gen2:
ix0: <Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.5.15> port 0xdce0-0xdcff mem 0xdf4a0000-0xdf4bffff,0xdf4c0000-0xdf4fffff,0xdf49c000-0xdf49ffff irq 41 at device 0.0 on pci5
ix0: Using MSIX interrupts with 9 vectors
ix0: Ethernet address: 00:1b:21:5c:83:11
ix0: PCI Express Bus: Speed 2.5GT/s Width x4
ix0: PCI-Express bandwidth available for this card
     is not sufficient for optimal performance.
ix0: For optimal performance a x8 PCIE, or x4 PCIE Gen2 slot is required.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-06-26 02:02:35 UTC
Over to maintainers.
Comment 2 Alexander V. Chernikov freebsd_committer freebsd_triage 2014-06-26 15:52:40 UTC
As far as I remember, Intel 82598 is not capable of doing 5GT/s.

Quoting product brief: "The Intel® 82598 10 Gigabit Ethernet Controller is a next-generation, PCI Express* 2.0 (2.5 Gbps) controller with balanced features "

http://www.intel.com/content/www/us/en/network-adapters/10-gigabit-network-adapters/82598-10-gigabit-ethernet-controller-brief.html
Comment 3 Sean Bruno freebsd_committer freebsd_triage 2015-08-04 16:25:06 UTC
(In reply to Andrew from comment #0)
Andrew:

Can you attach a full pciconf -lvbc to this bugzilla report?
Comment 4 Piotr Kubaj freebsd_committer freebsd_triage 2023-02-03 13:27:56 UTC
Seems to be fixed now:
ix0@pci0:180:0:0:       class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x10fb subvendor=0x8086 subdevice=0x000c
    vendor     = 'Intel Corporation'
    device     = '82599ES 10-Gigabit SFI/SFP+ Network Connection'
    class      = network
    subclass   = ethernet
    bar   [10] = type Prefetchable Memory, range 64, base rxde180000, size 524288, enabled
    bar   [18] = type I/O Port, range 32, base rxd020, size 32, enabled
    bar   [20] = type Prefetchable Memory, range 64, base rxde204000, size 16384, enabled
    cap 01[40] = powerspec 3  supports D0 D3  current D0
    cap 05[50] = MSI supports 1 message, 64 bit, vector masks 
    cap 11[70] = MSI-X supports 64 messages, enabled
                 Table in map 0x20[0x0], PBA in map 0x20[0x2000]
    cap 10[a0] = PCI-Express 2 endpoint max data 512(512) FLR RO NS
                 max read 4096
                 link x8(x8) speed 5.0(5.0) ASPM disabled(L0s)
    ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected
    ecap 0003[140] = Serial 1 90e2baffff218848
    ecap 000e[150] = ARI 1
    ecap 0010[160] = SR-IOV 1 IOV disabled, Memory Space disabled, ARI disabled
                     0 VFs configured out of 64 supported
                     First VF RID Offset 0x0180, VF RID Stride 0x0002
                     VF Device ID 0x10ed
                     Page Sizes: 4096 (enabled), 8192, 65536, 262144, 1048576, 4194304